Diligent Engine
 
Loading...
Searching...
No Matches
Diligent::TextureData Struct Reference

Describes the initial data to store in the texture. More...

#include <Texture.h>

Public Attributes

TextureSubResDatapSubResources = nullptr
 
Uint32 NumSubresources = 0
 The number of elements in pSubResources array.
 
struct IDeviceContextpContext = nullptr
 Defines which device context will be used to initialize the texture.
 

Detailed Description

Describes the initial data to store in the texture.

Member Data Documentation

◆ NumSubresources

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.

◆ pContext

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.

◆ pSubResources

TextureSubResData* Diligent::TextureData::pSubResources = nullptr

A pointer to the array of the TextureSubResData elements containing information about each subresource.