Share via


Metodo ID3D10Effect::GetConstantBufferByIndex (d3d10effect.h)

Ottenere un buffer costante per indice.

Sintassi

ID3D10EffectConstantBuffer * GetConstantBufferByIndex(
  [in] UINT Index
);

Parametri

[in] Index

Tipo: UINT

Indice a base zero.

Valore restituito

Tipo: ID3D10EffectConstantBuffer*

Puntatore a un'interfaccia ID3D10EffectConstantBuffer.

Commenti

Un effetto che contiene una variabile che verrà letta/scritta 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