Nameless Engine
Loading...
Searching...
No Matches
ne::VulkanFrameResource Struct Reference

#include <VulkanFrameResource.h>

Inheritance diagram for ne::VulkanFrameResource:
ne::FrameResource

Public Attributes

VkCommandBuffer pCommandBuffer = nullptr
 
VkFence pFence = nullptr
 
- Public Attributes inherited from ne::FrameResource
std::unique_ptr< UploadBufferpFrameConstantBuffer
 

Private Member Functions

virtual std::optional< Errorinitialize (Renderer *pRenderer) override
 

Private Attributes

RendererpRenderer = nullptr
 

Detailed Description

Stores objects used by one frame.

Member Function Documentation

◆ initialize()

std::optional< Error > ne::VulkanFrameResource::initialize ( Renderer pRenderer)
overrideprivatevirtual

Called by frame resource manager after a frame resource was constructed to initialize its fields.

Parameters
pRendererUsed renderer.
Returns
Error if something went wrong.

Implements ne::FrameResource.

Member Data Documentation

◆ pCommandBuffer

VkCommandBuffer ne::VulkanFrameResource::pCommandBuffer = nullptr

Stores recorded commands.

◆ pFence

VkFence ne::VulkanFrameResource::pFence = nullptr

Signaled when submitted commands were finished executing.

◆ pRenderer

Renderer* ne::VulkanFrameResource::pRenderer = nullptr
private

Renderer that was passed to initialize.


The documentation for this struct was generated from the following files: