MCPcopy Create free account
hub / github.com/KhronosGroup/glslang / makeCooperativeMatrixTypeWithSameShape

Method makeCooperativeMatrixTypeWithSameShape

SPIRV/SpvBuilder.cpp:602–611  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

600}
601
602Id Builder::makeCooperativeMatrixTypeWithSameShape(Id component, Id otherType)
603{
604 Instruction* instr = module.getInstruction(otherType);
605 if (instr->getOpCode() == Op::OpTypeCooperativeMatrixNV) {
606 return makeCooperativeMatrixTypeNV(component, instr->getIdOperand(1), instr->getIdOperand(2), instr->getIdOperand(3));
607 } else {
608 assert(instr->getOpCode() == Op::OpTypeCooperativeMatrixKHR);
609 return makeCooperativeMatrixTypeKHR(component, instr->getIdOperand(1), instr->getIdOperand(2), instr->getIdOperand(3), instr->getIdOperand(4));
610 }
611}
612
613Id Builder::makeCooperativeVectorTypeNV(Id componentType, Id components)
614{

Callers 1

Calls 3

getInstructionMethod · 0.80
getOpCodeMethod · 0.45
getIdOperandMethod · 0.45

Tested by

no test coverage detected