Metodo ID3D12FunctionReflection::GetConstantBufferByIndex (d3d12shader.h)

Ottiene un buffer costante per indice per una funzione.

Sintassi

ID3D12ShaderReflectionConstantBuffer * GetConstantBufferByIndex(
  [in] UINT BufferIndex
);

Parametri

[in] BufferIndex

Tipo: UINT

Indice in base zero.

Valore restituito

Tipo: ID3D12ShaderReflectionConstantBuffer*

Puntatore a un'interfaccia ID3D12ShaderReflectionConstantBuffer che rappresenta il buffer costante.

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 d3d12shader.h

Vedi anche

ID3D12FunctionReflection