GLSL.ext.AMD.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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. #ifndef GLSLextAMD_H
  27. #define GLSLextAMD_H
  28. static const int GLSLextAMDVersion = 100;
  29. static const int GLSLextAMDRevision = 7;
  30. // SPV_AMD_shader_ballot
  31. static const char* const E_SPV_AMD_shader_ballot = "SPV_AMD_shader_ballot";
  32. enum ShaderBallotAMD {
  33. ShaderBallotBadAMD = 0, // Don't use
  34. SwizzleInvocationsAMD = 1,
  35. SwizzleInvocationsMaskedAMD = 2,
  36. WriteInvocationAMD = 3,
  37. MbcntAMD = 4,
  38. ShaderBallotCountAMD
  39. };
  40. // SPV_AMD_shader_trinary_minmax
  41. static const char* const E_SPV_AMD_shader_trinary_minmax = "SPV_AMD_shader_trinary_minmax";
  42. enum ShaderTrinaryMinMaxAMD {
  43. ShaderTrinaryMinMaxBadAMD = 0, // Don't use
  44. FMin3AMD = 1,
  45. UMin3AMD = 2,
  46. SMin3AMD = 3,
  47. FMax3AMD = 4,
  48. UMax3AMD = 5,
  49. SMax3AMD = 6,
  50. FMid3AMD = 7,
  51. UMid3AMD = 8,
  52. SMid3AMD = 9,
  53. ShaderTrinaryMinMaxCountAMD
  54. };
  55. // SPV_AMD_shader_explicit_vertex_parameter
  56. static const char* const E_SPV_AMD_shader_explicit_vertex_parameter = "SPV_AMD_shader_explicit_vertex_parameter";
  57. enum ShaderExplicitVertexParameterAMD {
  58. ShaderExplicitVertexParameterBadAMD = 0, // Don't use
  59. InterpolateAtVertexAMD = 1,
  60. ShaderExplicitVertexParameterCountAMD
  61. };
  62. // SPV_AMD_gcn_shader
  63. static const char* const E_SPV_AMD_gcn_shader = "SPV_AMD_gcn_shader";
  64. enum GcnShaderAMD {
  65. GcnShaderBadAMD = 0, // Don't use
  66. CubeFaceIndexAMD = 1,
  67. CubeFaceCoordAMD = 2,
  68. TimeAMD = 3,
  69. GcnShaderCountAMD
  70. };
  71. // SPV_AMD_gpu_shader_half_float
  72. static const char* const E_SPV_AMD_gpu_shader_half_float = "SPV_AMD_gpu_shader_half_float";
  73. // SPV_AMD_texture_gather_bias_lod
  74. static const char* const E_SPV_AMD_texture_gather_bias_lod = "SPV_AMD_texture_gather_bias_lod";
  75. // SPV_AMD_gpu_shader_int16
  76. static const char* const E_SPV_AMD_gpu_shader_int16 = "SPV_AMD_gpu_shader_int16";
  77. // SPV_AMD_shader_image_load_store_lod
  78. static const char* const E_SPV_AMD_shader_image_load_store_lod = "SPV_AMD_shader_image_load_store_lod";
  79. // SPV_AMD_shader_fragment_mask
  80. static const char* const E_SPV_AMD_shader_fragment_mask = "SPV_AMD_shader_fragment_mask";
  81. // SPV_AMD_gpu_shader_half_float_fetch
  82. static const char* const E_SPV_AMD_gpu_shader_half_float_fetch = "SPV_AMD_gpu_shader_half_float_fetch";
  83. #endif // #ifndef GLSLextAMD_H