Diligent Engine API Reference
Public Member Functions | Public Attributes | List of all members
Diligent::TextureSubResData Struct Reference

Describes data for one subresource. More...

Public Member Functions

 TextureSubResData ()
 Initializes the structure members with default values. More...
 
 TextureSubResData (void *_pData, Uint32 _Stride, Uint32 _DepthStride=0)
 Initializes the structure members to perform copy from the CPU memory.
 
 TextureSubResData (IBuffer *_pBuffer, Uint32 _Stride, Uint32 _DepthStride=0)
 Initializes the structure members to perform copy from the GPU buffer.
 

Public Attributes

const void * pData
 Pointer to the subresource data in CPU memory. If provided, pSrcBuffer must be null.
 
class IBufferpSrcBuffer
 Pointer to the GPU buffer that contains subresource data. If provided, pData must be null.
 
Uint32 Stride
 For 2D and 3D textures, row stride in bytes.
 
Uint32 DepthStride
 For 3D textures, depth slice stride in bytes. More...
 

Detailed Description

Describes data for one subresource.

Constructor & Destructor Documentation

◆ TextureSubResData()

Diligent::TextureSubResData::TextureSubResData ( )
inline

Initializes the structure members with default values.

Default values:

Member Default value
pData nullptr
Stride 0
DepthStride 0

Member Data Documentation

◆ DepthStride

Uint32 Diligent::TextureSubResData::DepthStride

For 3D textures, depth slice stride in bytes.

Note
On OpenGL, this must be a mutliple of Stride