Skip to content

Commit 33d9c46

Browse files
committed
Don't use unscoped enums anymore
1 parent c3cb535 commit 33d9c46

File tree

1 file changed

+2
-2
lines changed
  • 05_StreamingAndBufferDeviceAddressApp

1 file changed

+2
-2
lines changed

05_StreamingAndBufferDeviceAddressApp/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class StreamingAndBufferDeviceAddressApp final : public application_templates::M
127127
m_downStreamingBufferAddress = m_downStreamingBuffer->getBuffer()->getDeviceAddress();
128128

129129
// People love Reflection but I prefer Shader Sources instead!
130-
const nbl::asset::SPushConstantRange pcRange = {.stageFlags=IShader::ESS_COMPUTE,.offset=0,.size=sizeof(PushConstantData)};
130+
const nbl::asset::SPushConstantRange pcRange = {.stageFlags=IShader::E_SHADER_STAGE::ESS_COMPUTE,.offset=0,.size=sizeof(PushConstantData)};
131131

132132
// This time we'll have no Descriptor Sets or Layouts because our workload has a widely varying size
133133
// and using traditional SSBO bindings would force us to update the Descriptor Set every frame.
@@ -236,7 +236,7 @@ class StreamingAndBufferDeviceAddressApp final : public application_templates::M
236236
.outputAddress=m_downStreamingBufferAddress+outputOffset,
237237
.dataElementCount=elementCount
238238
};
239-
cmdbuf->pushConstants(m_pipeline->getLayout(),IShader::ESS_COMPUTE,0u,sizeof(pc),&pc);
239+
cmdbuf->pushConstants(m_pipeline->getLayout(),IShader::E_SHADER_STAGE::ESS_COMPUTE,0u,sizeof(pc),&pc);
240240
// Good old trick to get rounded up divisions, in case you're not familiar
241241
cmdbuf->dispatch((elementCount-1)/WorkgroupSize+1,1,1);
242242
cmdbuf->end();

0 commit comments

Comments
 (0)