Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
Renderer::Backend::Dummy::CBuffer Class Reference

#include <Buffer.h>

Inheritance diagram for Renderer::Backend::Dummy::CBuffer:
Collaboration diagram for Renderer::Backend::Dummy::CBuffer:

Public Member Functions

 ~CBuffer () override
 
IDeviceGetDevice () override
 
Type GetType () const override
 
uint32_t GetSize () const override
 
uint32_t GetUsage () const override
 
- Public Member Functions inherited from Renderer::Backend::IBuffer
virtual Type GetType () const =0
 
virtual uint32_t GetSize () const =0
 
virtual uint32_t GetUsage () const =0
 
bool IsDynamic () const
 
- Public Member Functions inherited from Renderer::Backend::IDeviceObject< IBuffer >
virtual ~IDeviceObject ()
 
virtual IDeviceGetDevice ()=0
 
TAs ()
 

Private Member Functions

 CBuffer ()
 

Static Private Member Functions

static std::unique_ptr< IBufferCreate (CDevice *device, const Type type, const uint32_t size, const uint32_t usage)
 

Private Attributes

CDevicem_Device = nullptr
 
Type m_Type = Type::VERTEX
 
uint32_t m_Size = 0
 
uint32_t m_Usage = 0
 

Friends

class CDevice
 

Additional Inherited Members

- Public Types inherited from Renderer::Backend::IBuffer
enum class  Type { VERTEX , INDEX , UPLOAD , UNIFORM }
 

Constructor & Destructor Documentation

◆ ~CBuffer()

Renderer::Backend::Dummy::CBuffer::~CBuffer ( )
overridedefault

◆ CBuffer()

Renderer::Backend::Dummy::CBuffer::CBuffer ( )
privatedefault

Member Function Documentation

◆ Create()

std::unique_ptr< IBuffer > Renderer::Backend::Dummy::CBuffer::Create ( CDevice device,
const Type  type,
const uint32_t  size,
const uint32_t  usage 
)
staticprivate

◆ GetDevice()

IDevice * Renderer::Backend::Dummy::CBuffer::GetDevice ( )
overridevirtual

◆ GetSize()

uint32_t Renderer::Backend::Dummy::CBuffer::GetSize ( ) const
inlineoverridevirtual

◆ GetType()

Type Renderer::Backend::Dummy::CBuffer::GetType ( ) const
inlineoverridevirtual

◆ GetUsage()

uint32_t Renderer::Backend::Dummy::CBuffer::GetUsage ( ) const
inlineoverridevirtual

Friends And Related Function Documentation

◆ CDevice

friend class CDevice
friend

Member Data Documentation

◆ m_Device

CDevice* Renderer::Backend::Dummy::CBuffer::m_Device = nullptr
private

◆ m_Size

uint32_t Renderer::Backend::Dummy::CBuffer::m_Size = 0
private

◆ m_Type

Type Renderer::Backend::Dummy::CBuffer::m_Type = Type::VERTEX
private

◆ m_Usage

uint32_t Renderer::Backend::Dummy::CBuffer::m_Usage = 0
private

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