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::RayQueryIntersection:
|
||||||
case SpirvOperandKind::RayQueryCommittedIntersectionType:
|
case SpirvOperandKind::RayQueryCommittedIntersectionType:
|
||||||
case SpirvOperandKind::RayQueryCandidateIntersectionType:
|
case SpirvOperandKind::RayQueryCandidateIntersectionType:
|
||||||
case SpirvOperandKind::LiteralInteger:
|
|
||||||
case SpirvOperandKind::LiteralExtInstInteger:
|
case SpirvOperandKind::LiteralExtInstInteger:
|
||||||
case SpirvOperandKind::LiteralSpecConstantOpInteger:
|
case SpirvOperandKind::LiteralSpecConstantOpInteger:
|
||||||
case SpirvOperandKind::LiteralContextDependentNumber: //< FIXME
|
case SpirvOperandKind::LiteralContextDependentNumber: //< FIXME
|
||||||
|
|
@ -131,6 +130,13 @@ namespace Nz
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case SpirvOperandKind::LiteralInteger:
|
||||||
|
{
|
||||||
|
UInt32 value = ReadWord();
|
||||||
|
instructionStream << " " << value;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case SpirvOperandKind::LiteralString:
|
case SpirvOperandKind::LiteralString:
|
||||||
{
|
{
|
||||||
std::string str = ReadString();
|
std::string str = ReadString();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue