Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
gte::DX11Buffer Class Reference

#include <GteDX11Buffer.h>

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

Public Member Functions

virtual bool CopyCpuToGpu (ID3D11DeviceContext *context) override
 
virtual bool CopyGpuToCpu (ID3D11DeviceContext *context) override
 
virtual void CopyGpuToGpu (ID3D11DeviceContext *context, ID3D11Resource *target) override
 
BufferGetBuffer () const
 
ID3D11Buffer * GetDXBuffer () const
 
virtual bool Update (ID3D11DeviceContext *context) override
 
- Public Member Functions inherited from gte::DX11Resource
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 ~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

void CreateStaging (ID3D11Device *device, D3D11_BUFFER_DESC const &bf)
 
 DX11Buffer (Buffer const *buffer)
 
- 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)
 

Protected Attributes

D3D11_MAP mUpdateMapMode
 
- 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
 

Private Member Functions

virtual bool CopyCpuToGpu (ID3D11DeviceContext *context, unsigned int sri) override
 
virtual bool CopyGpuToCpu (ID3D11DeviceContext *context, unsigned int sri) override
 
virtual void CopyGpuToGpu (ID3D11DeviceContext *context, ID3D11Resource *target, unsigned int sri) override
 
virtual bool Update (ID3D11DeviceContext *context, unsigned int sri) override
 

Additional Inherited Members

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

Detailed Description

Definition at line 16 of file GteDX11Buffer.h.

Constructor & Destructor Documentation

DX11Buffer::DX11Buffer ( Buffer const *  buffer)
protected

Definition at line 13 of file GteDX11Buffer.cpp.

Member Function Documentation

bool DX11Buffer::CopyCpuToGpu ( ID3D11DeviceContext *  context)
overridevirtual

Implements gte::DX11Resource.

Definition at line 59 of file GteDX11Buffer.cpp.

bool DX11Buffer::CopyCpuToGpu ( ID3D11DeviceContext *  context,
unsigned int  sri 
)
overrideprivatevirtual

Implements gte::DX11Resource.

Definition at line 156 of file GteDX11Buffer.cpp.

bool DX11Buffer::CopyGpuToCpu ( ID3D11DeviceContext *  context)
overridevirtual

Implements gte::DX11Resource.

Reimplemented in gte::DX11StructuredBuffer.

Definition at line 97 of file GteDX11Buffer.cpp.

bool DX11Buffer::CopyGpuToCpu ( ID3D11DeviceContext *  context,
unsigned int  sri 
)
overrideprivatevirtual

Implements gte::DX11Resource.

Definition at line 162 of file GteDX11Buffer.cpp.

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

Implements gte::DX11Resource.

Definition at line 132 of file GteDX11Buffer.cpp.

void DX11Buffer::CopyGpuToGpu ( ID3D11DeviceContext *  context,
ID3D11Resource *  target,
unsigned int  sri 
)
overrideprivatevirtual

Implements gte::DX11Resource.

Definition at line 168 of file GteDX11Buffer.cpp.

void DX11Buffer::CreateStaging ( ID3D11Device *  device,
D3D11_BUFFER_DESC const &  bf 
)
protected

Definition at line 173 of file GteDX11Buffer.cpp.

Buffer * gte::DX11Buffer::GetBuffer ( ) const
inline

Definition at line 69 of file GteDX11Buffer.h.

ID3D11Buffer * gte::DX11Buffer::GetDXBuffer ( ) const
inline

Definition at line 74 of file GteDX11Buffer.h.

bool DX11Buffer::Update ( ID3D11DeviceContext *  context)
overridevirtual

Implements gte::DX11Resource.

Definition at line 20 of file GteDX11Buffer.cpp.

bool DX11Buffer::Update ( ID3D11DeviceContext *  context,
unsigned int  sri 
)
overrideprivatevirtual

Implements gte::DX11Resource.

Definition at line 150 of file GteDX11Buffer.cpp.

Member Data Documentation

D3D11_MAP gte::DX11Buffer::mUpdateMapMode
protected

Definition at line 66 of file GteDX11Buffer.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