|
Foray Library
rapid prototyping framework for crossplatform development of vulkan hardware ray tracing applications
|
Context used for render processes. This object is rebuilt for every frame. /. More...
#include <foray_framerenderinfo.hpp>
Public Member Functions | |
| core::DeviceSyncCommandBuffer & | GetAuxCommandBuffer (int32_t index) |
| const core::DeviceSyncCommandBuffer & | GetAuxCommandBuffer (int32_t index) const |
| core::DeviceSyncCommandBuffer & | GetPrimaryCommandBuffer () |
| const core::DeviceSyncCommandBuffer & | GetPrimaryCommandBuffer () const |
| core::DeviceSyncCommandBuffer & | GetCommandBuffer (CmdBufferIndex index) |
| const core::DeviceSyncCommandBuffer & | GetCommandBuffer (CmdBufferIndex index) const |
| void | ClearSwapchainImage (VkCommandBuffer cmdBuffer) |
| Writes vkCmdClearColorImage cmd to the primary command buffer for the acquired image. | |
| void | PrepareSwapchainImageForPresent (VkCommandBuffer cmdBuffer) |
| Adds a Pipeline barrier transitioning the swapchain image into present layout and assuring all writes to it have finished. | |
| void | SubmitAllCommandBuffers () |
| Batch submit all of InflightFrames command buffers at once. | |
| FrameRenderInfo ()=default | |
| FrameRenderInfo (const RenderLoop::RenderInfo &loopRenderInfo, InFlightFrame *inflightFrame) | |
| Initialize based on loopRenderInfo and InFlightFrame. | |
Protected Attributes | |
| fp32_t | mFrameTime = 0.f |
| Delta time in seconds since last frames render call. | |
| fp64_t | mSinceStart = 0.0 |
| Delta time in seconds since application start. | |
| uint64_t | mFrameNumber = 0 |
| Number of complete frames rendered since application startup. | |
| VkExtent2D | mRenderSize = {} |
| Render Resolution. | |
| InFlightFrame * | mInFlightFrame = nullptr |
| In Flight Frame contains command buffers and synchronization primitives for the current frame. | |
| core::ImageLayoutCache | mImageLayoutCache |
| ImageLayoutCache is used to maintain Images layouts throughout the recording of the frame. | |
Context used for render processes. This object is rebuilt for every frame. /.
|
default |
|
inline |
Initialize based on loopRenderInfo and InFlightFrame.
|
inline |
Writes vkCmdClearColorImage cmd to the primary command buffer for the acquired image.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Adds a Pipeline barrier transitioning the swapchain image into present layout and assuring all writes to it have finished.
|
inline |
Batch submit all of InflightFrames command buffers at once.
|
protected |
Number of complete frames rendered since application startup.
|
protected |
Delta time in seconds since last frames render call.
|
protected |
ImageLayoutCache is used to maintain Images layouts throughout the recording of the frame.
|
protected |
In Flight Frame contains command buffers and synchronization primitives for the current frame.
|
protected |
Render Resolution.
|
protected |
Delta time in seconds since application start.