Metodo ID3D10ShaderReflection::GetConstantBufferByName (d3d10shader.h)
Ottenere un buffer costante in base al nome.
Sintassi
ID3D10ShaderReflectionConstantBuffer * GetConstantBufferByName(
[in] LPCSTR Name
);
Parametri
[in] Name
Tipo: LPCSTR
Nome del buffer costante.
Valore restituito
Tipo: ID3D10ShaderReflectionConstantBuffer*
Puntatore a un buffer costante (vedere ID3D10ShaderReflectionConstantBuffer Interface).
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 | d3d10shader.h |