共用方式為


ID3D11ShaderReflectionConstantBuffer::GetDesc 方法 (d3d11shader.h)

取得常數緩衝區描述。

語法

HRESULT GetDesc(
  D3D11_SHADER_BUFFER_DESC *pDesc
);

參數

pDesc

類型: D3D11_SHADER_BUFFER_DESC*

D3D11_SHADER_BUFFER_DESC指標,表示著色器緩衝區描述。

傳回值

類型: HRESULT

傳回下列其中一個 Direct3D 11 傳回碼

備註

這個方法的介面裝載于現用 DLL D3DCompiler_xx.dll。

需求

   
目標平台 Windows
標頭 d3d11shader.h
程式庫 D3DCompiler.lib
Dll D3DCompiler_47.dll

另請參閱

ID3D11ShaderReflectionConstantBuffer 介面