Metodo ID3D10Effect::GetConstantBufferByName (d3d10effect.h)

Ottenere un buffer costante in base al nome.

Sintassi

ID3D10EffectConstantBuffer * GetConstantBufferByName(
  [in] LPCSTR Name
);

Parametri

[in] Name

Tipo: LPCSTR

Nome del buffer costante.

Valore restituito

Tipo: ID3D10EffectConstantBuffer*

Puntatore al buffer costante indicato dal nome. Vedere ID3D10EffectConstantBuffer.

Commenti

Un effetto che contiene una variabile che verrà letti/scritti da un'applicazione richiede almeno un buffer costante. Per ottenere prestazioni ottimali, un effetto deve organizzare le variabili in uno o più buffer costanti in base alla frequenza di aggiornamento.

Requisiti

Requisito Valore
Piattaforma di destinazione Windows
Intestazione d3d10effect.h

Vedi anche

Interfaccia ID3D10Effect