Rex Xu | 9d93a23 | 2016-05-05 12:30:44 +0800 | [diff] [blame] | 1 | /* |
| 2 | ** Copyright (c) 2014-2016 The Khronos Group Inc. |
| 3 | ** |
| 4 | ** Permission is hereby granted, free of charge, to any person obtaining a copy |
| 5 | ** of this software and/or associated documentation files (the "Materials"), |
| 6 | ** to deal in the Materials without restriction, including without limitation |
| 7 | ** the rights to use, copy, modify, merge, publish, distribute, sublicense, |
| 8 | ** and/or sell copies of the Materials, and to permit persons to whom the |
| 9 | ** Materials are furnished to do so, subject to the following conditions: |
| 10 | ** |
| 11 | ** The above copyright notice and this permission notice shall be included in |
| 12 | ** all copies or substantial portions of the Materials. |
| 13 | ** |
| 14 | ** MODIFICATIONS TO THIS FILE MAY MEAN IT NO LONGER ACCURATELY REFLECTS KHRONOS |
| 15 | ** STANDARDS. THE UNMODIFIED, NORMATIVE VERSIONS OF KHRONOS SPECIFICATIONS AND |
| 16 | ** HEADER INFORMATION ARE LOCATED AT https://www.khronos.org/registry/ |
| 17 | ** |
| 18 | ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
| 19 | ** OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 20 | ** FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
| 21 | ** THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 22 | ** LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 23 | ** FROM,OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS |
| 24 | ** IN THE MATERIALS. |
| 25 | */ |
| 26 | |
| 27 | #ifndef GLSLextAMD_H |
| 28 | #define GLSLextAMD_H |
| 29 | |
| 30 | enum BuiltIn; |
| 31 | enum Decoration; |
| 32 | enum Op; |
| 33 | |
| 34 | static const int GLSLextAMDVersion = 100; |
Rex Xu | c9e3c3c | 2016-07-29 16:00:05 +0800 | [diff] [blame] | 35 | static const int GLSLextAMDRevision = 2; |
Rex Xu | 9d93a23 | 2016-05-05 12:30:44 +0800 | [diff] [blame] | 36 | |
| 37 | // SPV_AMD_shader_ballot |
| 38 | static const char* const E_SPV_AMD_shader_ballot = "SPV_AMD_shader_ballot"; |
| 39 | |
| 40 | static const Op OpGroupIAddNonUniformAMD = static_cast<Op>(5000); |
| 41 | static const Op OpGroupFAddNonUniformAMD = static_cast<Op>(5001); |
| 42 | static const Op OpGroupFMinNonUniformAMD = static_cast<Op>(5002); |
| 43 | static const Op OpGroupUMinNonUniformAMD = static_cast<Op>(5003); |
| 44 | static const Op OpGroupSMinNonUniformAMD = static_cast<Op>(5004); |
| 45 | static const Op OpGroupFMaxNonUniformAMD = static_cast<Op>(5005); |
| 46 | static const Op OpGroupUMaxNonUniformAMD = static_cast<Op>(5006); |
| 47 | static const Op OpGroupSMaxNonUniformAMD = static_cast<Op>(5007); |
| 48 | |
| 49 | enum ShaderBallotAMD { |
| 50 | ShaderBallotBadAMD = 0, // Don't use |
| 51 | |
| 52 | SwizzleInvocationsAMD = 1, |
| 53 | SwizzleInvocationsMaskedAMD = 2, |
| 54 | WriteInvocationAMD = 3, |
| 55 | MbcntAMD = 4, |
| 56 | |
| 57 | ShaderBallotCountAMD |
| 58 | }; |
| 59 | |
| 60 | // SPV_AMD_shader_trinary_minmax |
| 61 | static const char* const E_SPV_AMD_shader_trinary_minmax = "SPV_AMD_shader_trinary_minmax"; |
| 62 | |
| 63 | enum ShaderTrinaryMinMaxAMD { |
| 64 | ShaderTrinaryMinMaxBadAMD = 0, // Don't use |
| 65 | |
| 66 | FMin3AMD = 1, |
| 67 | UMin3AMD = 2, |
| 68 | SMin3AMD = 3, |
| 69 | FMax3AMD = 4, |
| 70 | UMax3AMD = 5, |
| 71 | SMax3AMD = 6, |
| 72 | FMid3AMD = 7, |
| 73 | UMid3AMD = 8, |
| 74 | SMid3AMD = 9, |
| 75 | |
| 76 | ShaderTrinaryMinMaxCountAMD |
| 77 | }; |
| 78 | |
| 79 | // SPV_AMD_shader_explicit_vertex_parameter |
| 80 | static const char* const E_SPV_AMD_shader_explicit_vertex_parameter = "SPV_AMD_shader_explicit_vertex_parameter"; |
| 81 | |
| 82 | static const BuiltIn BuiltInBaryCoordNoPerspAMD = static_cast<BuiltIn>(4992); |
| 83 | static const BuiltIn BuiltInBaryCoordNoPerspCentroidAMD = static_cast<BuiltIn>(4993); |
| 84 | static const BuiltIn BuiltInBaryCoordNoPerspSampleAMD = static_cast<BuiltIn>(4994); |
| 85 | static const BuiltIn BuiltInBaryCoordSmoothAMD = static_cast<BuiltIn>(4995); |
| 86 | static const BuiltIn BuiltInBaryCoordSmoothCentroidAMD = static_cast<BuiltIn>(4996); |
| 87 | static const BuiltIn BuiltInBaryCoordSmoothSampleAMD = static_cast<BuiltIn>(4997); |
| 88 | static const BuiltIn BuiltInBaryCoordPullModelAMD = static_cast<BuiltIn>(4998); |
| 89 | |
| 90 | static const Decoration DecorationExplicitInterpAMD = static_cast<Decoration>(4999); |
| 91 | |
| 92 | enum ShaderExplicitVertexParameterAMD { |
| 93 | ShaderExplicitVertexParameterBadAMD = 0, // Don't use |
| 94 | |
| 95 | InterpolateAtVertexAMD = 1, |
| 96 | |
| 97 | ShaderExplicitVertexParameterCountAMD |
| 98 | }; |
| 99 | |
| 100 | // SPV_AMD_gcn_shader |
| 101 | static const char* const E_SPV_AMD_gcn_shader = "SPV_AMD_gcn_shader"; |
| 102 | |
| 103 | enum GcnShaderAMD { |
| 104 | GcnShaderBadAMD = 0, // Don't use |
| 105 | |
| 106 | CubeFaceIndexAMD = 1, |
| 107 | CubeFaceCoordAMD = 2, |
| 108 | TimeAMD = 3, |
| 109 | |
| 110 | GcnShaderCountAMD |
| 111 | }; |
| 112 | |
Rex Xu | c9e3c3c | 2016-07-29 16:00:05 +0800 | [diff] [blame] | 113 | // SPV_AMD_gpu_shader_half_float |
| 114 | static const char* const E_SPV_AMD_gpu_shader_half_float = "SPV_AMD_gpu_shader_half_float"; |
| 115 | |
Rex Xu | 9d93a23 | 2016-05-05 12:30:44 +0800 | [diff] [blame] | 116 | #endif // #ifndef GLSLextAMD_H |