Plasma Engine  2.0
Loading...
Searching...
No Matches
plGALShader Class Referenceabstract
Inheritance diagram for plGALShader:

Public Member Functions

virtual void SetDebugName (const char *szName) const =0
 
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

virtual plResult InitPlatform (plGALDevice *pDevice)=0
 
virtual plResult DeInitPlatform (plGALDevice *pDevice)=0
 
plResult CreateBindingMapping (bool bAllowMultipleBindingPerName)
 
void DestroyBindingMapping ()
 
 plGALShader (const plGALShaderCreationDescription &Description)
 

Protected Attributes

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

Friends

class plGALDevice
 

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