VulkanRenderer/VulkanShaderModule: OCD fix

This commit is contained in:
Jérôme Leclercq 2021-11-21 19:09:30 +01:00
parent 41e3e2bbf8
commit d475bbd4a2
1 changed files with 4 additions and 4 deletions

View File

@ -85,10 +85,10 @@ namespace Nz
case ShaderLanguage::NazaraShader: case ShaderLanguage::NazaraShader:
{ {
std::vector<Nz::ShaderLang::Token> tokens = Nz::ShaderLang::Tokenize(std::string_view(static_cast<const char*>(source), sourceSize)); std::vector<ShaderLang::Token> tokens = ShaderLang::Tokenize(std::string_view(static_cast<const char*>(source), sourceSize));
Nz::ShaderLang::Parser parser; ShaderLang::Parser parser;
Nz::ShaderAst::StatementPtr shaderAst = parser.Parse(tokens); ShaderAst::StatementPtr shaderAst = parser.Parse(tokens);
return Create(device, shaderStages, *shaderAst, states); return Create(device, shaderStages, *shaderAst, states);
} }
@ -132,7 +132,7 @@ namespace Nz
return false; return false;
} }
if (!m_shaderModule.Create(device, reinterpret_cast<const Nz::UInt32*>(source), sourceSize)) if (!m_shaderModule.Create(device, reinterpret_cast<const UInt32*>(source), sourceSize))
{ {
NazaraError("failed to create shader module"); NazaraError("failed to create shader module");
return false; return false;