共用方式為


ID3D12ShaderReflectionConstantBuffer::GetVariableByIndex 方法 (d3d12shader.h)

依索引取得著色器反映變數。

語法

ID3D12ShaderReflectionVariable * GetVariableByIndex(
  [in] UINT Index
);

參數

[in] Index

類型: UINT

以零起始的索引。

傳回值

類型: ID3D12ShaderReflectionVariable*

著色器反映變數介面的指標 (請參閱 ID3D12ShaderReflectionVariable 介面) 。

備註

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

需求

   
目標平台 Windows
標頭 d3d12shader.h

另請參閱

ID3D12ShaderReflectionConstantBuffer