Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
gte::DX11Resource Class Referenceabstract

#include <GteDX11Resource.h>

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

Public Member Functions

virtual bool CopyCpuToGpu (ID3D11DeviceContext *context, unsigned int sri)=0
 
virtual bool CopyCpuToGpu (ID3D11DeviceContext *context)=0
 
virtual bool CopyGpuToCpu (ID3D11DeviceContext *context, unsigned int sri)=0
 
virtual bool CopyGpuToCpu (ID3D11DeviceContext *context)=0
 
virtual void CopyGpuToGpu (ID3D11DeviceContext *context, ID3D11Resource *target, unsigned int sri)=0
 
virtual void CopyGpuToGpu (ID3D11DeviceContext *context, ID3D11Resource *target)=0
 
ID3D11Resource * GetDXResource () const
 
ResourceGetResource () const
 
ID3D11Resource * GetStagingResource () const
 
D3D11_MAPPED_SUBRESOURCE MapForWrite (ID3D11DeviceContext *context, unsigned int sri)
 
virtual void SetName (std::string const &name) override
 
void Unmap (ID3D11DeviceContext *context, unsigned int sri)
 
virtual bool Update (ID3D11DeviceContext *context, unsigned int sri)=0
 
virtual bool Update (ID3D11DeviceContext *context)=0
 
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

 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)
 

Protected Attributes

ID3D11Resource * mStaging
 
- Protected Attributes inherited from gte::DX11GraphicsObject
ID3D11DeviceChild * mDXObject
 
- Protected Attributes inherited from gte::GEObject
GraphicsObjectmGTObject
 
std::string mName
 

Static Protected Attributes

static UINT const msStagingAccess []
 

Detailed Description

Definition at line 16 of file GteDX11Resource.h.

Constructor & Destructor Documentation

DX11Resource::~DX11Resource ( )
virtual

Definition at line 12 of file GteDX11Resource.cpp.

DX11Resource::DX11Resource ( Resource const *  gtResource)
protected

Definition at line 17 of file GteDX11Resource.cpp.

Member Function Documentation

virtual bool gte::DX11Resource::CopyCpuToGpu ( ID3D11DeviceContext *  context,
unsigned int  sri 
)
pure virtual

Implemented in gte::DX11Buffer, and gte::DX11Texture.

virtual bool gte::DX11Resource::CopyCpuToGpu ( ID3D11DeviceContext *  context)
pure virtual

Implemented in gte::DX11Texture, and gte::DX11Buffer.

virtual bool gte::DX11Resource::CopyGpuToCpu ( ID3D11DeviceContext *  context,
unsigned int  sri 
)
pure virtual

Implemented in gte::DX11Buffer, and gte::DX11Texture.

virtual bool gte::DX11Resource::CopyGpuToCpu ( ID3D11DeviceContext *  context)
pure virtual
virtual void gte::DX11Resource::CopyGpuToGpu ( ID3D11DeviceContext *  context,
ID3D11Resource *  target,
unsigned int  sri 
)
pure virtual

Implemented in gte::DX11Buffer, and gte::DX11Texture.

virtual void gte::DX11Resource::CopyGpuToGpu ( ID3D11DeviceContext *  context,
ID3D11Resource *  target 
)
pure virtual

Implemented in gte::DX11Texture, and gte::DX11Buffer.

ID3D11Resource * gte::DX11Resource::GetDXResource ( ) const
inline

Definition at line 80 of file GteDX11Resource.h.

Resource * gte::DX11Resource::GetResource ( ) const
inline

Definition at line 75 of file GteDX11Resource.h.

ID3D11Resource * gte::DX11Resource::GetStagingResource ( ) const
inline

Definition at line 85 of file GteDX11Resource.h.

D3D11_MAPPED_SUBRESOURCE DX11Resource::MapForWrite ( ID3D11DeviceContext *  context,
unsigned int  sri 
)

Definition at line 27 of file GteDX11Resource.cpp.

bool DX11Resource::PreparedForCopy ( D3D11_CPU_ACCESS_FLAG  access) const
protected

Definition at line 52 of file GteDX11Resource.cpp.

void DX11Resource::SetName ( std::string const &  name)
overridevirtual
void DX11Resource::Unmap ( ID3D11DeviceContext *  context,
unsigned int  sri 
)

Definition at line 40 of file GteDX11Resource.cpp.

virtual bool gte::DX11Resource::Update ( ID3D11DeviceContext *  context,
unsigned int  sri 
)
pure virtual

Implemented in gte::DX11Buffer, and gte::DX11Texture.

virtual bool gte::DX11Resource::Update ( ID3D11DeviceContext *  context)
pure virtual

Implemented in gte::DX11Texture, and gte::DX11Buffer.

Member Data Documentation

UINT const DX11Resource::msStagingAccess
staticprotected
Initial value:
=
{
D3D11_CPU_ACCESS_WRITE,
D3D11_CPU_ACCESS_READ,
}

Definition at line 72 of file GteDX11Resource.h.

ID3D11Resource* gte::DX11Resource::mStaging
protected

Definition at line 69 of file GteDX11Resource.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:05