Plasma Engine  2.0
Loading...
Searching...
No Matches
plGALBufferVulkan Class Reference
Inheritance diagram for plGALBufferVulkan:

Classes

struct  BufferVulkan
 

Public Member Functions

void DiscardBuffer () const
 
PL_ALWAYS_INLINE vk::Buffer GetVkBuffer () const
 
const vk::DescriptorBufferInfo & GetBufferInfo () const
 
PL_ALWAYS_INLINE vk::IndexType GetIndexType () const
 
PL_ALWAYS_INLINE plVulkanAllocation GetAllocation () const
 
PL_ALWAYS_INLINE const plVulkanAllocationInfoGetAllocationInfo () const
 
PL_ALWAYS_INLINE vk::PipelineStageFlags GetUsedByPipelineStage () const
 
PL_ALWAYS_INLINE vk::AccessFlags GetAccessMask () const
 
- Public Member Functions inherited from plGALBuffer
PL_ALWAYS_INLINE plUInt32 GetSize () const
 
- Public Member Functions inherited from plGALResource< plGALBufferCreationDescription >
PL_ALWAYS_INLINE plGALResource (const plGALBufferCreationDescription &description)
 
PL_ALWAYS_INLINE const plGALBufferCreationDescriptionGetDescription () const
 
- Public Member Functions inherited from plGALResourceBase
void SetDebugName (const char *szName) const
 
virtual const plGALResourceBaseGetParentResource () const
 
- Public Member Functions inherited from plRefCounted
virtual ~plRefCounted ()=default
 Adds a virtual destructor.
 
- Public Member Functions inherited from plRefCountingImpl
 plRefCountingImpl ()=default
 Constructor.
 
 plRefCountingImpl (const plRefCountingImpl &rhs)
 
void operator= (const plRefCountingImpl &rhs)
 
plInt32 AddRef () const
 Increments the reference counter. Returns the new reference count.
 
plInt32 ReleaseRef () const
 Decrements the reference counter. Returns the new reference count.
 
bool IsReferenced () const
 Returns true if the reference count is greater than 0, false otherwise.
 
plInt32 GetRefCount () const
 Returns the current reference count.
 

Static Public Member Functions

static vk::DeviceSize GetAlignment (const plGALDeviceVulkan *pDevice, vk::BufferUsageFlags usage)
 

Protected Member Functions

 plGALBufferVulkan (const plGALBufferCreationDescription &Description, bool bCPU=false)
 
virtual plResult InitPlatform (plGALDevice *pDevice, plArrayPtr< const plUInt8 > pInitialData) override
 
virtual plResult DeInitPlatform (plGALDevice *pDevice) override
 
virtual void SetDebugNamePlatform (const char *szName) const override
 
void CreateBuffer () const
 
- Protected Member Functions inherited from plGALBuffer
 plGALBuffer (const plGALBufferCreationDescription &Description)
 

Protected Attributes

BufferVulkan m_currentBuffer
 
vk::DescriptorBufferInfo m_resourceBufferInfo
 
plDeque< BufferVulkanm_usedBuffers
 
plVulkanAllocationInfo m_allocInfo
 
vk::PipelineStageFlags m_stages = {}
 
vk::AccessFlags m_access = {}
 
vk::IndexType m_indexType = vk::IndexType::eUint16
 
vk::BufferUsageFlags m_usage = {}
 
vk::DeviceSize m_size = 0
 
plGALDeviceVulkanm_pDeviceVulkan = nullptr
 
vk::Device m_device
 
bool m_bCPU = false
 
plString m_sDebugName
 
- Protected Attributes inherited from plGALBuffer
plGALBufferResourceViewHandle m_hDefaultResourceView
 
plHashTable< plUInt32, plGALBufferResourceViewHandlem_ResourceViews
 
plHashTable< plUInt32, plGALBufferUnorderedAccessViewHandlem_UnorderedAccessViews
 
- Protected Attributes inherited from plGALResource< plGALBufferCreationDescription >
const plGALBufferCreationDescription m_Description
 

Friends

class plGALDeviceVulkan
 
class plMemoryUtils
 

Member Function Documentation

◆ DeInitPlatform()

plResult plGALBufferVulkan::DeInitPlatform ( plGALDevice * pDevice)
overrideprotectedvirtual

Implements plGALBuffer.

◆ InitPlatform()

plResult plGALBufferVulkan::InitPlatform ( plGALDevice * pDevice,
plArrayPtr< const plUInt8 > pInitialData )
overrideprotectedvirtual

Implements plGALBuffer.

◆ SetDebugNamePlatform()

void plGALBufferVulkan::SetDebugNamePlatform ( const char * szName) const
overrideprotectedvirtual

Implements plGALResourceBase.


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