Some more fixes
This commit is contained in:
parent
36120b9501
commit
4aee707bb4
|
|
@ -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));
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,8 @@ namespace Nz
|
||||||
{
|
{
|
||||||
struct SpirvPrinter::State
|
struct SpirvPrinter::State
|
||||||
{
|
{
|
||||||
State(const Settings& Settings) :
|
State(const Settings& s) :
|
||||||
settings(settings)
|
settings(s)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue