TextureSubResData struct
Describes data for one subresource.
Contents
Constructors, destructors, conversion operators
- TextureSubResData() noexcept
- Initializes the structure members with default values.
- TextureSubResData(const void* _pData, Uint32 _Stride, Uint32 _DepthStride = 0) noexcept
- Initializes the structure members to perform copy from the CPU memory.
- TextureSubResData(IBuffer* _pBuffer, Uint32 _SrcOffset, Uint32 _Stride, Uint32 _DepthStride = 0) noexcept
- Initializes the structure members to perform copy from the GPU buffer.
Public variables
- const void* pData
- Pointer to the subresource data in CPU memory. If provided, pSrcBuffer must be null.
- struct IBuffer* pSrcBuffer
- Pointer to the GPU buffer that contains subresource data. If provided, pData must be null.
- Uint32 SrcOffset
- When updating data from the buffer (pSrcBuffer is not null), offset from the beginning of the buffer to the data start.
- Uint32 Stride
- For 2D and 3D textures, row stride in bytes.
- Uint32 DepthStride
- For 3D textures, depth slice stride in bytes.
Function documentation
Diligent:: TextureSubResData:: TextureSubResData() noexcept
Initializes the structure members with default values.
Default values:
| Member | Default value |
|---|---|
| pData | nullptr |
| SrcOffset | 0 |
| Stride | 0 |
| DepthStride | 0 |
Variable documentation
Uint32 Diligent:: TextureSubResData:: DepthStride
For 3D textures, depth slice stride in bytes.