Describes the initial data to store in the texture. More...
#include <Texture.h>
Public Attributes | |
TextureSubResData * | pSubResources = nullptr |
Uint32 | NumSubresources = 0 |
The number of elements in pSubResources array. | |
struct IDeviceContext * | pContext = nullptr |
Defines which device context will be used to initialize the texture. | |
Describes the initial data to store in the texture.
Uint32 Diligent::TextureData::NumSubresources = 0 |
The number of elements in pSubResources
array.
NumSubresources
must exactly match the number of subresources in the texture. Otherwise an error occurs.
struct IDeviceContext* Diligent::TextureData::pContext = nullptr |
Defines which device context will be used to initialize the texture.
The texture will be in write state after the initialization. If an application uses the texture in another context afterwards, it must synchronize the access to the texture using fence. When null is provided, the first context enabled by ImmediateContextMask will be used.
TextureSubResData* Diligent::TextureData::pSubResources = nullptr |
A pointer to the array of the TextureSubResData elements containing information about each subresource.