mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-09-18 00:14:27 +00:00
Updated spirv-tools.
This commit is contained in:
17
3rdparty/spirv-tools/source/opcode.cpp
vendored
17
3rdparty/spirv-tools/source/opcode.cpp
vendored
@@ -731,3 +731,20 @@ bool spvOpcodeIsAccessChain(SpvOp opcode) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
bool spvOpcodeIsBit(SpvOp opcode) {
|
||||
switch (opcode) {
|
||||
case SpvOpShiftRightLogical:
|
||||
case SpvOpShiftRightArithmetic:
|
||||
case SpvOpShiftLeftLogical:
|
||||
case SpvOpBitwiseOr:
|
||||
case SpvOpBitwiseXor:
|
||||
case SpvOpBitwiseAnd:
|
||||
case SpvOpNot:
|
||||
case SpvOpBitReverse:
|
||||
case SpvOpBitCount:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user