Home
last modified time | relevance | path

Searched refs:scalarType (Results 1 - 25 of 40) sorted by relevance

12

/third_party/skia/src/sksl/ir/
H A 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()
H A 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()
H A 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()
H A 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()
H A 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,
434 return std::make_unique<LiteralType>(name, scalarType, priority);
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderexecutor/
H A 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 in getComponentByteSize()
303 const glu::DataType scalarType = glu::getDataTypeScalarType(basicType); operator <<() local
[all...]
H A 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), glu::Precision(prec), glu::ShaderType(shaderTypeNdx))); in addFunctionCases()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/shaderexecutor/
H A 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 in getComponentByteSize()
303 const glu::DataType scalarType = glu::getDataTypeScalarType(basicType); operator <<() local
[all...]
H A 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), glu::Precision(prec), glu::ShaderType(shaderTypeNdx))); in addFunctionCases()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
H A DvktPipelineSpecConstantTests.cpp2046 const glu::DataType scalarType = glu::getDataTypeScalarType(type); in makeMatrixVectorCompositeCaseDefinition() local
2048 const bool isConst = (scalarType != glu::TYPE_FLOAT) && (scalarType != glu::TYPE_DOUBLE); in makeMatrixVectorCompositeCaseDefinition()
2058 const bool isBoolElement = (scalarType == glu::TYPE_BOOL); in makeMatrixVectorCompositeCaseDefinition()
2060 const std::string accumType = glu::getDataTypeName(isBoolElement ? glu::TYPE_INT : scalarType); in makeMatrixVectorCompositeCaseDefinition()
2068 makeVector(makeSpecConstant("sc0", 1u, scalarType, specValue)), in makeMatrixVectorCompositeCaseDefinition()
2072 generateShaderChecksumComputationCode(scalarType, varName, accumType, size1, size2, numCombinations), in makeMatrixVectorCompositeCaseDefinition()
2073 computeExpectedValues(specValue, scalarType, numCombinations), in makeMatrixVectorCompositeCaseDefinition()
2074 (scalarType == glu::TYPE_DOUBLE ? (FeatureFlags)FEATURE_SHADER_FLOAT_64 : (FeatureFlags)0), in makeMatrixVectorCompositeCaseDefinition()
2103 const glu::DataType scalarType in makeArrayCompositeCaseDefinition() local
2143 const glu::DataType scalarType = glu::getDataTypeScalarType(memberType); makeStructCompositeCaseDefinition() local
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/pipeline/
H A DvktPipelineSpecConstantTests.cpp2033 const glu::DataType scalarType = glu::getDataTypeScalarType(type); in makeMatrixVectorCompositeCaseDefinition() local
2035 const bool isConst = (scalarType != glu::TYPE_FLOAT) && (scalarType != glu::TYPE_DOUBLE); in makeMatrixVectorCompositeCaseDefinition()
2045 const bool isBoolElement = (scalarType == glu::TYPE_BOOL); in makeMatrixVectorCompositeCaseDefinition()
2047 const std::string accumType = glu::getDataTypeName(isBoolElement ? glu::TYPE_INT : scalarType); in makeMatrixVectorCompositeCaseDefinition()
2055 makeVector(makeSpecConstant("sc0", 1u, scalarType, specValue)), in makeMatrixVectorCompositeCaseDefinition()
2059 generateShaderChecksumComputationCode(scalarType, varName, accumType, size1, size2, numCombinations), in makeMatrixVectorCompositeCaseDefinition()
2060 computeExpectedValues(specValue, scalarType, numCombinations), in makeMatrixVectorCompositeCaseDefinition()
2061 (scalarType == glu::TYPE_DOUBLE ? (FeatureFlags)FEATURE_SHADER_FLOAT_64 : (FeatureFlags)0), in makeMatrixVectorCompositeCaseDefinition()
2090 const glu::DataType scalarType in makeArrayCompositeCaseDefinition() local
2130 const glu::DataType scalarType = glu::getDataTypeScalarType(memberType); makeStructCompositeCaseDefinition() local
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/transform_feedback/
H A 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 const int strideForLocation = 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 in generateValueSrc() local
1283 const glu::DataType scalarType = glu::getDataTypeScalarType(entry.type); writeMatrixTypeSrc() local
1313 const glu::DataType scalarType = glu::getDataTypeScalarType(entry.type); writeMatrixTypeSrc() local
1797 const glu::DataType scalarType = glu::getDataTypeScalarType(entry.type); validateValue() local
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/transform_feedback/
H A 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 const int strideForLocation = 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 in generateValueSrc() local
1283 const glu::DataType scalarType = glu::getDataTypeScalarType(entry.type); writeMatrixTypeSrc() local
1313 const glu::DataType scalarType = glu::getDataTypeScalarType(entry.type); writeMatrixTypeSrc() local
1797 const glu::DataType scalarType = glu::getDataTypeScalarType(entry.type); validateValue() local
[all...]
/third_party/vk-gl-cts/modules/glshared/
H A 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 <<() local
H A 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/modules/gles31/functional/
H A Des31fUniformLocationTests.cpp329 const glu::DataType scalarType = glu::getDataTypeScalarType(subType.getBasicType()); in genShaderSources()
330 const char* const typeName = glu::getDataTypeName(scalarType); in genShaderSources()
331 const string expectValue = de::floatToString(getExpectedValue(scalarType, location >= 0 ? location+subTypeIndex : -1, typeName), 3); in genShaderSources()
333 if (glu::isDataTypeSampler(scalarType)) in genShaderSources()
592 const glu::DataType scalarType = glu::getDataTypeScalarType(type.getBasicType());
593 const char* const typeName = glu::getDataTypeName(scalarType);
594 const float expectedValue = getExpectedValue(scalarType, expectedLocation, typeName);
596 if (glu::isDataTypeSampler(scalarType))
600 texList.push_back(createTexture(scalarType, expectedValue, binding).release());
H A 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 in compareBufferVarData() local
[all...]
H A 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::Precision(prec), glu::ShaderType(shaderTypeNdx))); in addFunctionCases()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ssbo/
H A 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 in compareComponents()
1716 const glu::DataType scalarType = glu::getDataTypeScalarType(refEntry.type); compareBufferVarData() local
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ssbo/
H A 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 in compareComponents()
1716 const glu::DataType scalarType = glu::getDataTypeScalarType(refEntry.type); compareBufferVarData() local
[all...]
/third_party/vk-gl-cts/framework/opengl/
H A 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()
/third_party/vk-gl-cts/modules/gles3/functional/
H A 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::Precision(prec), glu::ShaderType(shaderType))); in addFunctionCases()
H A 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());
1131 if (scalarType == glu::TYPE_FLOAT) gl.vertexAttribPointer (loc, numComponents, GL_FLOAT, GL_FALSE, m_inputStride, ptr);
1132 else if (scalarType == glu::TYPE_INT) gl.vertexAttribIPointer (loc, numComponents, GL_INT, m_inputStride, ptr);
1133 else if (scalarType == glu::TYPE_UINT) gl.vertexAttribIPointer (loc, numComponents, GL_UNSIGNED_INT, m_inputStride, ptr);
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/memory_model/
H A 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_no_buildgn/vulkan/memory_model/
H A DvktMemoryModelSharedLayoutCase.cpp92 const glu::DataType scalarType = glu::getDataTypeScalarType(entry.type); in generateValue() local
109 switch (scalarType) in generateValue()

Completed in 46 milliseconds

12