共用方式為


ID3D12ShaderReflection::GetPatchConstantParameterDesc 方法 (d3d12shader.h)

取得著色器的修補程式常數參數描述。

語法

HRESULT GetPatchConstantParameterDesc(
  [in]  UINT                           ParameterIndex,
  [out] D3D12_SIGNATURE_PARAMETER_DESC *pDesc
);

參數

[in] ParameterIndex

類型: UINT

以零起始的參數索引。

[out] pDesc

類型: D3D12_SIGNATURE_PARAMETER_DESC*

著色器輸入簽章描述的指標。 請參閱 D3D12_SIGNATURE_PARAMETER_DESC

傳回值

類型: HRESULT

傳回其中一個 Direct3D 12 傳回碼

備註

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

規格需求

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

另請參閱

ID3D12ShaderReflection