ID3D10ShaderReflectionConstantBuffer 介面 (d3d10shader.h)

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

方法

ID3D10ShaderReflectionConstantBuffer 介面具有這些方法。

 
ID3D10ShaderReflectionConstantBuffer::GetDesc

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

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

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

備註

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

規格需求

需求
目標平台 Windows
標頭 d3d10shader.h

另請參閱

著色器介面