Catatan
Akses ke halaman ini memerlukan otorisasi. Anda dapat mencoba masuk atau mengubah direktori.
Akses ke halaman ini memerlukan otorisasi. Anda dapat mencoba mengubah direktori.
Antarmuka refleksi shader ini menyediakan akses ke buffer konstanta.
Metode
Antarmuka ID3D10ShaderReflectionConstantBuffer memiliki metode ini.
ID3D10ShaderReflectionConstantBuffer::GetDesc Dapatkan deskripsi buffer konstan. (ID3D10ShaderReflectionConstantBuffer.GetDesc) |
ID3D10ShaderReflectionConstantBuffer::GetVariableByIndex Metode ID3D10ShaderReflectionConstantBuffer::GetVariableByIndex (d3d10shader.h) mendapatkan variabel refleksi shader menurut indeks. |
ID3D10ShaderReflectionConstantBuffer::GetVariableByName Dapatkan variabel refleksi shader berdasarkan nama. (ID3D10ShaderReflectionConstantBuffer.GetVariableByName) |
Keterangan
Untuk membuat antarmuka buffer konstanta, panggil ID3D10ShaderReflection::GetConstantBufferByIndex atau ID3D10ShaderReflection::GetConstantBufferByName. Ini bukan antarmuka COM; oleh karena itu, Anda tidak perlu khawatir tentang jumlah referensi atau melepaskan antarmuka ketika Anda selesai dengannya.
Persyaratan
Persyaratan | Nilai |
---|---|
Target Platform | Windows |
Header | d3d10shader.h |