diff --git a/examples/hello_triangle.cpp b/examples/hello_triangle.cpp index b68ba82..282144a 100644 --- a/examples/hello_triangle.cpp +++ b/examples/hello_triangle.cpp @@ -216,11 +216,12 @@ class HelloTriangle : public RpsAfxD3D12Renderer const RpsRuntimeResource* argResources[2] = {backBufferResources}; uint32_t argDataCount = 1; + float time; if (c_bBreathing) { argDataCount = 2; - float time = float(RpsAfxCpuTimer::SecondsSinceEpoch().count()); + time = float(RpsAfxCpuTimer::SecondsSinceEpoch().count()); argData[1] = &time; }