PageRenderTime 26ms CodeModel.GetById 32ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://github.com/gemserk/lwjgl
Java | 210 lines | 125 code | 44 blank | 41 comment | 0 complexity | 0cf3dfeb93b249be4f748587fb71d417 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_VEC2_EXT = 0x8DC6;
  55. int GL_UNSIGNED_INT_VEC3_EXT = 0x8DC7;
  56. int GL_UNSIGNED_INT_VEC4_EXT = 0x8DC8;
  57. int GL_INT_SAMPLER_1D_EXT = 0x8DC9;
  58. int GL_INT_SAMPLER_2D_EXT = 0x8DCA;
  59. int GL_INT_SAMPLER_3D_EXT = 0x8DCB;
  60. int GL_INT_SAMPLER_CUBE_EXT = 0x8DCC;
  61. int GL_INT_SAMPLER_2D_RECT_EXT = 0x8DCD;
  62. int GL_INT_SAMPLER_1D_ARRAY_EXT = 0x8DCE;
  63. int GL_INT_SAMPLER_2D_ARRAY_EXT = 0x8DCF;
  64. int GL_INT_SAMPLER_BUFFER_EXT = 0x8DD0;
  65. int GL_UNSIGNED_INT_SAMPLER_1D_EXT = 0x8DD1;
  66. int GL_UNSIGNED_INT_SAMPLER_2D_EXT = 0x8DD2;
  67. int GL_UNSIGNED_INT_SAMPLER_3D_EXT = 0x8DD3;
  68. int GL_UNSIGNED_INT_SAMPLER_CUBE_EXT = 0x8DD4;
  69. int GL_UNSIGNED_INT_SAMPLER_2D_RECT_EXT = 0x8DD5;
  70. int GL_UNSIGNED_INT_SAMPLER_1D_ARRAY_EXT = 0x8DD6;
  71. int GL_UNSIGNED_INT_SAMPLER_2D_ARRAY_EXT = 0x8DD7;
  72. int GL_UNSIGNED_INT_SAMPLER_BUFFER_EXT = 0x8DD8;
  73. /**
  74. * Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv,
  75. * and GetDoublev:
  76. */
  77. int GL_MIN_PROGRAM_TEXEL_OFFSET_EXT = 0x8904;
  78. int GL_MAX_PROGRAM_TEXEL_OFFSET_EXT = 0x8905;
  79. @NoErrorCheck
  80. void glVertexAttribI1iEXT(@GLuint int index, int x);
  81. @NoErrorCheck
  82. void glVertexAttribI2iEXT(@GLuint int index, int x, int y);
  83. @NoErrorCheck
  84. void glVertexAttribI3iEXT(@GLuint int index, int x, int y, int z);
  85. @NoErrorCheck
  86. void glVertexAttribI4iEXT(@GLuint int index, int x, int y, int z, int w);
  87. @NoErrorCheck
  88. void glVertexAttribI1uiEXT(@GLuint int index, @GLuint int x);
  89. @NoErrorCheck
  90. void glVertexAttribI2uiEXT(@GLuint int index, @GLuint int x, @GLuint int y);
  91. @NoErrorCheck
  92. void glVertexAttribI3uiEXT(@GLuint int index, @GLuint int x, @GLuint int y, @GLuint int z);
  93. @NoErrorCheck
  94. void glVertexAttribI4uiEXT(@GLuint int index, @GLuint int x, @GLuint int y, @GLuint int z, @GLuint int w);
  95. @NoErrorCheck
  96. @StripPostfix("v")
  97. void glVertexAttribI1ivEXT(@GLuint int index, @Check("1") @Const IntBuffer v);
  98. @NoErrorCheck
  99. @StripPostfix("v")
  100. void glVertexAttribI2ivEXT(@GLuint int index, @Check("2") @Const IntBuffer v);
  101. @NoErrorCheck
  102. @StripPostfix("v")
  103. void glVertexAttribI3ivEXT(@GLuint int index, @Check("3") @Const IntBuffer v);
  104. @NoErrorCheck
  105. @StripPostfix("v")
  106. void glVertexAttribI4ivEXT(@GLuint int index, @Check("4") @Const IntBuffer v);
  107. @NoErrorCheck
  108. @StripPostfix("v")
  109. void glVertexAttribI1uivEXT(@GLuint int index, @Check("1") @Const @GLuint IntBuffer v);
  110. @NoErrorCheck
  111. @StripPostfix("v")
  112. void glVertexAttribI2uivEXT(@GLuint int index, @Check("2") @Const @GLuint IntBuffer v);
  113. @NoErrorCheck
  114. @StripPostfix("v")
  115. void glVertexAttribI3uivEXT(@GLuint int index, @Check("3") @Const @GLuint IntBuffer v);
  116. @NoErrorCheck
  117. @StripPostfix("v")
  118. void glVertexAttribI4uivEXT(@GLuint int index, @Check("4") @Const @GLuint IntBuffer v);
  119. @NoErrorCheck
  120. @StripPostfix("v")
  121. void glVertexAttribI4bvEXT(@GLuint int index, @Check("4") @Const ByteBuffer v);
  122. @NoErrorCheck
  123. @StripPostfix("v")
  124. void glVertexAttribI4svEXT(@GLuint int index, @Check("4") @Const ShortBuffer v);
  125. @NoErrorCheck
  126. @StripPostfix("v")
  127. void glVertexAttribI4ubvEXT(@GLuint int index, @Check("4") @Const @GLubyte ByteBuffer v);
  128. @NoErrorCheck
  129. @StripPostfix("v")
  130. void glVertexAttribI4usvEXT(@GLuint int index, @Check("4") @Const @GLushort ShortBuffer v);
  131. void glVertexAttribIPointerEXT(@GLuint int index, int size, @GLenum int type, @GLsizei int stride,
  132. @CachedReference(index = "index", name = "glVertexAttribPointer_buffer")
  133. @BufferObject(BufferKind.ArrayVBO)
  134. @Check
  135. @Const
  136. @GLbyte
  137. @GLubyte
  138. @GLshort
  139. @GLushort
  140. @GLint
  141. @GLuint Buffer buffer);
  142. @StripPostfix("params")
  143. void glGetVertexAttribIivEXT(@GLuint int index, @GLenum int pname, @OutParameter @Check("4") IntBuffer params);
  144. @StripPostfix("params")
  145. void glGetVertexAttribIuivEXT(@GLuint int index, @GLenum int pname, @OutParameter @Check("4") @GLuint IntBuffer params);
  146. void glUniform1uiEXT(int location, @GLuint int v0);
  147. void glUniform2uiEXT(int location, @GLuint int v0, @GLuint int v1);
  148. void glUniform3uiEXT(int location, @GLuint int v0, @GLuint int v1, @GLuint int v2);
  149. void glUniform4uiEXT(int location, @GLuint int v0, @GLuint int v1, @GLuint int v2, @GLuint int v3);
  150. @StripPostfix("value")
  151. void glUniform1uivEXT(int location, @AutoSize("value") @GLsizei int count, @Const @GLuint IntBuffer value);
  152. @StripPostfix("value")
  153. void glUniform2uivEXT(int location, @AutoSize(value = "value", expression = " >> 1") @GLsizei int count, @Const @GLuint IntBuffer value);
  154. @StripPostfix("value")
  155. void glUniform3uivEXT(int location, @AutoSize(value = "value", expression = " / 3") @GLsizei int count, @Const @GLuint IntBuffer value);
  156. @StripPostfix("value")
  157. void glUniform4uivEXT(int location, @AutoSize(value = "value", expression = " >> 2") @GLsizei int count, @Const @GLuint IntBuffer value);
  158. @StripPostfix("params")
  159. void glGetUniformuivEXT(@GLuint int program, int location, @OutParameter @Check @GLuint IntBuffer params);
  160. void glBindFragDataLocationEXT(@GLuint int program, @GLuint int colorNumber, @NullTerminated @Const @GLchar ByteBuffer name);
  161. @Alternate("glBindFragDataLocationEXT")
  162. void glBindFragDataLocationEXT(@GLuint int program, @GLuint int colorNumber, @NullTerminated CharSequence name);
  163. int glGetFragDataLocationEXT(@GLuint int program, @NullTerminated @Const @GLchar ByteBuffer name);
  164. @Alternate("glGetFragDataLocationEXT")
  165. int glGetFragDataLocationEXT(@GLuint int program, @NullTerminated CharSequence name);
  166. }