26 inline Resource* GetResource()
const;
27 inline ID3D11Resource* GetDXResource()
const;
28 inline ID3D11Resource* GetStagingResource()
const;
34 D3D11_MAPPED_SUBRESOURCE MapForWrite(ID3D11DeviceContext* context,
unsigned int sri);
35 void Unmap(ID3D11DeviceContext* context,
unsigned int sri);
40 virtual bool Update(ID3D11DeviceContext* context,
unsigned int sri) = 0;
41 virtual bool Update(ID3D11DeviceContext* context) = 0;
45 virtual bool CopyCpuToGpu(ID3D11DeviceContext* context,
unsigned int sri) = 0;
46 virtual bool CopyCpuToGpu(ID3D11DeviceContext* context) = 0;
50 virtual bool CopyGpuToCpu(ID3D11DeviceContext* context,
unsigned int sri) = 0;
51 virtual bool CopyGpuToCpu(ID3D11DeviceContext* context) = 0;
55 virtual void CopyGpuToGpu(ID3D11DeviceContext* context,
56 ID3D11Resource*
target,
unsigned int sri) = 0;
57 virtual void CopyGpuToGpu(ID3D11DeviceContext* context,
58 ID3D11Resource* target) = 0;
66 bool PreparedForCopy(D3D11_CPU_ACCESS_FLAG
access)
const;
72 static UINT const msStagingAccess[];
77 return static_cast<Resource*
>(mGTObject);
82 return static_cast<ID3D11Resource*
>(mDXObject);
GLuint const GLchar * name
ID3D11Resource * mStaging
GLuint GLint GLboolean GLint GLenum access
GLsizei const GLchar *const * string
ID3D11Resource * GetDXResource() const
ID3D11Resource * GetStagingResource() const
typedef UINT(WINAPI *PFNWGLGETGPUIDSAMDPROC)(UINT maxCount
Resource * GetResource() const