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

Describes the buffer initial data. More...

#include <Buffer.h>

Public Attributes

const void * pData = nullptr
 Pointer to the data.
 
Uint64 DataSize = 0
 Data size, in bytes.
 
struct IDeviceContextpContext = nullptr
 Defines which device context will be used to initialize the buffer.
 

Detailed Description

Describes the buffer initial data.

Member Data Documentation

◆ pContext

struct IDeviceContext* Diligent::BufferData::pContext = nullptr

Defines which device context will be used to initialize the buffer.

The buffer will be in write state after the initialization. If an application uses the buffer in another context afterwards, it must synchronize the access to the buffer using fence. When null is provided, the first context enabled by ImmediateContextMask will be used.