Skip to content

Commit bd1e199

Browse files
committed
Fixed example 29 on Vulkan
1 parent 0882d92 commit bd1e199

File tree

1 file changed

+3
-3
lines changed
  • examples_tests/29.SpecializationConstants

1 file changed

+3
-3
lines changed

examples_tests/29.SpecializationConstants/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ class SpecializationConstantsSampleApp : public ApplicationBase
155155
initOutp.system = system;
156156
CommonAPI::Init(
157157
initOutp,
158-
video::EAT_VULKAN,
158+
video::EAT_OPENGL,
159159
"29.SpecializationConstants",
160160
requiredInstanceFeatures,
161161
optionalInstanceFeatures,
@@ -394,8 +394,8 @@ class SpecializationConstantsSampleApp : public ApplicationBase
394394
m_lastTime = std::chrono::high_resolution_clock::now();
395395
constexpr uint32_t FRAME_COUNT = 500000u;
396396
constexpr uint64_t MAX_TIMEOUT = 99999999999999ull;
397-
m_computeUBORange = { 0, gpuUboCompute->getSize(), gpuUboCompute };
398-
m_graphicsUBORange = { 0, gpuUboGraphics->getSize(), gpuUboGraphics };
397+
m_computeUBORange = { 0, gpuUboCompute->getCachedCreationParams().declaredSize, gpuUboCompute };
398+
m_graphicsUBORange = { 0, gpuUboGraphics->getCachedCreationParams().declaredSize, gpuUboGraphics };
399399

400400
device->createCommandBuffers(commandPools[CommonAPI::InitOutput::EQT_GRAPHICS].get(), video::IGPUCommandBuffer::EL_PRIMARY, FRAMES_IN_FLIGHT, m_cmdbuf);
401401

0 commit comments

Comments
 (0)