Nameless Engine
Loading...
Searching...
No Matches
ne::FrameResource Struct Referenceabstract

#include <FrameResource.h>

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

Public Attributes

std::unique_ptr< UploadBufferpFrameConstantBuffer
 

Private Member Functions

virtual std::optional< Errorinitialize (Renderer *pRenderer)=0
 

Friends

class FrameResourceManager
 

Detailed Description

Stores objects used by one frame.

Member Function Documentation

◆ initialize()

virtual std::optional< Error > ne::FrameResource::initialize ( Renderer pRenderer)
privatepure virtual

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

Parameters
pRendererUsed renderer.
Returns
Error if something went wrong.

Implemented in ne::DirectXFrameResource, and ne::VulkanFrameResource.

Member Data Documentation

◆ pFrameConstantBuffer

std::unique_ptr<UploadBuffer> ne::FrameResource::pFrameConstantBuffer

Stores frame-global constants, such as camera position, time, various matrices, etc.


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