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

Function spvOpcodeIsScalarType

source/opcode.cpp:104–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104int32_t spvOpcodeIsScalarType(const spv::Op opcode) {
105 switch (opcode) {
106 case spv::Op::OpTypeInt:
107 case spv::Op::OpTypeFloat:
108 case spv::Op::OpTypeBool:
109 return true;
110 default:
111 return false;
112 }
113}
114
115int32_t spvOpcodeIsSpecConstant(const spv::Op opcode) {
116 switch (opcode) {

Callers 4

GetTypeNumberKindMethod · 0.85
ValidateTypeVectorFunction · 0.85
CheckTypeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected