Share via


ID3D11ShaderReflectionConstantBuffer 介面 (d3d11shader.h)

這個著色器反映介面可讓您存取常數緩衝區。

方法

ID3D11ShaderReflectionConstantBuffer介面具有這些方法。

 
ID3D11ShaderReflectionConstantBuffer::GetDesc

取得常數緩衝區描述。 (ID3D11ShaderReflectionConstantBuffer.GetDesc)
ID3D11ShaderReflectionConstantBuffer::GetVariableByIndex

ID3D11ShaderReflectionConstantBuffer::GetVariableByIndex (d3d11shader.h) 方法會依索引取得著色器反映變數。
ID3D11ShaderReflectionConstantBuffer::GetVariableByName

依名稱取得著色器反映變數。 (ID3D11ShaderReflectionConstantBuffer.GetVariableByName)

備註

若要建立常數緩衝區介面,請呼叫 ID3D11ShaderReflection::GetConstantBufferByIndexID3D11ShaderReflection::GetConstantBufferByName。 這不是 COM 介面,因此當您完成此作業時,您不需要擔心參考計數或釋出介面。

需求

   
最低支援的用戶端 Windows 7 [傳統型應用程式 |UWP 應用程式]
最低支援的伺服器 Windows Server 2008 R2 [傳統型應用程式 |UWP 應用程式]
目標平台 Windows
標頭 d3d11shader.h

另請參閱

著色器介面