1 /* 2 * Copyright (c) 2002-2011 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 34 import org.lwjgl.util.generator.*; 35 import org.lwjgl.util.generator.opengl.GLenum; 36 import org.lwjgl.util.generator.opengl.GLreturn; 37 import org.lwjgl.util.generator.opengl.GLuint; 38 39 import java.nio.IntBuffer; 40 41 @Extension(postfix = "") 42 public interface ARB_shader_atomic_counters { 43 44 /** Accepted by the <target> parameter of BindBufferBase and BindBufferRange: */ 45 int GL_ATOMIC_COUNTER_BUFFER = 0x92C0; 46 47 /** 48 * Accepted by the <pname> parameter of GetBooleani_v, GetIntegeri_v, 49 * GetFloati_v, GetDoublei_v, GetInteger64i_v, GetBooleanv, GetIntegerv, 50 * GetInteger64v, GetFloatv, GetDoublev, and GetActiveAtomicCounterBufferiv: 51 */ 52 int GL_ATOMIC_COUNTER_BUFFER_BINDING = 0x92C1; 53 54 /** Accepted by the <pname> parameter of GetIntegeri_64v: */ 55 int GL_ATOMIC_COUNTER_BUFFER_START = 0x92C2, 56 GL_ATOMIC_COUNTER_BUFFER_SIZE = 0x92C3; 57 58 /** Accepted by the <pname> parameter of GetActiveAtomicCounterBufferiv: */ 59 int GL_ATOMIC_COUNTER_BUFFER_DATA_SIZE = 0x92C4, 60 GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS = 0x92C5, 61 GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTER_INDICES = 0x92C6, 62 GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_VERTEX_SHADER = 0x92C7, 63 GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_CONTROL_SHADER = 0x92C8, 64 GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_EVALUATION_SHADER = 0x92C9, 65 GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_GEOMETRY_SHADER = 0x92CA, 66 GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_FRAGMENT_SHADER = 0x92CB; 67 68 /** 69 * Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, 70 * GetInteger64v, GetFloatv, and GetDoublev: 71 */ 72 int GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS = 0x92CC, 73 GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS = 0x92CD, 74 GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS = 0x92CE, 75 GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS = 0x92CF, 76 GL_MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS = 0x92D0, 77 GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS = 0x92D1, 78 GL_MAX_VERTEX_ATOMIC_COUNTERS = 0x92D2, 79 GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS = 0x92D3, 80 GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS = 0x92D4, 81 GL_MAX_GEOMETRY_ATOMIC_COUNTERS = 0x92D5, 82 GL_MAX_FRAGMENT_ATOMIC_COUNTERS = 0x92D6, 83 GL_MAX_COMBINED_ATOMIC_COUNTERS = 0x92D7, 84 GL_MAX_ATOMIC_COUNTER_BUFFER_SIZE = 0x92D8, 85 GL_MAX_ATOMIC_COUNTER_BUFFER_BINDINGS = 0x92DC; 86 87 /** Accepted by the <pname> parameter of GetProgramiv: */ 88 int GL_ACTIVE_ATOMIC_COUNTER_BUFFERS = 0x92D9; 89 90 /** Accepted by the <pname> parameter of GetActiveUniformsiv: */ 91 int GL_UNIFORM_ATOMIC_COUNTER_BUFFER_INDEX = 0x92DA; 92 93 /** Returned in <params> by GetActiveUniform and GetActiveUniformsiv: */ 94 int GL_UNSIGNED_INT_ATOMIC_COUNTER = 0x92DB; 95 96 @StripPostfix("params") 97 @Reuse("GL42") glGetActiveAtomicCounterBufferiv(@Luint int program, @GLuint int bufferIndex, @GLenum int pname, @Check(R) @OutParameter IntBuffer params)98 void glGetActiveAtomicCounterBufferiv(@GLuint int program, @GLuint int bufferIndex, @GLenum int pname, @Check("1") @OutParameter IntBuffer params); 99 100 @Alternate("glGetActiveAtomicCounterBufferiv") 101 @StripPostfix("params") 102 @GLreturn("params") 103 @Reuse("GL42") glGetActiveAtomicCounterBufferiv2(@Luint int program, @GLuint int bufferIndex, @GLenum int pname, @OutParameter IntBuffer params)104 void glGetActiveAtomicCounterBufferiv2(@GLuint int program, @GLuint int bufferIndex, @GLenum int pname, @OutParameter IntBuffer params); 105 106 }