PageRenderTime 42ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://github.com/jasonm/smartlab
Java | 183 lines | 100 code | 42 blank | 41 comment | 0 complexity | 65a335bd1039f6d4a59169edb9eb8260 MD5 | raw file
Possible License(s): BSD-3-Clause
  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 java.nio.Buffer;
  35. import java.nio.ByteBuffer;
  36. import java.nio.IntBuffer;
  37. import java.nio.ShortBuffer;
  38. public interface EXT_gpu_shader4 {
  39. /**
  40. * Accepted by the <pname> parameters of GetVertexAttribdv,
  41. * GetVertexAttribfv, GetVertexAttribiv, GetVertexAttribIivEXT, and
  42. * GetVertexAttribIuivEXT:
  43. */
  44. int GL_VERTEX_ATTRIB_ARRAY_INTEGER_EXT = 0x88FD;
  45. /** Returned by the <type> parameter of GetActiveUniform: */
  46. int GL_SAMPLER_1D_ARRAY_EXT = 0x8DC0;
  47. int GL_SAMPLER_2D_ARRAY_EXT = 0x8DC1;
  48. int GL_SAMPLER_BUFFER_EXT = 0x8DC2;
  49. int GL_SAMPLER_1D_ARRAY_SHADOW_EXT = 0x8DC3;
  50. int GL_SAMPLER_2D_ARRAY_SHADOW_EXT = 0x8DC4;
  51. int GL_SAMPLER_CUBE_SHADOW_EXT = 0x8DC5;
  52. int GL_UNSIGNED_INT = 0x1405;
  53. int GL_UNSIGNED_INT_VEC2_EXT = 0x8DC6;
  54. int GL_UNSIGNED_INT_VEC3_EXT = 0x8DC7;
  55. int GL_UNSIGNED_INT_VEC4_EXT = 0x8DC8;
  56. int GL_INT_SAMPLER_1D_EXT = 0x8DC9;
  57. int GL_INT_SAMPLER_2D_EXT = 0x8DCA;
  58. int GL_INT_SAMPLER_3D_EXT = 0x8DCB;
  59. int GL_INT_SAMPLER_CUBE_EXT = 0x8DCC;
  60. int GL_INT_SAMPLER_2D_RECT_EXT = 0x8DCD;
  61. int GL_INT_SAMPLER_1D_ARRAY_EXT = 0x8DCE;
  62. int GL_INT_SAMPLER_2D_ARRAY_EXT = 0x8DCF;
  63. int GL_INT_SAMPLER_BUFFER_EXT = 0x8DD0;
  64. int GL_UNSIGNED_INT_SAMPLER_1D_EXT = 0x8DD1;
  65. int GL_UNSIGNED_INT_SAMPLER_2D_EXT = 0x8DD2;
  66. int GL_UNSIGNED_INT_SAMPLER_3D_EXT = 0x8DD3;
  67. int GL_UNSIGNED_INT_SAMPLER_CUBE_EXT = 0x8DD4;
  68. int GL_UNSIGNED_INT_SAMPLER_2D_RECT_EXT = 0x8DD5;
  69. int GL_UNSIGNED_INT_SAMPLER_1D_ARRAY_EXT = 0x8DD6;
  70. int GL_UNSIGNED_INT_SAMPLER_2D_ARRAY_EXT = 0x8DD7;
  71. int GL_UNSIGNED_INT_SAMPLER_BUFFER_EXT = 0x8DD8;
  72. /**
  73. * Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv,
  74. * and GetDoublev:
  75. */
  76. int GL_MIN_PROGRAM_TEXEL_OFFSET_EXT = 0x8904;
  77. int GL_MAX_PROGRAM_TEXEL_OFFSET_EXT = 0x8905;
  78. void glVertexAttribI1iEXT(@GLuint int index, int x);
  79. void glVertexAttribI2iEXT(@GLuint int index, int x, int y);
  80. void glVertexAttribI3iEXT(@GLuint int index, int x, int y, int z);
  81. void glVertexAttribI4iEXT(@GLuint int index, int x, int y, int z, int w);
  82. void glVertexAttribI1uiEXT(@GLuint int index, @GLuint int x);
  83. void glVertexAttribI2uiEXT(@GLuint int index, @GLuint int x, @GLuint int y);
  84. void glVertexAttribI3uiEXT(@GLuint int index, @GLuint int x, @GLuint int y, @GLuint int z);
  85. void glVertexAttribI4uiEXT(@GLuint int index, @GLuint int x, @GLuint int y, @GLuint int z, @GLuint int w);
  86. @StripPostfix("v")
  87. void glVertexAttribI1ivEXT(@GLuint int index, @Check("1") @Const IntBuffer v);
  88. @StripPostfix("v")
  89. void glVertexAttribI2ivEXT(@GLuint int index, @Check("2") @Const IntBuffer v);
  90. @StripPostfix("v")
  91. void glVertexAttribI3ivEXT(@GLuint int index, @Check("3") @Const IntBuffer v);
  92. @StripPostfix("v")
  93. void glVertexAttribI4ivEXT(@GLuint int index, @Check("4") @Const IntBuffer v);
  94. @StripPostfix("v")
  95. void glVertexAttribI1uivEXT(@GLuint int index, @Check("1") @Const @GLuint IntBuffer v);
  96. @StripPostfix("v")
  97. void glVertexAttribI2uivEXT(@GLuint int index, @Check("2") @Const @GLuint IntBuffer v);
  98. @StripPostfix("v")
  99. void glVertexAttribI3uivEXT(@GLuint int index, @Check("3") @Const @GLuint IntBuffer v);
  100. @StripPostfix("v")
  101. void glVertexAttribI4uivEXT(@GLuint int index, @Check("4") @Const @GLuint IntBuffer v);
  102. @StripPostfix("v")
  103. void glVertexAttribI4bvEXT(@GLuint int index, @Check("4") @Const ByteBuffer v);
  104. @StripPostfix("v")
  105. void glVertexAttribI4svEXT(@GLuint int index, @Check("4") @Const ShortBuffer v);
  106. @StripPostfix("v")
  107. void glVertexAttribI4ubvEXT(@GLuint int index, @Check("4") @Const @GLubyte ByteBuffer v);
  108. @StripPostfix("v")
  109. void glVertexAttribI4usvEXT(@GLuint int index, @Check("4") @Const @GLushort ShortBuffer v);
  110. void glVertexAttribIPointerEXT(@GLuint int index, int size, @GLenum int type, @GLsizei int stride,
  111. @CachedReference
  112. @BufferObject(BufferKind.ArrayVBO)
  113. @Check
  114. @Const
  115. @GLbyte
  116. @GLubyte
  117. @GLshort
  118. @GLushort
  119. @GLint
  120. @GLuint Buffer buffer);
  121. @StripPostfix("params")
  122. void glGetVertexAttribIivEXT(@GLuint int index, @GLenum int pname, @OutParameter @Check("4")IntBuffer params);
  123. @StripPostfix("params")
  124. void glGetVertexAttribIuivEXT(@GLuint int index, @GLenum int pname, @OutParameter @Check("4") @GLuint IntBuffer params);
  125. void glUniform1uiEXT(int location, @GLuint int v0);
  126. void glUniform2uiEXT(int location, @GLuint int v0, @GLuint int v1);
  127. void glUniform3uiEXT(int location, @GLuint int v0, @GLuint int v1, @GLuint int v2);
  128. void glUniform4uiEXT(int location, @GLuint int v0, @GLuint int v1, @GLuint int v2, @GLuint int v3);
  129. @StripPostfix("value")
  130. void glUniform1uivEXT(int location, @AutoSize("value") @GLsizei int count, @Const @GLuint IntBuffer value);
  131. @StripPostfix("value")
  132. void glUniform2uivEXT(int location, @AutoSize(value = "value", expression = " >> 1") @GLsizei int count, @Const @GLuint IntBuffer value);
  133. @StripPostfix("value")
  134. void glUniform3uivEXT(int location, @AutoSize(value = "value", expression = " / 3") @GLsizei int count, @Const @GLuint IntBuffer value);
  135. @StripPostfix("value")
  136. void glUniform4uivEXT(int location, @AutoSize(value = "value", expression = " >> 2") @GLsizei int count, @Const @GLuint IntBuffer value);
  137. @StripPostfix("params")
  138. void glGetUniformuivEXT(@GLuint int program, int location, @OutParameter @Check @GLuint IntBuffer params);
  139. void glBindFragDataLocationEXT(@GLuint int program, @GLuint int colorNumber, @NullTerminated @Const @GLchar ByteBuffer name);
  140. int glGetFragDataLocationEXT(@GLuint int program, @NullTerminated @Const @GLchar ByteBuffer name);
  141. }