|
Diligent Engine API 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 IBuffer * | pSrcBuffer |
| 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... | |
Describes data for one subresource.
|
inline |
Initializes the structure members with default values.
Default values:
| Member | Default value |
|---|---|
| pData | nullptr |
| Stride | 0 |
| DepthStride | 0 |
| Uint32 Diligent::TextureSubResData::DepthStride |
For 3D textures, depth slice stride in bytes.