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

#include <DirectXFrameResource.h>

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

Public Attributes

ComPtr< ID3D12CommandAllocator > pCommandAllocator
 
unsigned long long iFence = 0
 
- Public Attributes inherited from ne::FrameResource
std::unique_ptr< UploadBufferpFrameConstantBuffer
 

Private Member Functions

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

Detailed Description

Stores objects used by one frame.

Member Function Documentation

◆ initialize()

std::optional< Error > ne::DirectXFrameResource::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

◆ iFence

unsigned long long ne::DirectXFrameResource::iFence = 0

Current fence value of the resource.

◆ pCommandAllocator

ComPtr<ID3D12CommandAllocator> ne::DirectXFrameResource::pCommandAllocator

Stores frame commands from command lists.


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