Nameless Engine
|
#include <FrameResource.h>
Public Attributes | |
std::unique_ptr< UploadBuffer > | pFrameConstantBuffer |
Private Member Functions | |
virtual std::optional< Error > | initialize (Renderer *pRenderer)=0 |
Friends | |
class | FrameResourceManager |
Stores objects used by one frame.
|
privatepure virtual |
Called by frame resource manager after a frame resource was constructed to initialize its fields.
pRenderer | Used renderer. |
Implemented in ne::DirectXFrameResource, and ne::VulkanFrameResource.
std::unique_ptr<UploadBuffer> ne::FrameResource::pFrameConstantBuffer |
Stores frame-global constants, such as camera position, time, various matrices, etc.