Skip to content

Commit d43156b

Browse files
authored
format code (#43)
1 parent f203597 commit d43156b

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

source/slang/slang-emit-spirv.cpp

+3-6
Original file line numberDiff line numberDiff line change
@@ -1911,8 +1911,8 @@ struct SPIRVEmitContext : public SourceEmitterBase, public SPIRVEmitSharedContex
19111911
case kIROp_SPIRVNodePayloadArrayType:
19121912
if (auto nodePayloadArrayType = as<IRSPIRVNodePayloadArrayType>(inst))
19131913
{
1914-
auto newType = emitOpTypeNodePayloadArray(
1915-
inst, nodePayloadArrayType->getRecordType());
1914+
auto newType =
1915+
emitOpTypeNodePayloadArray(inst, nodePayloadArrayType->getRecordType());
19161916

19171917
// TODO: This is a temporary hack.
19181918
// The NodeID must come from an attribute [NodeID("name")].
@@ -1921,10 +1921,7 @@ struct SPIRVEmitContext : public SourceEmitterBase, public SPIRVEmitSharedContex
19211921
SpvInst* spvStr = emitOpConstantString(nullptr, str.getUnownedSlice());
19221922
(void)spvStr;
19231923

1924-
auto r = emitOpDecoratePayloadNodeName(
1925-
nullptr,
1926-
newType,
1927-
spvStr);
1924+
auto r = emitOpDecoratePayloadNodeName(nullptr, newType, spvStr);
19281925
(void)r;
19291926
return newType;
19301927
}

0 commit comments

Comments
 (0)