Skip to content

Commit 0d33616

Browse files
fix example after API change
1 parent a5a8913 commit 0d33616

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

02_HelloCompute/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class HelloComputeApp final : public nbl::application_templates::MonoSystemMonoL
120120

121121
// Yes we know workgroup sizes can come from specialization constants, however DXC has a problem with that https://github.com/microsoft/DirectXShaderCompiler/issues/3092
122122
const string WorkgroupSizeAsStr = std::to_string(WorkgroupSize);
123-
const IShaderCompiler::SPreprocessorOptions::SMacroDefinition WorkgroupSizeDefine = {"WORKGROUP_SIZE",WorkgroupSizeAsStr};
123+
const IShaderCompiler::SMacroDefinition WorkgroupSizeDefine = {"WORKGROUP_SIZE",WorkgroupSizeAsStr};
124124

125125
CHLSLCompiler::SOptions options = {};
126126
// really we should set it to `ESS_COMPUTE` since we know, but we'll test the `#pragma` handling fur teh lulz

0 commit comments

Comments
 (0)