Skip to content

Commit 4a11724

Browse files
committed
m_computeSubgroupSize
1 parent fc9b0bb commit 4a11724

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

26_Autoexposure/app_resources/present.frag.hlsl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
#include <nbl/builtin/hlsl/ext/FullScreenTriangle/SVertexAttributes.hlsl>
99
using namespace nbl::hlsl::ext::FullScreenTriangle;
1010

11+
#include <nbl/builtin/hlsl/luma_meter/luma_meter.hlsl>
12+
1113
[[vk::combinedImageSampler]] [[vk::binding(0, 3)]] Texture2D texture;
1214
[[vk::combinedImageSampler]] [[vk::binding(0, 3)]] SamplerState samplerState;
1315

26_Autoexposure/main.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,12 +347,15 @@ class AutoexposureApp final : public examples::SimpleWindowedApplication, public
347347
queue->endCapture();
348348
}
349349

350+
m_computeSubgroupSize = m_physicalDevice->getLimits().maxComputeWorkgroupSubgroups;
351+
350352
return true;
351353
}
352354

353355
// We do a very simple thing, display an image and wait `DisplayImageMs` to show it
354356
inline void workLoopBody() override
355357
{
358+
356359
// Acquire
357360
auto acquire = m_surface->acquireNextImage();
358361
if (!acquire)
@@ -483,6 +486,9 @@ class AutoexposureApp final : public examples::SimpleWindowedApplication, public
483486
// window
484487
smart_refctd_ptr<IWindow> m_window;
485488
smart_refctd_ptr<CSimpleResizeSurface<CDefaultSwapchainFramebuffers>> m_surface;
489+
490+
// constants
491+
uint32_t m_computeSubgroupSize = 0;
486492
};
487493

488494
NBL_MAIN_FUNC(AutoexposureApp)

0 commit comments

Comments
 (0)