Home
last modified time | relevance | path

Searched refs:numComps (Results 1 – 16 of 16) sorted by relevance

/external/deqp/modules/gles31/functional/
Des31fComputeShaderBuiltinVarTests.cpp177 static inline UVec3 readResultVec (const deUint32* ptr, int numComps) in readResultVec() argument
180 for (int ndx = 0; ndx < numComps; ndx++) in readResultVec()
185 static inline bool compareComps (const UVec3& a, const UVec3& b, int numComps) in compareComps() argument
187 DE_ASSERT(numComps == 1 || numComps == 3); in compareComps()
188 return numComps == 3 ? tcu::allEqual(a, b) : a.x() == b.x(); in compareComps()
194 int numComps; member
196 LogComps (const UVec3& v_, int numComps_) : v(v_), numComps(numComps_) {} in LogComps()
201 DE_ASSERT(c.numComps == 1 || c.numComps == 3); in operator <<()
202 return c.numComps == 3 ? str << c.v : str << c.v.x(); in operator <<()
Des31fSSBOLayoutCase.cpp1633 bool compareComponents (glu::DataType scalarType, const void* ref, const void* res, int numComps) in compareComponents() argument
1639 for (int ndx = 0; ndx < numComps; ndx++) in compareComponents()
1650 for (int ndx = 0; ndx < numComps; ndx++) in compareComponents()
1663 for (int ndx = 0; ndx < numComps; ndx++) in compareComponents()
2545 …const int numComps = isMatrix ? (var.isRowMajor ? glu::getDataTypeMatrixNumColumns(var.type) … in checkLayoutBounds() local
2551 const int vecSize = numComps*compSize; in checkLayoutBounds()
Des31fTessellationTests.cpp5060 const int numComps = m_primitiveType == TESSPRIMITIVETYPE_TRIANGLES ? 3 : 2; in iterate() local
5062 for (int compNdx = 0; compNdx < numComps; compNdx++) in iterate()
/external/deqp/external/vulkancts/modules/vulkan/compute/
DvktComputeShaderBuiltinVarTests.cpp74 static inline bool compareNumComponents (const UVec3& a, const UVec3& b,const int numComps) in compareNumComponents() argument
76 DE_ASSERT(numComps == 1 || numComps == 3); in compareNumComponents()
77 return numComps == 3 ? tcu::allEqual(a, b) : a.x() == b.x(); in compareNumComponents()
80 static inline UVec3 readResultVec (const deUint32* ptr, const int numComps) in readResultVec() argument
83 for (int ndx = 0; ndx < numComps; ndx++) in readResultVec()
91 int numComps; member
93 LogComps (const UVec3 &v_, int numComps_) : v(v_), numComps(numComps_) {} in LogComps()
98 DE_ASSERT(c.numComps == 1 || c.numComps == 3); in operator <<()
99 return c.numComps == 3 ? str << c.v : str << c.v.x(); in operator <<()
/external/deqp/modules/gles3/functional/
Des3fShaderDerivateTests.cpp346 int numComps; member
350 , numComps (numComps_) in LogVecComps()
357 DE_ASSERT(de::inRange(v.numComps, 1, 4)); in operator <<()
358 if (v.numComps == 1) return str << v.v[0]; in operator <<()
359 else if (v.numComps == 2) return str << v.v.toWidth<2>(); in operator <<()
360 else if (v.numComps == 3) return str << v.v.toWidth<3>(); in operator <<()
382 const int numComps = glu::getDataTypeFloatScalars(dataType); in verifyConstantDerivate() local
387 … << "Expecting " << LogVecComps(reference, numComps) << " with threshold " << LogVecComps(threshol… in verifyConstantDerivate()
399 log << TestLog::Message << "FAIL: got " << LogVecComps(resDerivate, numComps) in verifyConstantDerivate()
400 << ", diff = " << LogVecComps(tcu::abs(reference - resDerivate), numComps) in verifyConstantDerivate()
[all …]
Des3fTransformFeedbackTests.cpp541 const int numComps = glu::getDataTypeScalarSize(attrib.type.getBasicType()); in genAttributeData() local
545 for (int compNdx = 0; compNdx < numComps; compNdx++) in genAttributeData()
1474 int numComps = glu::getDataTypeScalarSize(type); in init() local
1475 int maxArrayLen = de::max(1, isSeparateMode ? 4/numComps : maxVecs/numVecs); in init()
/external/deqp/modules/glshared/
DglsRandomShaderProgram.cpp54 const int numComps = varType.getNumElements(); in mapToBasicType() local
56 DE_ASSERT(de::inRange(numComps, 1, 4)); in mapToBasicType()
57 return glu::DataType(scalarType + numComps - 1); in mapToBasicType()
DglsShaderExecUtil.cpp548 const int numComps = glu::getDataTypeNumComponents(basicType); in getRenderbufferFormatForOutput() local
561 DE_ASSERT(de::inRange<int>(numComps, 1, DE_LENGTH_OF_ARRAY(channelOrderMap))); in getRenderbufferFormatForOutput()
563 return tcu::TextureFormat(channelOrderMap[numComps-1], channelType); in getRenderbufferFormatForOutput()
976 const int numComps = scalarSize / numVecs; in copyToBuffer() local
982 const int srcOffset = (int)sizeof(deUint32)*(elemNdx*scalarSize + vecNdx*numComps); in copyToBuffer()
987 deMemcpy(dstPtr, srcPtr, sizeof(deUint32)*numComps); in copyToBuffer()
1003 const int numComps = scalarSize / numVecs; in copyFromBuffer() local
1010 const int dstOffset = (int)sizeof(deUint32)*(elemNdx*scalarSize + vecNdx*numComps); in copyFromBuffer()
1014 deMemcpy(dstPtr, srcPtr, sizeof(deUint32)*numComps); in copyFromBuffer()
DglsFragOpInteractionCase.cpp90 const int numComps = type.getNumElements(); in computeVertexLayout() local
94 …layout->push_back(glu::va::Float(var->getName(), numComps, numVertices, 0 /* computed later */, (c… in computeVertexLayout()
96 curOffset += numComps * (int)sizeof(float); in computeVertexLayout()
DglsTextureTestUtil.cpp1301 int numComps = 0; in renderQuad() local
1304 numComps = 2; in renderQuad()
1317 numComps = 1; in renderQuad()
1330 numComps = 3; in renderQuad()
1343 numComps = 3; in renderQuad()
1357 numComps = 3; in renderQuad()
1372 numComps = 4; in renderQuad()
1387 numComps = 2; in renderQuad()
1400 numComps = 1; in renderQuad()
1458 glu::va::Float("a_texCoord", numComps, 4, 0, texCoord) in renderQuad()
DglsUniformBlockCase.cpp1838 …int numComps = isMatrix ? (uniform.isRowMajor ? glu::getDataTypeMatrixNumColumns(uniform.ty… in checkLayoutBounds() local
1841 int vecSize = numComps*compSize; in checkLayoutBounds()
/external/deqp/external/vulkancts/modules/vulkan/shaderexecutor/
DvktShaderExecutor.cpp542 const int numComps = glu::getDataTypeNumComponents(basicType); in getRenderbufferFormatForOutput() local
555 DE_ASSERT(de::inRange<int>(numComps, 1, DE_LENGTH_OF_ARRAY(channelOrderMap))); in getRenderbufferFormatForOutput()
557 return tcu::TextureFormat(channelOrderMap[numComps-1], channelType); in getRenderbufferFormatForOutput()
1745 const int numComps = scalarSize / numVecs; in copyToBuffer() local
1751 const int srcOffset = (int)sizeof(deUint32) * (elemNdx * scalarSize + vecNdx * numComps); in copyToBuffer()
1756 deMemcpy(dstPtr, srcPtr, sizeof(deUint32) * numComps); in copyToBuffer()
1772 const int numComps = scalarSize / numVecs; in copyFromBuffer() local
1779 const int dstOffset = (int)sizeof(deUint32) * (elemNdx * scalarSize + vecNdx * numComps); in copyFromBuffer()
1783 deMemcpy(dstPtr, srcPtr, sizeof(deUint32) * numComps); in copyFromBuffer()
/external/deqp/external/vulkancts/modules/vulkan/
DvktShaderLibrary.cpp664 …const int numComps = isDataTypeMatrix(basicType) ? getDataTypeMatrixNumRows(basicType) : scalarSi… in copyToLayout() local
672 for (int compNdx = 0; compNdx < numComps; compNdx++) in copyToLayout()
674 …const deUint32 data = value.elements[arrayNdx*scalarSize + vecNdx*numComps + compNdx].bool32 ? ~0u… in copyToLayout()
686 &value.elements[arrayNdx*scalarSize + vecNdx*numComps], in copyToLayout()
687 numComps*sizeof(deUint32)); in copyToLayout()
/external/deqp/external/vulkancts/modules/vulkan/ssbo/
DvktSSBOLayoutCase.cpp1411 bool compareComponents (glu::DataType scalarType, const void* ref, const void* res, int numComps) in compareComponents() argument
1417 for (int ndx = 0; ndx < numComps; ndx++) in compareComponents()
1428 for (int ndx = 0; ndx < numComps; ndx++) in compareComponents()
1441 for (int ndx = 0; ndx < numComps; ndx++) in compareComponents()
/external/clang/lib/AST/
DExpr.cpp1337 unsigned numComps, unsigned numExprs) { in CreateEmpty() argument
1339 sizeof(OffsetOfNode) * numComps + in CreateEmpty()
1341 return new (Mem) OffsetOfExpr(numComps, numExprs); in CreateEmpty()
/external/clang/include/clang/AST/
DExpr.h1934 explicit OffsetOfExpr(unsigned numComps, unsigned numExprs) in OffsetOfExpr() argument
1936 TSInfo(nullptr), NumComps(numComps), NumExprs(numExprs) {} in OffsetOfExpr()