ID3D12ShaderReflection 介面 (d3d12shader.h)

著色器反映介面會存取著色器資訊。

繼承

ID3D12ShaderReflection 介面繼承自 IUnknown 介面。 ID3D12ShaderReflection 也有下列類型的成員:

方法

ID3D12ShaderReflection 介面具有這些方法。

 
ID3D12ShaderReflection::GetBitwiseInstructionCount

取得位指令的數目。 (ID3D12ShaderReflection.GetBitwiseInstructionCount)
ID3D12ShaderReflection::GetConstantBufferByIndex

依索引取得常數緩衝區。
ID3D12ShaderReflection::GetConstantBufferByName

依名稱取得常數緩衝區。
ID3D12ShaderReflection::GetConversionInstructionCount

取得轉換指令的數目。 (ID3D12ShaderReflection.GetConversionInstructionCount)
ID3D12ShaderReflection::GetDesc

取得著色器描述。
ID3D12ShaderReflection::GetGSInputPrimitive

取得 geometry-shader input-primitive 描述。 (ID3D12ShaderReflection.GetGSInputPrimitive)
ID3D12ShaderReflection::GetInputParameterDesc

取得著色器的輸入參數描述。
ID3D12ShaderReflection::GetMinFeatureLevel

取得最小功能層級。 (ID3D12ShaderReflection.GetMinFeatureLevel)
ID3D12ShaderReflection::GetMovcInstructionCount

取得Movc指令的數目。 (ID3D12ShaderReflection.GetMovcInstructionCount)
ID3D12ShaderReflection::GetMovInstructionCount

取得Mov指令的數目。 (ID3D12ShaderReflection.GetMovInstructionCount)
ID3D12ShaderReflection::GetNumInterfaceSlots

取得著色器中的介面位置數目。 (ID3D12ShaderReflection.GetNumInterfaceSlots)
ID3D12ShaderReflection::GetOutputParameterDesc

取得著色器的輸出參數描述。
ID3D12ShaderReflection::GetPatchConstantParameterDesc

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

取得旗標群組,指出著色器的需求。 (ID3D12ShaderReflection.GetRequiresFlags)
ID3D12ShaderReflection::GetResourceBindingDesc

取得資源如何系結至著色器的描述。 (ID3D12ShaderReflection.GetResourceBindingDesc)
ID3D12ShaderReflection::GetResourceBindingDescByName

取得資源如何系結至著色器的描述。 (ID3D12ShaderReflection.GetResourceBindingDescByName)
ID3D12ShaderReflection::GetThreadGroupSize

擷取著色器線程群組方格 X、Y 和 Z 維度的大小,以單位為單位。 (ID3D12ShaderReflection.GetThreadGroupSize)
ID3D12ShaderReflection::GetVariableByName

依名稱取得變數。 (ID3D12ShaderReflection.GetVariableByName)
ID3D12ShaderReflection::IsSampleFrequencyShader

指出著色器是否為取樣頻率著色器。 (ID3D12ShaderReflection.IsSampleFrequencyShader)

備註

您可以使用 D3DReflect 來擷取著色器的 ID3D12ShaderReflection 介面。

注意

此函式支援 d3dcompiler.dll 著色器模型 2 - 5.1。 如需著色器模型 6 著色器反映,請參閱 dxcompiler.dll 和使用 dxc.exe 和 dxcompiler.dll

規格需求

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

另請參閱

IUnknown

著色器介面