Metodo ID3D12FunctionReflection::GetConstantBufferByName (d3d12shader.h)

Ottiene un buffer costante per nome per una funzione.

Sintassi

ID3D12ShaderReflectionConstantBuffer * GetConstantBufferByName(
  [in] LPCSTR Name
);

Parametri

[in] Name

Tipo: LPCSTR

Nome del buffer costante.

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 prestazioni ottimali, separare le costanti nei buffer in base alla frequenza che vengono aggiornate.

Requisiti

Requisito Valore
Piattaforma di destinazione Windows
Intestazione d3d12shader.h

Vedi anche

ID3D12FunctionReflection