Home
last modified time | relevance | path

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

/external/skqp/src/sksl/ir/
DSkSLInterfaceBlock.h51 const Type* structType = &fVariable.fType; in description() local
52 while (structType->kind() == Type::kArray_Kind) { in description()
53 structType = &structType->componentType(); in description()
55 for (const auto& f : structType->fields()) { in description()
/external/skia/src/sksl/ir/
DSkSLInterfaceBlock.h51 const Type* structType = &fVariable.fType; in description() local
52 while (structType->kind() == Type::kArray_Kind) { in description()
53 structType = &structType->componentType(); in description()
55 for (const auto& f : structType->fields()) { in description()
/external/deqp/modules/gles2/functional/
Des2fUniformApiTests.cpp163 const StructType& structType = *type.getStructPtr(); in typeContainsMatchingBasicType() local
164 for (int i = 0; i < structType.getNumMembers(); i++) in typeContainsMatchingBasicType()
165 if (typeContainsMatchingBasicType(structType.getMember(i).getType(), predicate)) in typeContainsMatchingBasicType()
184 const StructType& structType = *type.getStructPtr(); in getDistinctSamplerTypes() local
185 for (int i = 0; i < structType.getNumMembers(); i++) in getDistinctSamplerTypes()
186 getDistinctSamplerTypes(dst, structType.getMember(i).getType()); in getDistinctSamplerTypes()
199 const StructType& structType = *type.getStructPtr(); in getNumSamplersInType() local
201 for (int i = 0; i < structType.getNumMembers(); i++) in getNumSamplersInType()
202 sum += getNumSamplersInType(structType.getMember(i).getType()); in getNumSamplersInType()
215 …StructType* const structType = new StructType(("structType" + de::toString(curStructIdx++)).c_str(… in generateRandomType() local
[all …]
/external/deqp/external/vulkancts/modules/vulkan/tessellation/
DvktTessellationUserDefinedIO.cpp136 const glu::StructType& structType = *rootType.getStructPtr(); in glslTraverseBasicTypes() local
137 const int numMembers = structType.getNumMembers(); in glslTraverseBasicTypes()
142 const glu::StructMember& member = structType.getMember(membNdx); in glslTraverseBasicTypes()
230 const glu::StructType& structType = *type.getStructPtr(); in numBasicSubobjects() local
232 for (int i = 0; i < structType.getNumMembers(); ++i) in numBasicSubobjects()
233 result += numBasicSubobjects(structType.getMember(i).getType()); in numBasicSubobjects()
489 glu::StructType& structType = m_structTypes.back(); in UserDefinedIOTest() local
490 const glu::VarType structVarType (&structType); in UserDefinedIOTest()
493 structType.addMember("x", glu::VarType(glu::TYPE_INT, glu::PRECISION_HIGHP)); in UserDefinedIOTest()
494 structType.addMember("y", glu::VarType(glu::TYPE_FLOAT_VEC4, glu::PRECISION_HIGHP)); in UserDefinedIOTest()
[all …]
/external/deqp/framework/opengl/
DgluVarType.hpp304 …DeclareStructType (const StructType& structType_, int indentLevel_) : structType(structType_), ind… in DeclareStructType()
306 StructType structType; member
328 …tType declare (const StructType& structType, int indentLevel = 0) { return decl::DeclareStr… in declare() argument
DgluVarType.cpp427 return str << declare(&decl.structType, decl.indentLevel); in operator <<()
/external/deqp/modules/gles31/functional/
Des31fProgramUniformTests.cpp227 const StructType& structType = *type.getStructPtr(); in typeContainsMatchingBasicType() local
228 for (int i = 0; i < structType.getNumMembers(); i++) in typeContainsMatchingBasicType()
229 if (typeContainsMatchingBasicType(structType.getMember(i).getType(), predicate)) in typeContainsMatchingBasicType()
248 const StructType& structType = *type.getStructPtr(); in getDistinctSamplerTypes() local
249 for (int i = 0; i < structType.getNumMembers(); i++) in getDistinctSamplerTypes()
250 getDistinctSamplerTypes(dst, structType.getMember(i).getType()); in getDistinctSamplerTypes()
263 const StructType& structType = *type.getStructPtr(); in getNumSamplersInType() local
265 for (int i = 0; i < structType.getNumMembers(); i++) in getNumSamplersInType()
266 sum += getNumSamplersInType(structType.getMember(i).getType()); in getNumSamplersInType()
397 StructType* const structType = new StructType((string("structType") + nameSuffix).c_str()); in basicStruct() local
[all …]
Des31fUniformLocationTests.cpp305 const glu::StructType* const structType = uniformInfo.type.getStructPtr(); in genShaderSources() local
306 if (!declaredStructs.count(structType)) in genShaderSources()
309 vertDecl << glu::declare(structType, 0) << ";\n"; in genShaderSources()
312 fragDecl << glu::declare(structType, 0) << ";\n"; in genShaderSources()
314 declaredStructs.insert(structType); in genShaderSources()
Des31fTessellationTests.cpp225 const glu::StructType& structType = *type.getStructPtr(); in numBasicSubobjects() local
227 for (int i = 0; i < structType.getNumMembers(); i++) in numBasicSubobjects()
228 result += numBasicSubobjects(structType.getMember(i).getType()); in numBasicSubobjects()
5730 const glu::StructType& structType = *rootType.getStructPtr(); in glslTraverseBasicTypes() local
5731 const int numMembers = structType.getNumMembers(); in glslTraverseBasicTypes()
5736 const glu::StructMember& member = structType.getMember(membNdx); in glslTraverseBasicTypes()
5991 glu::StructType& structType = m_structTypes.back(); in init() local
5992 const glu::VarType structVarType (&structType); in init()
5995 structType.addMember("x", glu::VarType(glu::TYPE_INT, glu::PRECISION_HIGHP)); in init()
5996 structType.addMember("y", glu::VarType(glu::TYPE_FLOAT_VEC4, glu::PRECISION_HIGHP)); in init()
[all …]
Des31fProgramInterfaceDefinitionUtil.cpp181 const glu::StructType* structType = type.getStructPtr(); in generateVariableTypeResourceNames() local
182 for (int ndx = 0; ndx < structType->getNumMembers(); ++ndx) in generateVariableTypeResourceNames()
183 …teVariableTypeResourceNames(resources, name + "." + structType->getMember(ndx).getName(), structTy… in generateVariableTypeResourceNames()
Des31fSSBOLayoutTests.cpp236 …glu::StructType& structType = m_interface.allocStruct((string("s") + genName('A', 'Z', m_structNdx… in generateType() local
242 structType.addMember((string("m") + (char)('A' + ndx)).c_str(), memberTypes[ndx]); in generateType()
245 return glu::VarType(&structType); in generateType()
/external/deqp/modules/gles3/functional/
Des3fUniformApiTests.cpp223 const StructType& structType = *type.getStructPtr(); in typeContainsMatchingBasicType() local
224 for (int i = 0; i < structType.getNumMembers(); i++) in typeContainsMatchingBasicType()
225 if (typeContainsMatchingBasicType(structType.getMember(i).getType(), predicate)) in typeContainsMatchingBasicType()
244 const StructType& structType = *type.getStructPtr(); in getDistinctSamplerTypes() local
245 for (int i = 0; i < structType.getNumMembers(); i++) in getDistinctSamplerTypes()
246 getDistinctSamplerTypes(dst, structType.getMember(i).getType()); in getDistinctSamplerTypes()
259 const StructType& structType = *type.getStructPtr(); in getNumSamplersInType() local
261 for (int i = 0; i < structType.getNumMembers(); i++) in getNumSamplersInType()
262 sum += getNumSamplersInType(structType.getMember(i).getType()); in getNumSamplersInType()
275 …StructType* const structType = new StructType(("structType" + de::toString(curStructIdx++)).c_str(… in generateRandomType() local
[all …]
/external/deqp/modules/glshared/
DglsRandomUniformBlockCase.cpp173 …StructType& structType = m_interface.allocStruct((string("s") + genName('A', 'Z', m_structNdx)).c_… in generateType() local
184 structType.addMember((string("m") + (char)('A' + ndx)).c_str(), memberTypes[ndx], flags); in generateType()
187 return VarType(&structType); in generateType()
DglsUniformBlockCase.cpp814 void generateDeclaration (std::ostringstream& src, const StructType& structType, int indentLevel…
816 void generateLocalDeclaration (std::ostringstream& src, const StructType& structType, int indentLe…
817 void generateFullDeclaration (std::ostringstream& src, const StructType& structType, int indentLe…
819 void generateDeclaration (std::ostringstream& src, const StructType& structType, int indentLevel) in generateDeclaration() argument
821 DE_ASSERT(structType.getTypeName() != DE_NULL); in generateDeclaration()
822 generateFullDeclaration(src, structType, indentLevel); in generateDeclaration()
826 void generateFullDeclaration (std::ostringstream& src, const StructType& structType, int indentLeve… in generateFullDeclaration() argument
829 if (structType.getTypeName()) in generateFullDeclaration()
830 src << " " << structType.getTypeName(); in generateFullDeclaration()
833 …for (StructType::ConstIterator memberIter = structType.begin(); memberIter != structType.end(); me… in generateFullDeclaration()
[all …]
/external/deqp/external/openglcts/modules/common/
DglcUniformBlockCase.cpp729 void generateDeclaration(std::ostringstream& src, const StructType& structType, int indentLevel);
731 void generateLocalDeclaration(std::ostringstream& src, const StructType& structType, int indentLeve…
732 void generateFullDeclaration(std::ostringstream& src, const StructType& structType, int indentLevel…
734 void generateDeclaration(std::ostringstream& src, const StructType& structType, int indentLevel) in generateDeclaration() argument
736 DE_ASSERT(structType.getTypeName() != DE_NULL); in generateDeclaration()
737 generateFullDeclaration(src, structType, indentLevel); in generateDeclaration()
741 void generateFullDeclaration(std::ostringstream& src, const StructType& structType, int indentLevel) in generateFullDeclaration() argument
744 if (structType.getTypeName()) in generateFullDeclaration()
745 src << " " << structType.getTypeName(); in generateFullDeclaration()
748 …for (StructType::ConstIterator memberIter = structType.begin(); memberIter != structType.end(); me… in generateFullDeclaration()
[all …]
DglcUniformBlockTests.cpp221 …StructType& structType = m_interface.allocStruct((string("s") + genName('A', 'Z', m_structNdx)).c_… in generateType() local
232 structType.addMember((string("m") + (char)('A' + ndx)).c_str(), memberTypes[ndx], flags); in generateType()
235 return VarType(&structType); in generateType()
/external/deqp/external/vulkancts/modules/vulkan/ubo/
DvktRandomUniformBlockCase.cpp178 …StructType& structType = m_interface.allocStruct(std::string("s") + genName('A', 'Z', m_structNdx)… in generateType() local
189 structType.addMember(std::string("m") + (char)('A' + ndx), memberTypes[ndx], flags); in generateType()
192 return VarType(&structType, m_shuffleUniformMembers ? static_cast<deUint32>(LAYOUT_OFFSET) : 0u); in generateType()
DvktUniformBlockCase.cpp994 void generateDeclaration (std::ostringstream& src, const StructType& structType, int indentLevel…
996 void generateLocalDeclaration (std::ostringstream& src, const StructType& structType, int indentLe…
997 void generateFullDeclaration (std::ostringstream& src, const StructType& structType, int indentLe…
999 void generateDeclaration (std::ostringstream& src, const StructType& structType, int indentLevel) in generateDeclaration() argument
1001 DE_ASSERT(structType.hasTypeName()); in generateDeclaration()
1002 generateFullDeclaration(src, structType, indentLevel); in generateDeclaration()
1006 void generateFullDeclaration (std::ostringstream& src, const StructType& structType, int indentLeve… in generateFullDeclaration() argument
1009 if (structType.hasTypeName()) in generateFullDeclaration()
1010 src << " " << structType.getTypeName(); in generateFullDeclaration()
1013 …for (StructType::ConstIterator memberIter = structType.begin(); memberIter != structType.end(); me… in generateFullDeclaration()
[all …]
/external/skqp/src/sksl/
DSkSLMetalCodeGenerator.cpp841 const Type* structType = &intf.fVariable.fType; in writeInterfaceBlock() local
842 fWrittenStructs.push_back(structType); in writeInterfaceBlock()
843 while (Type::kArray_Kind == structType->kind()) { in writeInterfaceBlock()
844 structType = &structType->componentType(); in writeInterfaceBlock()
847 writeFields(structType->fields(), structType->fOffset, &intf); in writeInterfaceBlock()
DSkSLGLSLCodeGenerator.cpp1144 const Type* structType = &intf.fVariable.fType; in writeFunctionCall() local
1145 while (structType->kind() == Type::kArray_Kind) { in writeFunctionCall()
1146 structType = &structType->componentType(); in writeFunctionCall()
1148 for (const auto& f : structType->fields()) { in writeFunctionCall()
/external/skia/src/sksl/
DSkSLMetalCodeGenerator.cpp985 const Type* structType = &intf.fVariable.fType; in writeInterfaceBlock() local
986 fWrittenStructs.push_back(structType); in writeInterfaceBlock()
987 while (Type::kArray_Kind == structType->kind()) { in writeInterfaceBlock()
988 structType = &structType->componentType(); in writeInterfaceBlock()
991 writeFields(structType->fields(), structType->fOffset, &intf); in writeInterfaceBlock()
DSkSLGLSLCodeGenerator.cpp1171 const Type* structType = &intf.fVariable.fType; in writeFunctionCall() local
1172 while (structType->kind() == Type::kArray_Kind) { in writeFunctionCall()
1173 structType = &structType->componentType(); in writeFunctionCall()
1175 for (const auto& f : structType->fields()) { in writeFunctionCall()
/external/swiftshader/src/Pipeline/
DSpirvShader.cpp214 auto &structType = getType(pointeeType).definition; in ProcessInterfaceVariable() local
219 auto &memberType = getType(structType.word(word)); in ProcessInterfaceVariable()
/external/deqp/external/vulkancts/modules/vulkan/ssbo/
DvktSSBOLayoutTests.cpp256 …glu::StructType& structType = m_interface.allocStruct((string("s") + genName('A', 'Z', m_structNdx… in generateType() local
262 structType.addMember((string("m") + (char)('A' + ndx)).c_str(), memberTypes[ndx]); in generateType()
265 return glu::VarType(&structType); in generateType()
/external/deqp-deps/glslang/SPIRV/
DGlslangToSpv.cpp163 …void updateMemberOffset(const glslang::TType& structType, const glslang::TType& memberType, int& c…
3606 void TGlslangToSpvTraverser::updateMemberOffset(const glslang::TType& structType, const glslang::TT… in updateMemberOffset() argument
3645 …! memberType.isArray() && memberType.isVector() && structType.getTypeName().compare("$Global") != … in updateMemberOffset()