Lines Matching refs:uniform
565 const Uniform& uniform = *uniformIter;
566 computeStd140Layout(layout, curOffset, activeBlockNdx, blockPrefix + uniform.getName(), uniform.getType(),
567 mergeLayoutFlags(block.getFlags(), uniform.getFlags()));
584 // Compute active uniform set for block.
723 void generateDeclaration(std::ostringstream& src, const Uniform& uniform, int indentLevel);
821 void generateDeclaration(std::ostringstream& src, const Uniform& uniform, int indentLevel)
823 if ((uniform.getFlags() & LAYOUT_MASK) != 0)
824 src << "layout(" << LayoutFlagsFmt(uniform.getFlags() & LAYOUT_MASK) << ") ";
826 generateDeclaration(src, uniform.getType(), uniform.getName(), indentLevel, uniform.getFlags() & UNUSED_BOTH);
834 src << "uniform " << block.getBlockName();
1011 const Uniform& uniform = *uniformIter;
1013 if (uniform.getFlags() & unusedMask)
1014 continue; // Don't read from that uniform.
1016 generateCompareSrc(src, resultVar, uniform.getType(), (srcPrefix + uniform.getName()).c_str(),
1017 (apiPrefix + uniform.getName()).c_str(), layout, basePtr, unusedMask);
1110 GLU_EXPECT_NO_ERROR(gl.getError(), "Failed to get number of uniforms and uniform blocks");
1176 GLU_EXPECT_NO_ERROR(gl.getError(), "Active uniform query failed");
1317 GLU_EXPECT_NO_ERROR(m_renderCtx.getFunctions().getError(), "Failed to allocate uniform buffer");
1430 // Assign binding points to all active uniform blocks.
1437 GLU_EXPECT_NO_ERROR(gl.getError(), "Failed to set uniform block bindings");
1463 GLU_EXPECT_NO_ERROR(gl.getError(), "Failed to upload uniform buffer data");
1506 GLU_EXPECT_NO_ERROR(gl.getError(), "Failed to upload uniform buffer data");
1749 // Check uniform block indices.
1752 const UniformLayoutEntry& uniform = layout.uniforms[uniformNdx];
1754 if (uniform.blockNdx < 0 || !deInBounds32(uniform.blockNdx, 0, numBlocks))
1756 log << TestLog::Message << "Error: Invalid block index in uniform '" << uniform.name << "'"
1772 log << TestLog::Message << "Error: Invalid active uniform index " << *uniformIter << " in block '"
1790 const UniformLayoutEntry& uniform = layout.uniforms[uniformNdx];
1792 if (uniform.blockNdx < 0)
1795 const BlockLayoutEntry& block = layout.blocks[uniform.blockNdx];
1796 bool isMatrix = glu::isDataTypeMatrix(uniform.type);
1797 int numVecs = isMatrix ? (uniform.isRowMajor ? glu::getDataTypeMatrixNumRows(uniform.type) :
1798 glu::getDataTypeMatrixNumColumns(uniform.type)) :
1800 int numComps = isMatrix ? (uniform.isRowMajor ? glu::getDataTypeMatrixNumColumns(uniform.type) :
1801 glu::getDataTypeMatrixNumRows(uniform.type)) :
1802 glu::getDataTypeScalarSize(uniform.type);
1803 int numElements = uniform.size;
1811 minOffset = de::min(minOffset, (numVecs - 1) * uniform.matrixStride);
1812 minOffset = de::min(minOffset, (numElements - 1) * uniform.arrayStride);
1813 minOffset = de::min(minOffset, (numElements - 1) * uniform.arrayStride + (numVecs - 1) * uniform.matrixStride);
1816 maxOffset = de::max(maxOffset, (numVecs - 1) * uniform.matrixStride + vecSize);
1817 maxOffset = de::max(maxOffset, (numElements - 1) * uniform.arrayStride + vecSize);
1819 (numElements - 1) * uniform.arrayStride + (numVecs - 1) * uniform.matrixStride + vecSize);
1821 if (uniform.offset + minOffset < 0 || uniform.offset + maxOffset > block.size)
1823 log << TestLog::Message << "Error: Uniform '" << uniform.name << "' out of block bounds"
1838 // \note Spec mandates that uniform blocks are assigned consecutive locations from 0