Shader/SpirvPrinter: Handle LiteralInteger as value
This commit is contained in:
parent
b9642b0662
commit
1080823c4d
|
|
@ -121,7 +121,6 @@ namespace Nz
|
|||
case SpirvOperandKind::RayQueryIntersection:
|
||||
case SpirvOperandKind::RayQueryCommittedIntersectionType:
|
||||
case SpirvOperandKind::RayQueryCandidateIntersectionType:
|
||||
case SpirvOperandKind::LiteralInteger:
|
||||
case SpirvOperandKind::LiteralExtInstInteger:
|
||||
case SpirvOperandKind::LiteralSpecConstantOpInteger:
|
||||
case SpirvOperandKind::LiteralContextDependentNumber: //< FIXME
|
||||
|
|
@ -131,6 +130,13 @@ namespace Nz
|
|||
break;
|
||||
}
|
||||
|
||||
case SpirvOperandKind::LiteralInteger:
|
||||
{
|
||||
UInt32 value = ReadWord();
|
||||
instructionStream << " " << value;
|
||||
break;
|
||||
}
|
||||
|
||||
case SpirvOperandKind::LiteralString:
|
||||
{
|
||||
std::string str = ReadString();
|
||||
|
|
|
|||
Loading…
Reference in New Issue