Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
gte::DX11Texture Class Reference

#include <GteDX11Texture.h>

Inheritance diagram for gte::DX11Texture:
Inheritance graph
[legend]

Public Member Functions

virtual bool CopyCpuToGpu (ID3D11DeviceContext *context, unsigned int sri) override
 
virtual bool CopyCpuToGpu (ID3D11DeviceContext *context) override
 
virtual bool CopyGpuToCpu (ID3D11DeviceContext *context, unsigned int sri) override
 
virtual bool CopyGpuToCpu (ID3D11DeviceContext *context) override
 
virtual void CopyGpuToGpu (ID3D11DeviceContext *context, ID3D11Resource *target, unsigned int sri) override
 
virtual void CopyGpuToGpu (ID3D11DeviceContext *context, ID3D11Resource *target) override
 
ID3D11ShaderResourceView * GetSRView () const
 
TextureGetTexture () const
 
ID3D11UnorderedAccessView * GetUAView () const
 
virtual void SetName (std::string const &name) override
 
virtual bool Update (ID3D11DeviceContext *context, unsigned int sri) override
 
virtual bool Update (ID3D11DeviceContext *context) override
 
virtual ~DX11Texture ()
 
- Public Member Functions inherited from gte::DX11Resource
ID3D11Resource * GetDXResource () const
 
ResourceGetResource () const
 
ID3D11Resource * GetStagingResource () const
 
D3D11_MAPPED_SUBRESOURCE MapForWrite (ID3D11DeviceContext *context, unsigned int sri)
 
void Unmap (ID3D11DeviceContext *context, unsigned int sri)
 
virtual ~DX11Resource ()
 
- Public Member Functions inherited from gte::DX11GraphicsObject
ID3D11DeviceChild * GetDXDeviceChild () const
 
virtual ~DX11GraphicsObject ()
 
- Public Member Functions inherited from gte::GEObject
GraphicsObjectGetGraphicsObject () const
 
std::string const & GetName () const
 
virtual ~GEObject ()
 

Protected Member Functions

 DX11Texture (Texture const *gtTexture)
 
- Protected Member Functions inherited from gte::DX11Resource
 DX11Resource (Resource const *gtResource)
 
bool PreparedForCopy (D3D11_CPU_ACCESS_FLAG access) const
 
- Protected Member Functions inherited from gte::DX11GraphicsObject
 DX11GraphicsObject (GraphicsObject const *gtObject)
 
- Protected Member Functions inherited from gte::GEObject
 GEObject (GraphicsObject const *gtObject)
 

Static Protected Member Functions

static void CopyPitched2 (unsigned int numRows, unsigned int srcRowPitch, void const *srcData, unsigned int trgRowPitch, void *trgData)
 
static void CopyPitched3 (unsigned int numRows, unsigned int numSlices, unsigned int srcRowPitch, unsigned int srcSlicePitch, void const *srcData, unsigned int trgRowPitch, unsigned int trgSlicePitch, void *trgData)
 

Protected Attributes

ID3D11ShaderResourceView * mSRView
 
ID3D11UnorderedAccessView * mUAView
 
- Protected Attributes inherited from gte::DX11Resource
ID3D11Resource * mStaging
 
- Protected Attributes inherited from gte::DX11GraphicsObject
ID3D11DeviceChild * mDXObject
 
- Protected Attributes inherited from gte::GEObject
GraphicsObjectmGTObject
 
std::string mName
 

Additional Inherited Members

- Static Protected Attributes inherited from gte::DX11Resource
static UINT const msStagingAccess []
 

Detailed Description

Definition at line 16 of file GteDX11Texture.h.

Constructor & Destructor Documentation

DX11Texture::~DX11Texture ( )
virtual

Definition at line 13 of file GteDX11Texture.cpp.

DX11Texture::DX11Texture ( Texture const *  gtTexture)
protected

Definition at line 19 of file GteDX11Texture.cpp.

Member Function Documentation

bool DX11Texture::CopyCpuToGpu ( ID3D11DeviceContext *  context,
unsigned int  sri 
)
overridevirtual

Implements gte::DX11Resource.

Definition at line 84 of file GteDX11Texture.cpp.

bool DX11Texture::CopyCpuToGpu ( ID3D11DeviceContext *  context)
overridevirtual

Implements gte::DX11Resource.

Definition at line 131 of file GteDX11Texture.cpp.

bool DX11Texture::CopyGpuToCpu ( ID3D11DeviceContext *  context,
unsigned int  sri 
)
overridevirtual

Implements gte::DX11Resource.

Definition at line 151 of file GteDX11Texture.cpp.

bool DX11Texture::CopyGpuToCpu ( ID3D11DeviceContext *  context)
overridevirtual

Implements gte::DX11Resource.

Definition at line 196 of file GteDX11Texture.cpp.

void DX11Texture::CopyGpuToGpu ( ID3D11DeviceContext *  context,
ID3D11Resource *  target,
unsigned int  sri 
)
overridevirtual

Implements gte::DX11Resource.

Definition at line 210 of file GteDX11Texture.cpp.

void DX11Texture::CopyGpuToGpu ( ID3D11DeviceContext *  context,
ID3D11Resource *  target 
)
overridevirtual

Implements gte::DX11Resource.

Definition at line 225 of file GteDX11Texture.cpp.

void DX11Texture::CopyPitched2 ( unsigned int  numRows,
unsigned int  srcRowPitch,
void const *  srcData,
unsigned int  trgRowPitch,
void trgData 
)
staticprotected

Definition at line 244 of file GteDX11Texture.cpp.

void DX11Texture::CopyPitched3 ( unsigned int  numRows,
unsigned int  numSlices,
unsigned int  srcRowPitch,
unsigned int  srcSlicePitch,
void const *  srcData,
unsigned int  trgRowPitch,
unsigned int  trgSlicePitch,
void trgData 
)
staticprotected

Definition at line 269 of file GteDX11Texture.cpp.

ID3D11ShaderResourceView * gte::DX11Texture::GetSRView ( ) const
inline

Definition at line 67 of file GteDX11Texture.h.

Texture * gte::DX11Texture::GetTexture ( ) const
inline

Definition at line 62 of file GteDX11Texture.h.

ID3D11UnorderedAccessView * gte::DX11Texture::GetUAView ( ) const
inline

Definition at line 72 of file GteDX11Texture.h.

void DX11Texture::SetName ( std::string const &  name)
overridevirtual

Reimplemented from gte::DX11Resource.

Reimplemented in gte::DX11TextureDS, and gte::DX11TextureRT.

Definition at line 235 of file GteDX11Texture.cpp.

bool DX11Texture::Update ( ID3D11DeviceContext *  context,
unsigned int  sri 
)
overridevirtual

Implements gte::DX11Resource.

Definition at line 27 of file GteDX11Texture.cpp.

bool DX11Texture::Update ( ID3D11DeviceContext *  context)
overridevirtual

Implements gte::DX11Resource.

Definition at line 70 of file GteDX11Texture.cpp.

Member Data Documentation

ID3D11ShaderResourceView* gte::DX11Texture::mSRView
protected

Definition at line 58 of file GteDX11Texture.h.

ID3D11UnorderedAccessView* gte::DX11Texture::mUAView
protected

Definition at line 59 of file GteDX11Texture.h.


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


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:06