Path: blob/21.2-virgl/src/compiler/spirv/GLSL.ext.AMD.h
4545 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_H2829enum BuiltIn;30enum Capability;31enum Decoration;32enum Op;3334static const int GLSLextAMDVersion = 100;35static const int GLSLextAMDRevision = 6;3637// SPV_AMD_shader_ballot38static const char* const E_SPV_AMD_shader_ballot = "SPV_AMD_shader_ballot";3940enum ShaderBallotAMD {41ShaderBallotBadAMD = 0, // Don't use4243SwizzleInvocationsAMD = 1,44SwizzleInvocationsMaskedAMD = 2,45WriteInvocationAMD = 3,46MbcntAMD = 4,4748ShaderBallotCountAMD49};5051// SPV_AMD_shader_trinary_minmax52static const char* const E_SPV_AMD_shader_trinary_minmax = "SPV_AMD_shader_trinary_minmax";5354enum ShaderTrinaryMinMaxAMD {55ShaderTrinaryMinMaxBadAMD = 0, // Don't use5657FMin3AMD = 1,58UMin3AMD = 2,59SMin3AMD = 3,60FMax3AMD = 4,61UMax3AMD = 5,62SMax3AMD = 6,63FMid3AMD = 7,64UMid3AMD = 8,65SMid3AMD = 9,6667ShaderTrinaryMinMaxCountAMD68};6970// SPV_AMD_shader_explicit_vertex_parameter71static const char* const E_SPV_AMD_shader_explicit_vertex_parameter = "SPV_AMD_shader_explicit_vertex_parameter";7273enum ShaderExplicitVertexParameterAMD {74ShaderExplicitVertexParameterBadAMD = 0, // Don't use7576InterpolateAtVertexAMD = 1,7778ShaderExplicitVertexParameterCountAMD79};8081// SPV_AMD_gcn_shader82static const char* const E_SPV_AMD_gcn_shader = "SPV_AMD_gcn_shader";8384enum GcnShaderAMD {85GcnShaderBadAMD = 0, // Don't use8687CubeFaceIndexAMD = 1,88CubeFaceCoordAMD = 2,89TimeAMD = 3,9091GcnShaderCountAMD92};9394// SPV_AMD_gpu_shader_half_float95static const char* const E_SPV_AMD_gpu_shader_half_float = "SPV_AMD_gpu_shader_half_float";9697// SPV_AMD_texture_gather_bias_lod98static const char* const E_SPV_AMD_texture_gather_bias_lod = "SPV_AMD_texture_gather_bias_lod";99100// SPV_AMD_gpu_shader_int16101static const char* const E_SPV_AMD_gpu_shader_int16 = "SPV_AMD_gpu_shader_int16";102103// SPV_AMD_shader_image_load_store_lod104static const char* const E_SPV_AMD_shader_image_load_store_lod = "SPV_AMD_shader_image_load_store_lod";105106// SPV_AMD_shader_fragment_mask107static const char* const E_SPV_AMD_shader_fragment_mask = "SPV_AMD_shader_fragment_mask";108109#endif // #ifndef GLSLextAMD_H110111112