MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / spvOpcodeIsComposite

Function spvOpcodeIsComposite

source/opcode.cpp:170–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170int32_t spvOpcodeIsComposite(const spv::Op opcode) {
171 switch (opcode) {
172 case spv::Op::OpTypeVector:
173 case spv::Op::OpTypeMatrix:
174 case spv::Op::OpTypeArray:
175 case spv::Op::OpTypeStruct:
176 case spv::Op::OpTypeRuntimeArray:
177 case spv::Op::OpTypeCooperativeMatrixNV:
178 case spv::Op::OpTypeCooperativeMatrixKHR:
179 case spv::Op::OpTypeVectorIdEXT:
180 return true;
181 default:
182 return false;
183 }
184}
185
186bool spvOpcodeReturnsLogicalVariablePointer(const spv::Op opcode) {
187 switch (opcode) {

Callers 6

isCompositeTypeFunction · 0.85
CheckTypeMethod · 0.85
CheckAllTypesMethod · 0.85
ApplyMethod · 0.85
ValidIndexToCompositeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected