Bagikan melalui


METODE ID3D11FunctionReflection::GetConstantBufferByName (d3d11shader.h)

Mendapatkan buffer konstanta berdasarkan nama untuk fungsi.

Sintaks

ID3D11ShaderReflectionConstantBuffer * GetConstantBufferByName(
  [in] LPCSTR Name
);

Parameter

[in] Name

Jenis: LPCSTR

Nama konstanta-buffer.

Nilai kembali

Jenis: ID3D11ShaderReflectionConstantBuffer*

Penunjuk ke antarmuka ID3D11ShaderReflectionConstantBuffer yang mewakili buffer konstanta.

Keterangan

Buffer konstanta memasok konstanta skalar atau konstanta tekstur ke shader. Shader dapat menggunakan satu atau beberapa buffer konstanta. Untuk performa terbaik, pisahkan konstanta ke dalam buffer berdasarkan frekuensi mereka diperbarui.

Persyaratan

Persyaratan Nilai
Target Platform Windows
Header d3d11shader.h
Pustaka D3DCompiler.lib
DLL D3DCompiler_47.dll

Lihat juga

ID3D11FunctionReflection