Condividi tramite


Metodo ID3D10ShaderReflection::GetConstantBufferByIndex (d3d10shader.h)

Ottenere un buffer costante per indice.

Sintassi

ID3D10ShaderReflectionConstantBuffer * GetConstantBufferByIndex(
  [in] UINT Index
);

Parametri

[in] Index

Tipo: UINT

Indice in base zero.

Valore restituito

Tipo: ID3D10ShaderReflectionConstantBuffer*

Puntatore a un buffer costante (vedere l'interfaccia ID3D10ShaderReflectionConstantBuffer).

Commenti

Un buffer costante fornisce costanti scalari o costanti di trama a uno shader. Uno shader può usare uno o più buffer costanti. Per ottenere prestazioni ottimali, separare le costanti in buffer in base alla frequenza in cui vengono aggiornate.

Requisiti

Requisito Valore
Piattaforma di destinazione Windows
Intestazione d3d10shader.h

Vedi anche

Interfaccia ID3D10ShaderReflection