Nebula
Loading...
Searching...
No Matches
CoreGraphics::PinnedBuffer< STORAGE > Struct Template Reference

#include <pinnedbuffer.h>

Public Member Functions

 PinnedBuffer ()
 Default constructor.
 
 PinnedBuffer (const BufferCreateInfo &createInfo)
 Constructor.
 
 PinnedBuffer (PinnedBuffer &&rhs)
 Move constructor.
 
void operator= (PinnedBuffer &&rhs)
 Move assignment.
 
void Write (const STORAGE &item, IndexT offset)
 Append a copy of an element to a region.
 
void Write (const STORAGE *items, SizeT num, IndexT offset)
 Write a series of items.
 
void Flush (const CoreGraphics::CmdBufferId buf)
 Copy from storage unto device buffer.
 

Public Attributes

uint iterator
 
Util::Array< CoreGraphics::BufferCopyfromCopies
 
Util::Array< CoreGraphics::BufferCopytoCopies
 
Util::Array< uintsizes
 
BufferSet hostBuffers
 
CoreGraphics::BufferId deviceBuffer
 

Constructor & Destructor Documentation

◆ PinnedBuffer() [1/3]

template<typename STORAGE >
CoreGraphics::PinnedBuffer< STORAGE >::PinnedBuffer ( )
inline

Default constructor.

◆ PinnedBuffer() [2/3]

template<typename STORAGE >
CoreGraphics::PinnedBuffer< STORAGE >::PinnedBuffer ( const BufferCreateInfo & createInfo)
inline

Constructor.

◆ PinnedBuffer() [3/3]

template<typename STORAGE >
CoreGraphics::PinnedBuffer< STORAGE >::PinnedBuffer ( PinnedBuffer< STORAGE > && rhs)
inline

Move constructor.

Member Function Documentation

◆ Flush()

template<typename STORAGE >
void CoreGraphics::PinnedBuffer< STORAGE >::Flush ( const CoreGraphics::CmdBufferId buf)
inline

Copy from storage unto device buffer.

◆ operator=()

template<typename STORAGE >
void CoreGraphics::PinnedBuffer< STORAGE >::operator= ( PinnedBuffer< STORAGE > && rhs)
inline

Move assignment.

◆ Write() [1/2]

template<typename STORAGE >
void CoreGraphics::PinnedBuffer< STORAGE >::Write ( const STORAGE & item,
IndexT offset )
inline

Append a copy of an element to a region.

◆ Write() [2/2]

template<typename STORAGE >
void CoreGraphics::PinnedBuffer< STORAGE >::Write ( const STORAGE * items,
SizeT num,
IndexT offset )
inline

Write a series of items.

Member Data Documentation

◆ deviceBuffer

template<typename STORAGE >
CoreGraphics::BufferId CoreGraphics::PinnedBuffer< STORAGE >::deviceBuffer

◆ fromCopies

template<typename STORAGE >
Util::Array<CoreGraphics::BufferCopy> CoreGraphics::PinnedBuffer< STORAGE >::fromCopies

◆ hostBuffers

template<typename STORAGE >
BufferSet CoreGraphics::PinnedBuffer< STORAGE >::hostBuffers

◆ iterator

template<typename STORAGE >
uint CoreGraphics::PinnedBuffer< STORAGE >::iterator

◆ sizes

template<typename STORAGE >
Util::Array<uint> CoreGraphics::PinnedBuffer< STORAGE >::sizes

◆ toCopies

template<typename STORAGE >
Util::Array<CoreGraphics::BufferCopy> CoreGraphics::PinnedBuffer< STORAGE >::toCopies

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