Class ExposureStage#

Class Documentation#

class ExposureStage#

Public Functions

ExposureStage()#
ExposureStage(const ExposureStage&) = delete#
ExposureStage &operator=(const ExposureStage&) = delete#
void init(const std::shared_ptr<VulkanDevice> &in_device, uint32_t imageCount, float initialEv)#
void recreateFrameResources(uint32_t imageCount)#
void bindHdrTarget(uint32_t imageIndex, vk::ImageView hdrView)#
void shaderHotReload()#
void recordHistogram(vk::CommandBuffer commandBuffer, uint32_t imageIndex, vk::Extent2D extent)#
void recordReduce(vk::CommandBuffer commandBuffer, uint32_t imageIndex, const ExposureFrameParams &params)#
void requestReset(float ev)#
inline vk::Buffer exposureBuffer()#
void requestCapture()#
void bindCaptureFence(vk::Fence fence)#
void invalidateCaptureFence()#
std::optional<std::array<float, 2>> takeCapture()#
void cleanUp()#
~ExposureStage()#

Public Static Attributes

static constexpr vk::DeviceSize kExposureStateBytes = 2 * sizeof(float)#