Home
last modified time | relevance | path

Searched refs:scalarType (Results 1 – 25 of 33) sorted by relevance

12

/third_party/skia/src/sksl/ir/
DSkSLConstructorCompoundCast.cpp23 const Type& scalarType = destType.componentType(); in cast_constant_composite() local
34 ConstructorScalarCast::Make(context, constCtor->fLine, scalarType, in cast_constant_composite()
44 ConstructorScalarCast::Make(context, constCtor->fLine, scalarType, in cast_constant_composite()
56 if (scalarType.checkForOutOfRangeLiteral(context, *slotVal, constCtor->fLine)) { in cast_constant_composite()
61 typecastArgs.push_back(Literal::Make(constCtor->fLine, *slotVal, &scalarType)); in cast_constant_composite()
DSkSLConstructorArrayCast.cpp21 const Type& scalarType = destType.componentType(); in cast_constant_array() local
30 typecastArgs.push_back(ConstructorScalarCast::Make(context, line, scalarType, in cast_constant_array()
33 typecastArgs.push_back(ConstructorCompoundCast::Make(context, line, scalarType, in cast_constant_array()
DSkSLIndexExpression.cpp128 const Type& scalarType = baseType.componentType(); in Make() local
129 const Type& vecType = scalarType.toCompound(context, vecWidth, /*rows=*/1); in Make()
137 ctorArgs.push_back(Literal::Make(baseExpr->fLine, *slotVal, &scalarType)); in Make()
DSkSLSwizzle.cpp391 const Type* scalarType = &baseType.componentType(); in Convert() local
403 context, line, *scalarType, in Convert()
413 context, line, *scalarType, in Convert()
427 scalarType->toCompound(context, constantFieldIdx, /*rows=*/1), in Convert()
DSkSLType.cpp97 LiteralType(const char* name, const Type& scalarType, int8_t priority) in LiteralType() argument
99 , fScalarType(scalarType) in LiteralType()
432 std::unique_ptr<Type> Type::MakeLiteralType(const char* name, const Type& scalarType, in MakeLiteralType() argument
434 return std::make_unique<LiteralType>(name, scalarType, priority); in MakeLiteralType()
DSkSLType.h121 static std::unique_ptr<Type> MakeLiteralType(const char* name, const Type& scalarType,
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderexecutor/
DvktShaderCommonFunctionTests.cpp160 const glu::DataType scalarType = glu::getDataTypeScalarType(type); in getComponentByteSize() local
162 DE_ASSERT( scalarType == glu::TYPE_FLOAT || in getComponentByteSize()
163 scalarType == glu::TYPE_FLOAT16 || in getComponentByteSize()
164 scalarType == glu::TYPE_DOUBLE || in getComponentByteSize()
165 scalarType == glu::TYPE_INT || in getComponentByteSize()
166 scalarType == glu::TYPE_UINT || in getComponentByteSize()
167 scalarType == glu::TYPE_INT8 || in getComponentByteSize()
168 scalarType == glu::TYPE_UINT8 || in getComponentByteSize()
169 scalarType == glu::TYPE_INT16 || in getComponentByteSize()
170 scalarType == glu::TYPE_UINT16 || in getComponentByteSize()
[all …]
DvktShaderIntegerFunctionTests.cpp84 const glu::DataType scalarType = glu::getDataTypeScalarType(basicType); in operator <<() local
95 switch (scalarType) in operator <<()
234 const glu::DataType scalarType = scalarTypes[scalarTypeNdx]; in addFunctionCases() local
236 if ((!intTypes && scalarType == glu::TYPE_INT) || (!uintTypes && scalarType == glu::TYPE_UINT)) in addFunctionCases()
249 …group->addChild(new TestClass(parent->getTestContext(), glu::DataType(scalarType + vecSize - 1), g… in addFunctionCases()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/transform_feedback/
DvktTransformFeedbackFuzzLayoutCase.cpp463 const glu::DataType scalarType = glu::getDataTypeScalarType(entry.type); in createMask() local
469 const size_t compSize = getDataTypeByteSize(scalarType); in createMask()
487 switch (scalarType) in createMask()
644 const glu::DataType scalarType = glu::getDataTypeScalarType(elemBasicType); in computeXfbLayout() local
647 const int stride = getDataTypeArrayStride(glu::getDataTypeVector(scalarType, vecSize)); in computeXfbLayout()
649 …trideForLocation = getDataTypeArrayStrideForLocation(glu::getDataTypeVector(scalarType, vecSize)); in computeXfbLayout()
906 const glu::DataType scalarType = glu::getDataTypeScalarType(entry.type); in generateValue() local
912 const size_t compSize = getDataTypeByteSize(scalarType); in generateValue()
930 switch (scalarType) in generateValue()
1207 const glu::DataType scalarType = glu::getDataTypeScalarType(entry.type); in generateValueSrc() local
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineSpecConstantTests.cpp1996 const glu::DataType scalarType = glu::getDataTypeScalarType(type); in makeMatrixVectorCompositeCaseDefinition() local
1998 const bool isConst = (scalarType != glu::TYPE_FLOAT) && (scalarType != glu::TYPE_DOUBLE); in makeMatrixVectorCompositeCaseDefinition()
2008 const bool isBoolElement = (scalarType == glu::TYPE_BOOL); in makeMatrixVectorCompositeCaseDefinition()
2010 const std::string accumType = glu::getDataTypeName(isBoolElement ? glu::TYPE_INT : scalarType); in makeMatrixVectorCompositeCaseDefinition()
2018 makeVector(makeSpecConstant("sc0", 1u, scalarType, specValue)), in makeMatrixVectorCompositeCaseDefinition()
2022 …generateShaderChecksumComputationCode(scalarType, varName, accumType, size1, size2, numCombination… in makeMatrixVectorCompositeCaseDefinition()
2023 computeExpectedValues(specValue, scalarType, numCombinations), in makeMatrixVectorCompositeCaseDefinition()
2024 (scalarType == glu::TYPE_DOUBLE ? (FeatureFlags)FEATURE_SHADER_FLOAT_64 : (FeatureFlags)0), in makeMatrixVectorCompositeCaseDefinition()
2053 const glu::DataType scalarType = glu::getDataTypeScalarType(elemType); in makeArrayCompositeCaseDefinition() local
2054 const bool isBoolData = (scalarType == glu::TYPE_BOOL); in makeArrayCompositeCaseDefinition()
[all …]
/third_party/vk-gl-cts/modules/glshared/
DglsRandomShaderCase.cpp410 const char* scalarType = DE_NULL; in operator <<() local
415 case rsg::VariableType::TYPE_FLOAT: scalarType = "float"; vecType = "vec"; break; in operator <<()
416 case rsg::VariableType::TYPE_INT: scalarType = "int"; vecType = "ivec"; break; in operator <<()
417 case rsg::VariableType::TYPE_BOOL: scalarType = "bool"; vecType = "bvec"; break; in operator <<()
418 case rsg::VariableType::TYPE_SAMPLER_2D: scalarType = "sampler2D"; break; in operator <<()
419 case rsg::VariableType::TYPE_SAMPLER_CUBE: scalarType = "samplerCube"; break; in operator <<()
426 message << scalarType << "("; in operator <<()
DglsRandomShaderProgram.cpp51 const glu::DataType scalarType = varType.isFloatOrVec() ? glu::TYPE_FLOAT : in mapToBasicType() local
57 return glu::DataType(scalarType + numComps - 1); in mapToBasicType()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ssbo/
DvktSSBOLayoutCase.cpp768 const glu::DataType scalarType = glu::getDataTypeScalarType(entry.type); in generateValue() local
777 const size_t compSize = getDataTypeByteSize(scalarType); in generateValue()
799 switch (scalarType) in generateValue()
1098 const glu::DataType scalarType = glu::getDataTypeScalarType(basicType); in generateImmScalarVectorSrc() local
1100 const size_t compSize = getDataTypeByteSize(scalarType); in generateImmScalarVectorSrc()
1112 switch (scalarType) in generateImmScalarVectorSrc()
1510 glu::DataType scalarType = glu::getDataTypeScalarType(dstEntry.type); in copyBufferVarData() local
1511 const size_t compSize = getDataTypeByteSize(scalarType); in copyBufferVarData()
1663 bool compareComponents (glu::DataType scalarType, const void* ref, const void* res, int numComps) in compareComponents() argument
1665 if (scalarType == glu::TYPE_FLOAT) in compareComponents()
[all …]
/third_party/vk-gl-cts/modules/gles31/functional/
Des31fUniformLocationTests.cpp329 const glu::DataType scalarType = glu::getDataTypeScalarType(subType.getBasicType()); in genShaderSources() local
330 const char* const typeName = glu::getDataTypeName(scalarType); in genShaderSources()
331 …const string expectValue = de::floatToString(getExpectedValue(scalarType, location >= 0 ? locatio… in genShaderSources()
333 if (glu::isDataTypeSampler(scalarType)) in genShaderSources()
592 const glu::DataType scalarType = glu::getDataTypeScalarType(type.getBasicType()); in render() local
593 const char* const typeName = glu::getDataTypeName(scalarType); in render()
594 const float expectedValue = getExpectedValue(scalarType, expectedLocation, typeName); in render()
596 if (glu::isDataTypeSampler(scalarType)) in render()
600 texList.push_back(createTexture(scalarType, expectedValue, binding).release()); in render()
Des31fShaderIntegerFunctionTests.cpp82 const glu::DataType scalarType = glu::getDataTypeScalarType(basicType); in operator <<() local
93 switch (scalarType) in operator <<()
1087 const glu::DataType scalarType = scalarTypes[scalarTypeNdx]; in addFunctionCases() local
1089 if ((!intTypes && scalarType == glu::TYPE_INT) || (!uintTypes && scalarType == glu::TYPE_UINT)) in addFunctionCases()
1102 …group->addChild(new TestClass(parent->getContext(), glu::DataType(scalarType + vecSize - 1), glu::… in addFunctionCases()
Des31fSSBOLayoutCase.cpp728 const glu::DataType scalarType = glu::getDataTypeScalarType(entry.type); in generateValue() local
759 switch (scalarType) in generateValue()
1009 const glu::DataType scalarType = glu::getDataTypeScalarType(basicType); in generateImmScalarVectorSrc() local
1023 switch (scalarType) in generateImmScalarVectorSrc()
1642 bool compareComponents (glu::DataType scalarType, const void* ref, const void* res, int numComps) in compareComponents() argument
1644 if (scalarType == glu::TYPE_FLOAT) in compareComponents()
1657 else if (scalarType == glu::TYPE_BOOL) in compareComponents()
1670 DE_ASSERT(scalarType == glu::TYPE_INT || scalarType == glu::TYPE_UINT); in compareComponents()
1694 const glu::DataType scalarType = glu::getDataTypeScalarType(refEntry.type); in compareBufferVarData() local
1741 isOk = isOk && compareComponents(scalarType, resCompPtr, refCompPtr, 1); in compareBufferVarData()
[all …]
Des31fShaderCommonFunctionTests.cpp357 const glu::DataType scalarType = glu::getDataTypeScalarType(basicType); in operator <<() local
368 switch (scalarType) in operator <<()
2097 const glu::DataType scalarType = scalarTypes[scalarTypeNdx]; in addFunctionCases() local
2099 if ((!floatTypes && scalarType == glu::TYPE_FLOAT) || in addFunctionCases()
2100 (!intTypes && scalarType == glu::TYPE_INT) || in addFunctionCases()
2101 (!uintTypes && scalarType == glu::TYPE_UINT)) in addFunctionCases()
2111 …group->addChild(new TestClass(parent->getContext(), glu::DataType(scalarType + vecSize - 1), glu::… in addFunctionCases()
/third_party/vk-gl-cts/external/openglcts/modules/common/
DglcShaderLibrary.cpp742 DataType scalarType = getDataTypeScalarType(expectedDataType); in parseValueElement() local
757 if (scalarType == TYPE_FLOAT) in parseValueElement()
770 else if (scalarType == TYPE_INT || scalarType == TYPE_UINT) in parseValueElement()
785 DE_ASSERT(scalarType == TYPE_BOOL); in parseValueElement()
DglcUniformBlockCase.cpp598 glu::DataType scalarType = glu::getDataTypeScalarType(entry.type); in generateValue() local
622 switch (scalarType) in generateValue()
859 glu::DataType scalarType = glu::getDataTypeScalarType(entry.type); in generateValueSrc() local
873 DE_ASSERT(scalarType == glu::TYPE_FLOAT); in generateValueSrc()
899 switch (scalarType) in generateValueSrc()
/third_party/vk-gl-cts/framework/opengl/
DgluShaderUtil.cpp1002 DataType getDataTypeVector (DataType scalarType, int size) in getDataTypeVector() argument
1005 switch (scalarType) in getDataTypeVector()
1017 return (DataType)((int)scalarType + size - 1); in getDataTypeVector()
DgluShaderLibrary.cpp926 DataType scalarType = getDataTypeScalarType(expectedDataType); in parseValueElement() local
941 if (scalarType == TYPE_FLOAT) in parseValueElement()
954 else if (scalarType == TYPE_INT || scalarType == TYPE_UINT) in parseValueElement()
969 DE_ASSERT(scalarType == TYPE_BOOL); in parseValueElement()
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fShaderCommonFunctionTests.cpp282 const glu::DataType scalarType = glu::getDataTypeScalarType(basicType); in operator <<() local
293 switch (scalarType) in operator <<()
1610 const glu::DataType scalarType = scalarTypes[scalarTypeNdx]; in addFunctionCases() local
1612 if ((!floatTypes && scalarType == glu::TYPE_FLOAT) || in addFunctionCases()
1613 (!intTypes && scalarType == glu::TYPE_INT) || in addFunctionCases()
1614 (!uintTypes && scalarType == glu::TYPE_UINT)) in addFunctionCases()
1622 …group->addChild(new TestClass(parent->getContext(), glu::DataType(scalarType + vecSize - 1), glu::… in addFunctionCases()
Des3fTransformFeedbackTests.cpp728 glu::DataType scalarType = glu::getDataTypeScalarType(type); in compareTransformFeedbackOutput() local
743 if (scalarType == glu::TYPE_FLOAT) in compareTransformFeedbackOutput()
1123 glu::DataType scalarType = glu::getDataTypeScalarType(attrib->type.getBasicType()); in runTest() local
1131 …if (scalarType == glu::TYPE_FLOAT) gl.vertexAttribPointer (loc, numComponents, GL_FLOAT, GL_FALSE… in runTest()
1132 …else if (scalarType == glu::TYPE_INT) gl.vertexAttribIPointer (loc, numComponents, GL_INT, m_input… in runTest()
1133 …else if (scalarType == glu::TYPE_UINT) gl.vertexAttribIPointer (loc, numComponents, GL_UNSIGNED_IN… in runTest()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/memory_model/
DvktMemoryModelSharedLayoutCase.cpp92 const glu::DataType scalarType = glu::getDataTypeScalarType(entry.type); in generateValue() local
109 switch (scalarType) in generateValue()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ubo/
DvktUniformBlockCase.cpp740 glu::DataType scalarType = glu::getDataTypeScalarType(entry.type); in generateValue() local
746 const size_t compSize = getDataTypeByteSize(scalarType); in generateValue()
762 switch (scalarType) in generateValue()
1200 glu::DataType scalarType = glu::getDataTypeScalarType(entry.type); in generateValueSrc() local
1204 const size_t compSize = getDataTypeByteSize(scalarType); in generateValueSrc()
1214 DE_ASSERT(scalarType == glu::TYPE_FLOAT); in generateValueSrc()
1240 switch (scalarType) in generateValueSrc()

12