ID3D12ShaderReflection::GetConstantBufferByName metode (d3d12shader.h)

Mendapatkan buffer konstanta berdasarkan nama.

Sintaks

ID3D12ShaderReflectionConstantBuffer * GetConstantBufferByName(
  [in] LPCSTR Name
);

Parameter

[in] Name

Jenis: LPCSTR

Nama konstanta-buffer.

Nilai kembali

Jenis: ID3D12ShaderReflectionConstantBuffer*

Penunjuk ke buffer konstanta (lihat ID3D12ShaderReflectionConstantBuffer 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 d3d12shader.h

Lihat juga

ID3D12ShaderReflection