Home | History | Annotate | Download | only in opengl

Lines Matching refs:index

33 deUint32 getProgramResourceUint (const glw::Functions& gl, deUint32 program, deUint32 programInterface, deUint32 index, deUint32 queryParam)
36 gl.getProgramResourceiv(program, programInterface, index, 1, &queryParam, 1, DE_NULL, (int*)&value);
41 void getProgramResourceName (const glw::Functions& gl, deUint32 program, deUint32 programInterface, deUint32 index, std::string& dst)
43 const int length = getProgramResourceInt(gl, program, programInterface, index, GL_NAME_LENGTH);
48 gl.getProgramResourceName(program, programInterface, index, (int)buf.size(), DE_NULL, &buf[0]);
56 msg << "Empty name returned for " << programInterface << " at index " << index;
61 static void getProgramInterfaceActiveVariables (const glw::Functions& gl, deUint32 program, deUint32 programInterface, deUint32 index, std::vector<int>& activeVariables)
63 const int numActiveVariables = getProgramResourceInt(gl, program, programInterface, index, GL_NUM_ACTIVE_VARIABLES);
69 gl.getProgramResourceiv(program, programInterface, index, 1, &queryParam, (int)activeVariables.size(), DE_NULL, &activeVariables[0]);
74 void getProgramInterfaceBlockInfo (const glw::Functions& gl, deUint32 program, deUint32 programInterface, deUint32 index, InterfaceBlockInfo& info)
76 info.index = index;
77 info.bufferBinding = getProgramResourceUint(gl, program, programInterface, index, GL_BUFFER_BINDING);
78 info.dataSize = getProgramResourceUint(gl, program, programInterface, index, GL_BUFFER_DATA_SIZE);
80 getProgramInterfaceActiveVariables(gl, program, programInterface, index, info.activeVariables);
83 getProgramResourceName(gl, program, programInterface, index, info.name);
86 void getProgramInterfaceVariableInfo (const glw::Functions& gl, deUint32 program, deUint32 programInterface, deUint32 index, InterfaceVariableInfo& info)
89 info.index = index;
90 info.blockIndex = getProgramResourceUint(gl, program, programInterface, index, GL_BLOCK_INDEX);
91 info.type = getProgramResourceUint(gl, program, programInterface, index, GL_TYPE);
92 info.arraySize = getProgramResourceUint(gl, program, programInterface, index, GL_ARRAY_SIZE);
93 info.offset = getProgramResourceUint(gl, program, programInterface, index, GL_OFFSET);
94 info.arrayStride = getProgramResourceUint(gl, program, programInterface, index, GL_ARRAY_STRIDE);
95 info.matrixStride = getProgramResourceUint(gl, program, programInterface, index, GL_MATRIX_STRIDE);
96 info.isRowMajor = getProgramResourceUint(gl, program, programInterface, index, GL_IS_ROW_MAJOR) != GL_FALSE;
99 info.atomicCounterBufferIndex = getProgramResourceUint(gl, program, programInterface, index, GL_ATOMIC_COUNTER_BUFFER_INDEX);
103 info.topLevelArraySize = getProgramResourceUint(gl, program, programInterface, index, GL_TOP_LEVEL_ARRAY_SIZE);
104 info.topLevelArrayStride = getProgramResourceUint(gl, program, programInterface, index, GL_TOP_LEVEL_ARRAY_STRIDE);
107 getProgramResourceName(gl, program, programInterface, index, info.name);