Shader/SpirvPrinter: Handle LiteralInteger as value

This commit is contained in:
Jérôme Leclercq 2021-12-25 19:13:48 +01:00
parent b9642b0662
commit 1080823c4d
1 changed files with 7 additions and 1 deletions

View File

@ -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();