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

Public Member Functions

PL_ALWAYS_INLINE ID3D11Resource * GetDXTexture () const
 
PL_ALWAYS_INLINE ID3D11Resource * GetDXStagingTexture () const
 
- Public Member Functions inherited from plGALResource< plGALTextureCreationDescription >
PL_ALWAYS_INLINE plGALResource (const plGALTextureCreationDescription &description)
 
PL_ALWAYS_INLINE const plGALTextureCreationDescriptionGetDescription () 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.
 

Protected Member Functions

 plGALTextureDX11 (const plGALTextureCreationDescription &Description)
 
virtual plResult InitPlatform (plGALDevice *pDevice, plArrayPtr< plGALSystemMemoryDescription > pInitialData) override
 
virtual plResult DeInitPlatform (plGALDevice *pDevice) override
 
virtual void SetDebugNamePlatform (const char *szName) const override
 
plResult InitFromNativeObject (plGALDeviceDX11 *pDXDevice)
 
plResult CreateStagingTexture (plGALDeviceDX11 *pDevice)
 
- Protected Member Functions inherited from plGALTexture
 plGALTexture (const plGALTextureCreationDescription &Description)
 

Static Protected Member Functions

static plResult Create2DDesc (const plGALTextureCreationDescription &description, plGALDeviceDX11 *pDXDevice, D3D11_TEXTURE2D_DESC &out_Tex2DDesc)
 
static plResult Create3DDesc (const plGALTextureCreationDescription &description, plGALDeviceDX11 *pDXDevice, D3D11_TEXTURE3D_DESC &out_Tex3DDesc)
 
static void ConvertInitialData (const plGALTextureCreationDescription &description, plArrayPtr< plGALSystemMemoryDescription > pInitialData, plHybridArray< D3D11_SUBRESOURCE_DATA, 16 > &out_InitialData)
 

Protected Attributes

ID3D11Resource * m_pDXTexture = nullptr
 
ID3D11Resource * m_pDXStagingTexture = nullptr
 
- Protected Attributes inherited from plGALTexture
plGALTextureResourceViewHandle m_hDefaultResourceView
 
plGALRenderTargetViewHandle m_hDefaultRenderTargetView
 
plHashTable< plUInt32, plGALTextureResourceViewHandlem_ResourceViews
 
plHashTable< plUInt32, plGALRenderTargetViewHandlem_RenderTargetViews
 
plHashTable< plUInt32, plGALTextureUnorderedAccessViewHandlem_UnorderedAccessViews
 
- Protected Attributes inherited from plGALResource< plGALTextureCreationDescription >
const plGALTextureCreationDescription m_Description
 

Friends

class plGALDeviceDX11
 
class plMemoryUtils
 
class plGALSharedTextureDX11
 

Member Function Documentation

◆ DeInitPlatform()

plResult plGALTextureDX11::DeInitPlatform ( plGALDevice * pDevice)
overrideprotectedvirtual

Implements plGALTexture.

◆ InitFromNativeObject()

plResult plGALTextureDX11::InitFromNativeObject ( plGALDeviceDX11 * pDXDevice)
protected
Todo
Validation if interface of corresponding texture object exists

◆ InitPlatform()

plResult plGALTextureDX11::InitPlatform ( plGALDevice * pDevice,
plArrayPtr< plGALSystemMemoryDescription > pInitialData )
overrideprotectedvirtual

Implements plGALTexture.

◆ SetDebugNamePlatform()

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

Implements plGALResourceBase.


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