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 with provided values.
 

Public Attributes

const void * pData
 Pointer to the subresource data.
 
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

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

Uint32 Diligent::TextureSubResData::DepthStride

For 3D textures, depth slice stride in bytes.

Note
On OpenGL, this must be a mutliple of Stride