Bagikan melalui


METODE ID3D12ShaderReflection::GetConstantBufferByIndex (d3d12shader.h)

Mendapatkan buffer konstan berdasarkan indeks.

Sintaks

ID3D12ShaderReflectionConstantBuffer * GetConstantBufferByIndex(
  [in] UINT Index
);

Parameter

[in] Index

Jenis: UINT

Indeks berbasis nol.

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

   
Target Platform Windows
Header d3d12shader.h

Lihat juga

ID3D12ShaderReflection