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

Classes

struct  DescriptorSetLayoutDesc
 Used as input to plResourceCacheVulkan::RequestDescriptorSetLayout to create a vk::DescriptorSetLayout. More...
 

Public Member Functions

void SetDebugName (const char *szName) const override
 
PL_ALWAYS_INLINE vk::ShaderModule GetShader (plGALShaderStage::Enum stage) const
 
PL_ALWAYS_INLINE plUInt32 GetSetCount () const
 
PL_ALWAYS_INLINE vk::DescriptorSetLayout GetDescriptorSetLayout (plUInt32 uiSet=0) const
 
PL_ALWAYS_INLINE plArrayPtr< const plShaderResourceBindingGetBindings (plUInt32 uiSet=0) const
 
PL_ALWAYS_INLINE vk::PushConstantRange GetPushConstantRange () const
 
- Public Member Functions inherited from plGALShader
plArrayPtr< const plShaderResourceBindingGetBindingMapping () const
 Returns the list of shader resources and their binding information. These must be bound before the shader can be used.
 
const plShaderResourceBindingGetShaderResourceBinding (const plTempHashedString &sName) const
 Convenience function that finds 'sName' in GetBindingMapping and returns it if present.
 
plArrayPtr< const plShaderVertexInputAttributeGetVertexInputAttributes () const
 Returns the list of vertex input attributes. Compute shaders return an empty array.
 
- Public Member Functions inherited from plGALObject< plGALShaderCreationDescription >
 plGALObject (const plGALShaderCreationDescription &description)
 
PL_ALWAYS_INLINE const plGALShaderCreationDescriptionGetDescription () 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.
 

Protected Member Functions

 plGALShaderVulkan (const plGALShaderCreationDescription &description)
 
virtual plResult InitPlatform (plGALDevice *pDevice) override
 
virtual plResult DeInitPlatform (plGALDevice *pDevice) override
 
- Protected Member Functions inherited from plGALShader
plResult CreateBindingMapping (bool bAllowMultipleBindingPerName)
 
void DestroyBindingMapping ()
 
 plGALShader (const plGALShaderCreationDescription &Description)
 

Friends

class plGALDeviceVulkan
 
class plMemoryUtils
 

Additional Inherited Members

- Protected Attributes inherited from plGALShader
plDynamicArray< plShaderResourceBindingm_BindingMapping
 
- Protected Attributes inherited from plGALObject< plGALShaderCreationDescription >
const plGALShaderCreationDescription m_Description
 

Member Function Documentation

◆ DeInitPlatform()

plResult plGALShaderVulkan::DeInitPlatform ( plGALDevice * pDevice)
overrideprotectedvirtual

Implements plGALShader.

◆ InitPlatform()

plResult plGALShaderVulkan::InitPlatform ( plGALDevice * pDevice)
overrideprotectedvirtual

Implements plGALShader.

◆ SetDebugName()

void plGALShaderVulkan::SetDebugName ( const char * szName) const
overridevirtual

Implements plGALShader.


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