Antarmuka ID3D11ShaderReflectionConstantBuffer (d3d11shader.h)

Antarmuka refleksi shader ini menyediakan akses ke buffer konstanta.

Metode

Antarmuka ID3D11ShaderReflectionConstantBuffer memiliki metode ini.

 
ID3D11ShaderReflectionConstantBuffer::GetDesc

Dapatkan deskripsi buffer konstan. (ID3D11ShaderReflectionConstantBuffer.GetDesc)
ID3D11ShaderReflectionConstantBuffer::GetVariableByIndex

Metode ID3D11ShaderReflectionConstantBuffer::GetVariableByIndex (d3d11shader.h) mendapatkan variabel refleksi shader menurut indeks.
ID3D11ShaderReflectionConstantBuffer::GetVariableByName

Dapatkan variabel refleksi shader berdasarkan nama. (ID3D11ShaderReflectionConstantBuffer.GetVariableByName)

Keterangan

Untuk membuat antarmuka buffer konstanta, panggil ID3D11ShaderReflection::GetConstantBufferByIndex atau ID3D11ShaderReflection::GetConstantBufferByName. Ini bukan antarmuka COM, jadi Anda tidak perlu khawatir tentang jumlah referensi atau merilis antarmuka saat Anda selesai dengannya.

Persyaratan

   
Klien minimum yang didukung Windows 7 [aplikasi desktop | Aplikasi UWP]
Server minimum yang didukung Windows Server 2008 R2 [aplikasi desktop | Aplikasi UWP]
Target Platform Windows
Header d3d11shader.h

Lihat juga

Antarmuka Shader