METODE ID3D11ShaderReflection::GetConstantBufferByIndex (d3d11shader.h)
Dapatkan buffer konstanta menurut indeks.
Sintaks
ID3D11ShaderReflectionConstantBuffer * GetConstantBufferByIndex(
[in] UINT Index
);
Parameter
[in] Index
Jenis: UINT
Indeks berbasis nol.
Mengembalikan nilai
Jenis: ID3D11ShaderReflectionConstantBuffer*
Penunjuk ke buffer konstanta (lihat ID3D11ShaderReflectionConstantBuffer Interface).
Keterangan
Buffer konstanta memasok konstanta skalar atau konstanta tekstur ke shader. Shader dapat menggunakan satu atau beberapa buffer konstanta. Untuk performa terbaik, pisahkan konstanta menjadi buffer berdasarkan frekuensi yang diperbarui.
Antarmuka metode ini dihosting di dll D3DCompiler_xx.dll di luar kotak.
Persyaratan
Persyaratan | Nilai |
---|---|
Target Platform | Windows |
Header | d3d11shader.h |
Pustaka | D3DCompiler.lib |
DLL | D3DCompiler_47.dll |