Some more fixes

This commit is contained in:
Jérôme Leclercq 2020-08-27 21:43:19 +02:00
parent 36120b9501
commit 4aee707bb4
2 changed files with 3 additions and 4 deletions

View File

@ -496,13 +496,12 @@ namespace Nz
for (auto&& [variable, id] : m_internal->variableIds) for (auto&& [variable, id] : m_internal->variableIds)
{ {
const auto& var = variable;
UInt32 resultId = id; UInt32 resultId = id;
if (!variable.debugName.empty()) if (!variable.debugName.empty())
debugInfos.Append(SpirvOp::OpName, resultId, variable.debugName); debugInfos.Append(SpirvOp::OpName, resultId, variable.debugName);
const auto& var = variable;
constants.AppendVariadic(SpirvOp::OpVariable, [&](const auto& appender) constants.AppendVariadic(SpirvOp::OpVariable, [&](const auto& appender)
{ {
appender(GetId(*var.type)); appender(GetId(*var.type));

View File

@ -15,8 +15,8 @@ namespace Nz
{ {
struct SpirvPrinter::State struct SpirvPrinter::State
{ {
State(const Settings& Settings) : State(const Settings& s) :
settings(settings) settings(s)
{ {
} }