Path: blob/master/thirdparty/glslang/SPIRV/GLSL.ext.AMD.h
9902 views
/*1** Copyright (c) 2014-2016 The Khronos Group Inc.2**3** Permission is hereby granted, free of charge, to any person obtaining a copy4** of this software and/or associated documentation files (the "Materials"),5** to deal in the Materials without restriction, including without limitation6** the rights to use, copy, modify, merge, publish, distribute, sublicense,7** and/or sell copies of the Materials, and to permit persons to whom the8** Materials are furnished to do so, subject to the following conditions:9**10** The above copyright notice and this permission notice shall be included in11** all copies or substantial portions of the Materials.12**13** MODIFICATIONS TO THIS FILE MAY MEAN IT NO LONGER ACCURATELY REFLECTS KHRONOS14** STANDARDS. THE UNMODIFIED, NORMATIVE VERSIONS OF KHRONOS SPECIFICATIONS AND15** HEADER INFORMATION ARE LOCATED AT https://www.khronos.org/registry/16**17** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS18** OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,19** FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL20** THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER21** LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING22** FROM,OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS23** IN THE MATERIALS.24*/2526#ifndef GLSLextAMD_H27#define GLSLextAMD_H2829static const int GLSLextAMDVersion = 100;30static const int GLSLextAMDRevision = 7;3132// SPV_AMD_shader_ballot33static const char* const E_SPV_AMD_shader_ballot = "SPV_AMD_shader_ballot";3435enum ShaderBallotAMD {36ShaderBallotBadAMD = 0, // Don't use3738SwizzleInvocationsAMD = 1,39SwizzleInvocationsMaskedAMD = 2,40WriteInvocationAMD = 3,41MbcntAMD = 4,4243ShaderBallotCountAMD44};4546// SPV_AMD_shader_trinary_minmax47static const char* const E_SPV_AMD_shader_trinary_minmax = "SPV_AMD_shader_trinary_minmax";4849enum ShaderTrinaryMinMaxAMD {50ShaderTrinaryMinMaxBadAMD = 0, // Don't use5152FMin3AMD = 1,53UMin3AMD = 2,54SMin3AMD = 3,55FMax3AMD = 4,56UMax3AMD = 5,57SMax3AMD = 6,58FMid3AMD = 7,59UMid3AMD = 8,60SMid3AMD = 9,6162ShaderTrinaryMinMaxCountAMD63};6465// SPV_AMD_shader_explicit_vertex_parameter66static const char* const E_SPV_AMD_shader_explicit_vertex_parameter = "SPV_AMD_shader_explicit_vertex_parameter";6768enum ShaderExplicitVertexParameterAMD {69ShaderExplicitVertexParameterBadAMD = 0, // Don't use7071InterpolateAtVertexAMD = 1,7273ShaderExplicitVertexParameterCountAMD74};7576// SPV_AMD_gcn_shader77static const char* const E_SPV_AMD_gcn_shader = "SPV_AMD_gcn_shader";7879enum GcnShaderAMD {80GcnShaderBadAMD = 0, // Don't use8182CubeFaceIndexAMD = 1,83CubeFaceCoordAMD = 2,84TimeAMD = 3,8586GcnShaderCountAMD87};8889// SPV_AMD_gpu_shader_half_float90static const char* const E_SPV_AMD_gpu_shader_half_float = "SPV_AMD_gpu_shader_half_float";9192// SPV_AMD_texture_gather_bias_lod93static const char* const E_SPV_AMD_texture_gather_bias_lod = "SPV_AMD_texture_gather_bias_lod";9495// SPV_AMD_gpu_shader_int1696static const char* const E_SPV_AMD_gpu_shader_int16 = "SPV_AMD_gpu_shader_int16";9798// SPV_AMD_shader_image_load_store_lod99static const char* const E_SPV_AMD_shader_image_load_store_lod = "SPV_AMD_shader_image_load_store_lod";100101// SPV_AMD_shader_fragment_mask102static const char* const E_SPV_AMD_shader_fragment_mask = "SPV_AMD_shader_fragment_mask";103104// SPV_AMD_gpu_shader_half_float_fetch105static const char* const E_SPV_AMD_gpu_shader_half_float_fetch = "SPV_AMD_gpu_shader_half_float_fetch";106107#endif // #ifndef GLSLextAMD_H108109110