PageRenderTime 61ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

/LWJGL/src/templates/org/lwjgl/opengl/EXT_gpu_shader4.java

https://github.com/prog694/VIRSYSJ
Java | 211 lines | 126 code | 44 blank | 41 comment | 0 complexity | 892cbc026742cbead9b4afde261ca05f MD5 | raw file
  1. /*
  2. * Copyright (c) 2002-2008 LWJGL Project
  3. * All rights reserved.
  4. *
  5. * Redistribution and use in source and binary forms, with or without
  6. * modification, are permitted provided that the following conditions are
  7. * met:
  8. *
  9. * * Redistributions of source code must retain the above copyright
  10. * notice, this list of conditions and the following disclaimer.
  11. *
  12. * * Redistributions in binary form must reproduce the above copyright
  13. * notice, this list of conditions and the following disclaimer in the
  14. * documentation and/or other materials provided with the distribution.
  15. *
  16. * * Neither the name of 'LWJGL' nor the names of
  17. * its contributors may be used to endorse or promote products derived
  18. * from this software without specific prior written permission.
  19. *
  20. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  21. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  22. * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  23. * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
  24. * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  25. * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  26. * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  27. * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  28. * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  29. * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  30. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  31. */
  32. package org.lwjgl.opengl;
  33. import org.lwjgl.util.generator.*;
  34. import org.lwjgl.util.generator.Alternate;
  35. import org.lwjgl.util.generator.opengl.*;
  36. import java.nio.Buffer;
  37. import java.nio.ByteBuffer;
  38. import java.nio.IntBuffer;
  39. import java.nio.ShortBuffer;
  40. public interface EXT_gpu_shader4 {
  41. /**
  42. * Accepted by the <pname> parameters of GetVertexAttribdv,
  43. * GetVertexAttribfv, GetVertexAttribiv, GetVertexAttribIivEXT, and
  44. * GetVertexAttribIuivEXT:
  45. */
  46. int GL_VERTEX_ATTRIB_ARRAY_INTEGER_EXT = 0x88FD;
  47. /** Returned by the <type> parameter of GetActiveUniform: */
  48. int GL_SAMPLER_1D_ARRAY_EXT = 0x8DC0;
  49. int GL_SAMPLER_2D_ARRAY_EXT = 0x8DC1;
  50. int GL_SAMPLER_BUFFER_EXT = 0x8DC2;
  51. int GL_SAMPLER_1D_ARRAY_SHADOW_EXT = 0x8DC3;
  52. int GL_SAMPLER_2D_ARRAY_SHADOW_EXT = 0x8DC4;
  53. int GL_SAMPLER_CUBE_SHADOW_EXT = 0x8DC5;
  54. int GL_UNSIGNED_INT = 0x1405;
  55. int GL_UNSIGNED_INT_VEC2_EXT = 0x8DC6;
  56. int GL_UNSIGNED_INT_VEC3_EXT = 0x8DC7;
  57. int GL_UNSIGNED_INT_VEC4_EXT = 0x8DC8;
  58. int GL_INT_SAMPLER_1D_EXT = 0x8DC9;
  59. int GL_INT_SAMPLER_2D_EXT = 0x8DCA;
  60. int GL_INT_SAMPLER_3D_EXT = 0x8DCB;
  61. int GL_INT_SAMPLER_CUBE_EXT = 0x8DCC;
  62. int GL_INT_SAMPLER_2D_RECT_EXT = 0x8DCD;
  63. int GL_INT_SAMPLER_1D_ARRAY_EXT = 0x8DCE;
  64. int GL_INT_SAMPLER_2D_ARRAY_EXT = 0x8DCF;
  65. int GL_INT_SAMPLER_BUFFER_EXT = 0x8DD0;
  66. int GL_UNSIGNED_INT_SAMPLER_1D_EXT = 0x8DD1;
  67. int GL_UNSIGNED_INT_SAMPLER_2D_EXT = 0x8DD2;
  68. int GL_UNSIGNED_INT_SAMPLER_3D_EXT = 0x8DD3;
  69. int GL_UNSIGNED_INT_SAMPLER_CUBE_EXT = 0x8DD4;
  70. int GL_UNSIGNED_INT_SAMPLER_2D_RECT_EXT = 0x8DD5;
  71. int GL_UNSIGNED_INT_SAMPLER_1D_ARRAY_EXT = 0x8DD6;
  72. int GL_UNSIGNED_INT_SAMPLER_2D_ARRAY_EXT = 0x8DD7;
  73. int GL_UNSIGNED_INT_SAMPLER_BUFFER_EXT = 0x8DD8;
  74. /**
  75. * Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv,
  76. * and GetDoublev:
  77. */
  78. int GL_MIN_PROGRAM_TEXEL_OFFSET_EXT = 0x8904;
  79. int GL_MAX_PROGRAM_TEXEL_OFFSET_EXT = 0x8905;
  80. @NoErrorCheck
  81. void glVertexAttribI1iEXT(@GLuint int index, int x);
  82. @NoErrorCheck
  83. void glVertexAttribI2iEXT(@GLuint int index, int x, int y);
  84. @NoErrorCheck
  85. void glVertexAttribI3iEXT(@GLuint int index, int x, int y, int z);
  86. @NoErrorCheck
  87. void glVertexAttribI4iEXT(@GLuint int index, int x, int y, int z, int w);
  88. @NoErrorCheck
  89. void glVertexAttribI1uiEXT(@GLuint int index, @GLuint int x);
  90. @NoErrorCheck
  91. void glVertexAttribI2uiEXT(@GLuint int index, @GLuint int x, @GLuint int y);
  92. @NoErrorCheck
  93. void glVertexAttribI3uiEXT(@GLuint int index, @GLuint int x, @GLuint int y, @GLuint int z);
  94. @NoErrorCheck
  95. void glVertexAttribI4uiEXT(@GLuint int index, @GLuint int x, @GLuint int y, @GLuint int z, @GLuint int w);
  96. @NoErrorCheck
  97. @StripPostfix("v")
  98. void glVertexAttribI1ivEXT(@GLuint int index, @Check("1") @Const IntBuffer v);
  99. @NoErrorCheck
  100. @StripPostfix("v")
  101. void glVertexAttribI2ivEXT(@GLuint int index, @Check("2") @Const IntBuffer v);
  102. @NoErrorCheck
  103. @StripPostfix("v")
  104. void glVertexAttribI3ivEXT(@GLuint int index, @Check("3") @Const IntBuffer v);
  105. @NoErrorCheck
  106. @StripPostfix("v")
  107. void glVertexAttribI4ivEXT(@GLuint int index, @Check("4") @Const IntBuffer v);
  108. @NoErrorCheck
  109. @StripPostfix("v")
  110. void glVertexAttribI1uivEXT(@GLuint int index, @Check("1") @Const @GLuint IntBuffer v);
  111. @NoErrorCheck
  112. @StripPostfix("v")
  113. void glVertexAttribI2uivEXT(@GLuint int index, @Check("2") @Const @GLuint IntBuffer v);
  114. @NoErrorCheck
  115. @StripPostfix("v")
  116. void glVertexAttribI3uivEXT(@GLuint int index, @Check("3") @Const @GLuint IntBuffer v);
  117. @NoErrorCheck
  118. @StripPostfix("v")
  119. void glVertexAttribI4uivEXT(@GLuint int index, @Check("4") @Const @GLuint IntBuffer v);
  120. @NoErrorCheck
  121. @StripPostfix("v")
  122. void glVertexAttribI4bvEXT(@GLuint int index, @Check("4") @Const ByteBuffer v);
  123. @NoErrorCheck
  124. @StripPostfix("v")
  125. void glVertexAttribI4svEXT(@GLuint int index, @Check("4") @Const ShortBuffer v);
  126. @NoErrorCheck
  127. @StripPostfix("v")
  128. void glVertexAttribI4ubvEXT(@GLuint int index, @Check("4") @Const @GLubyte ByteBuffer v);
  129. @NoErrorCheck
  130. @StripPostfix("v")
  131. void glVertexAttribI4usvEXT(@GLuint int index, @Check("4") @Const @GLushort ShortBuffer v);
  132. void glVertexAttribIPointerEXT(@GLuint int index, int size, @GLenum int type, @GLsizei int stride,
  133. @CachedReference
  134. @BufferObject(BufferKind.ArrayVBO)
  135. @Check
  136. @Const
  137. @GLbyte
  138. @GLubyte
  139. @GLshort
  140. @GLushort
  141. @GLint
  142. @GLuint Buffer buffer);
  143. @StripPostfix("params")
  144. void glGetVertexAttribIivEXT(@GLuint int index, @GLenum int pname, @OutParameter @Check("4") IntBuffer params);
  145. @StripPostfix("params")
  146. void glGetVertexAttribIuivEXT(@GLuint int index, @GLenum int pname, @OutParameter @Check("4") @GLuint IntBuffer params);
  147. void glUniform1uiEXT(int location, @GLuint int v0);
  148. void glUniform2uiEXT(int location, @GLuint int v0, @GLuint int v1);
  149. void glUniform3uiEXT(int location, @GLuint int v0, @GLuint int v1, @GLuint int v2);
  150. void glUniform4uiEXT(int location, @GLuint int v0, @GLuint int v1, @GLuint int v2, @GLuint int v3);
  151. @StripPostfix("value")
  152. void glUniform1uivEXT(int location, @AutoSize("value") @GLsizei int count, @Const @GLuint IntBuffer value);
  153. @StripPostfix("value")
  154. void glUniform2uivEXT(int location, @AutoSize(value = "value", expression = " >> 1") @GLsizei int count, @Const @GLuint IntBuffer value);
  155. @StripPostfix("value")
  156. void glUniform3uivEXT(int location, @AutoSize(value = "value", expression = " / 3") @GLsizei int count, @Const @GLuint IntBuffer value);
  157. @StripPostfix("value")
  158. void glUniform4uivEXT(int location, @AutoSize(value = "value", expression = " >> 2") @GLsizei int count, @Const @GLuint IntBuffer value);
  159. @StripPostfix("params")
  160. void glGetUniformuivEXT(@GLuint int program, int location, @OutParameter @Check @GLuint IntBuffer params);
  161. void glBindFragDataLocationEXT(@GLuint int program, @GLuint int colorNumber, @NullTerminated @Const @GLchar ByteBuffer name);
  162. @Alternate("glBindFragDataLocationEXT")
  163. void glBindFragDataLocationEXT(@GLuint int program, @GLuint int colorNumber, @NullTerminated CharSequence name);
  164. int glGetFragDataLocationEXT(@GLuint int program, @NullTerminated @Const @GLchar ByteBuffer name);
  165. @Alternate("glGetFragDataLocationEXT")
  166. int glGetFragDataLocationEXT(@GLuint int program, @NullTerminated CharSequence name);
  167. }