mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Updated spirv-tools.
This commit is contained in:
13
3rdparty/spirv-tools/source/opcode.cpp
vendored
13
3rdparty/spirv-tools/source/opcode.cpp
vendored
@@ -225,6 +225,7 @@ int32_t spvOpcodeIsSpecConstant(const spv::Op opcode) {
|
||||
case spv::Op::OpSpecConstantFalse:
|
||||
case spv::Op::OpSpecConstant:
|
||||
case spv::Op::OpSpecConstantComposite:
|
||||
case spv::Op::OpSpecConstantCompositeReplicateEXT:
|
||||
case spv::Op::OpSpecConstantOp:
|
||||
return true;
|
||||
default:
|
||||
@@ -238,6 +239,7 @@ int32_t spvOpcodeIsConstant(const spv::Op opcode) {
|
||||
case spv::Op::OpConstantFalse:
|
||||
case spv::Op::OpConstant:
|
||||
case spv::Op::OpConstantComposite:
|
||||
case spv::Op::OpConstantCompositeReplicateEXT:
|
||||
case spv::Op::OpConstantSampler:
|
||||
case spv::Op::OpConstantNull:
|
||||
case spv::Op::OpConstantFunctionPointerINTEL:
|
||||
@@ -245,6 +247,7 @@ int32_t spvOpcodeIsConstant(const spv::Op opcode) {
|
||||
case spv::Op::OpSpecConstantFalse:
|
||||
case spv::Op::OpSpecConstant:
|
||||
case spv::Op::OpSpecConstantComposite:
|
||||
case spv::Op::OpSpecConstantCompositeReplicateEXT:
|
||||
case spv::Op::OpSpecConstantOp:
|
||||
return true;
|
||||
default:
|
||||
@@ -717,6 +720,16 @@ bool spvOpcodeIsImageSample(const spv::Op opcode) {
|
||||
}
|
||||
}
|
||||
|
||||
bool spvIsExtendedInstruction(const spv::Op opcode) {
|
||||
switch (opcode) {
|
||||
case spv::Op::OpExtInst:
|
||||
case spv::Op::OpExtInstWithForwardRefsKHR:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<uint32_t> spvOpcodeMemorySemanticsOperandIndices(spv::Op opcode) {
|
||||
switch (opcode) {
|
||||
case spv::Op::OpMemoryBarrier:
|
||||
|
||||
Reference in New Issue
Block a user