Bagikan melalui


METODE ID3D11FunctionReflection::GetConstantBufferByIndex (d3d11shader.h)

Mendapatkan buffer konstan berdasarkan indeks untuk fungsi.

Sintaks

ID3D11ShaderReflectionConstantBuffer * GetConstantBufferByIndex(
  [in] UINT BufferIndex
);

Parameter

[in] BufferIndex

Jenis: UINT

Indeks berbasis nol.

Mengembalikan nilai

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 menjadi buffer berdasarkan frekuensi yang diperbarui.

Persyaratan

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

Lihat juga

ID3D11FunctionReflection