Share via


CD3D10_BUFFER_DESC struttura (d3d10.h)

Descrive una risorsa buffer .

Sintassi

struct CD3D10_BUFFER_DESC : D3D10_BUFFER_DESC {
  void CD3D10_BUFFER_DESC();
  void CD3D10_BUFFER_DESC(
    const D3D10_BUFFER_DESC & o
  );
  void CD3D10_BUFFER_DESC(
    UINT        byteWidth,
    UINT        bindFlags,
    D3D10_USAGE usage,
    UINT        cpuaccessFlags,
    UINT        miscFlags
  );
  void ~CD3D10_BUFFER_DESC();
};

Ereditarietà

La struttura CD3D10_BUFFER_DESC implementa D3D10_BUFFER_DESC .

Membri

void CD3D10_BUFFER_DESC()

void CD3D10_BUFFER_DESC( const D3D10_BUFFER_DESC & o)

void CD3D10_BUFFER_DESC( UINT byteWidth, UINT bindFlags, D3D10_USAGE usage, UINT cpuaccessFlags, UINT miscFlags)

void ~CD3D10_BUFFER_DESC()

Commenti

byteWidth Tipo: dimensioni UINT del buffer in byte.

bindFlags Tipo: UINT Identificare il modo in cui il buffer verrà associato alla pipeline. Le applicazioni possono essere contrassegnate logicamente insieme (vedere D3D10_BIND_FLAG) per indicare che il buffer può essere accessibile in modi diversi.

usage Tipo: D3D10_USAGE Identificare la modalità di lettura e scrittura del buffer. La frequenza di aggiornamento è un fattore chiave. Il valore più comune è in genere D3D10_USAGE_DEFAULT; vedere D3D10_USAGE per tutti i valori possibili.

cpuAccessFlags Tipo: flag di accesso alla CPU UINT (vedere D3D10_CPU_ACCESS_FLAG) o 0 se non è necessario alcun accesso alla CPU. Le applicazioni possono contrassegnarsi logicamente o insieme.

miscFlags Tipo: flag vari UINT (vedere D3D10_RESOURCE_MISC_FLAG) o 0 se inutilizzato. Le applicazioni possono contrassegnarsi logicamente o insieme.

Questa struttura viene usata da ID3D10Device::CreateBuffer per creare risorse del buffer.

Oltre a questa struttura, esiste anche una struttura derivata in D3D10.h (CD3D10_BUFFER_DESC) che si comporta come una classe ereditata per creare una descrizione del buffer.

Requisiti

   
Intestazione d3d10.h

Vedi anche

Strutture delle risorse