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

Function spvOpcodeIsLinearAlgebra

source/opcode.cpp:612–626  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

610}
611
612bool spvOpcodeIsLinearAlgebra(spv::Op opcode) {
613 switch (opcode) {
614 case spv::Op::OpTranspose:
615 case spv::Op::OpVectorTimesScalar:
616 case spv::Op::OpMatrixTimesScalar:
617 case spv::Op::OpVectorTimesMatrix:
618 case spv::Op::OpMatrixTimesVector:
619 case spv::Op::OpMatrixTimesMatrix:
620 case spv::Op::OpOuterProduct:
621 case spv::Op::OpDot:
622 return true;
623 default:
624 return false;
625 }
626}
627
628bool spvOpcodeIsImageSample(const spv::Op opcode) {
629 switch (opcode) {

Callers 2

IsApplicableMethod · 0.85
ApplyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected