Shader: First working version on both Vulkan & OpenGL (ES)

This commit is contained in:
Jérôme Leclercq
2021-04-12 15:38:20 +02:00
parent f93a5bbdc1
commit ea99c6a19e
42 changed files with 1803 additions and 1053 deletions

View File

@@ -38,6 +38,8 @@ namespace Nz
while (m_currentCodepoint < m_codepointEnd)
{
const UInt32* instructionBegin = m_currentCodepoint;
UInt32 firstWord = ReadWord();
UInt16 wordCount = static_cast<UInt16>((firstWord >> 16) & 0xFFFF);
@@ -50,7 +52,7 @@ namespace Nz
if (!HandleOpcode(*inst, wordCount))
break;
m_currentCodepoint += wordCount - 1;
m_currentCodepoint = instructionBegin + wordCount;
}
}