Nebula
Loading...
Searching...
No Matches
Materials::MaterialBuffer< INTERFACE_TYPE > Struct Template Reference

Public Member Functions

 MaterialBuffer (const char *name)
 
Ids::Id32 Alloc ()
 Allocate a new material.
 
INTERFACE_TYPE & Get (Ids::Id32 id)
 Get material instance for updating.
 
void Flush (const CoreGraphics::CmdBufferId id, const CoreGraphics::QueueType queue)
 Flush.
 

Public Attributes

Ids::IdGenerationPool pool
 
CoreGraphics::BufferCreateInfo hostBufferCreateInfo
 
CoreGraphics::BufferCreateInfo deviceBufferCreateInfo
 
INTERFACE_TYPE * hostBufferData
 
CoreGraphics::BufferId hostBuffer
 
CoreGraphics::BufferId deviceBuffer
 
Util::PinnedArray< 0xFFFF, INTERFACE_TYPE > cpuBuffer
 
bool dirty
 

Constructor & Destructor Documentation

◆ MaterialBuffer()

template<typename INTERFACE_TYPE >
Materials::MaterialBuffer< INTERFACE_TYPE >::MaterialBuffer ( const char * name)
inline

Member Function Documentation

◆ Alloc()

template<typename INTERFACE_TYPE >
Ids::Id32 Materials::MaterialBuffer< INTERFACE_TYPE >::Alloc ( )
inline

Allocate a new material.

◆ Flush()

template<typename INTERFACE_TYPE >
void Materials::MaterialBuffer< INTERFACE_TYPE >::Flush ( const CoreGraphics::CmdBufferId id,
const CoreGraphics::QueueType queue )
inline

Flush.

◆ Get()

template<typename INTERFACE_TYPE >
INTERFACE_TYPE & Materials::MaterialBuffer< INTERFACE_TYPE >::Get ( Ids::Id32 id)
inline

Get material instance for updating.

Member Data Documentation

◆ cpuBuffer

template<typename INTERFACE_TYPE >
Util::PinnedArray<0xFFFF, INTERFACE_TYPE> Materials::MaterialBuffer< INTERFACE_TYPE >::cpuBuffer

◆ deviceBuffer

template<typename INTERFACE_TYPE >
CoreGraphics::BufferId Materials::MaterialBuffer< INTERFACE_TYPE >::deviceBuffer

◆ deviceBufferCreateInfo

template<typename INTERFACE_TYPE >
CoreGraphics::BufferCreateInfo Materials::MaterialBuffer< INTERFACE_TYPE >::deviceBufferCreateInfo

◆ dirty

template<typename INTERFACE_TYPE >
bool Materials::MaterialBuffer< INTERFACE_TYPE >::dirty

◆ hostBuffer

template<typename INTERFACE_TYPE >
CoreGraphics::BufferId Materials::MaterialBuffer< INTERFACE_TYPE >::hostBuffer

◆ hostBufferCreateInfo

template<typename INTERFACE_TYPE >
CoreGraphics::BufferCreateInfo Materials::MaterialBuffer< INTERFACE_TYPE >::hostBufferCreateInfo

◆ hostBufferData

template<typename INTERFACE_TYPE >
INTERFACE_TYPE* Materials::MaterialBuffer< INTERFACE_TYPE >::hostBufferData

◆ pool

template<typename INTERFACE_TYPE >
Ids::IdGenerationPool Materials::MaterialBuffer< INTERFACE_TYPE >::pool

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