ID3D11ShaderReflection 介面 (d3d11shader.h)

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

繼承

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

方法

ID3D11ShaderReflection 介面具有這些方法。

 
ID3D11ShaderReflection::GetBitwiseInstructionCount

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

ID3D11ShaderReflection::GetConstantBufferByIndex (d3d11shader.h) 方法會依索引取得常數緩衝區。
ID3D11ShaderReflection::GetConstantBufferByName

依名稱取得常數緩衝區。 (ID3D11ShaderReflection.GetConstantBufferByName)
ID3D11ShaderReflection::GetConversionInstructionCount

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

取得著色器描述。 (ID3D11ShaderReflection.GetDesc)
ID3D11ShaderReflection::GetGSInputPrimitive

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

取得著色器的輸入參數描述。 (ID3D11ShaderReflection.GetInputParameterDesc)
ID3D11ShaderReflection::GetMinFeatureLevel

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

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

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

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

取得著色器的輸出參數描述。 (ID3D11ShaderReflection.GetOutputParameterDesc)
ID3D11ShaderReflection::GetPatchConstantParameterDesc

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

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

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

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

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

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

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

備註

您可以使用 D3DReflect 來擷取著色器的 ID3D11ShaderReflection 介面。 下列程式代碼說明從著色器擷取 ID3D11ShaderReflection

pd3dDevice->CreatePixelShader( pPixelShaderBuffer->GetBufferPointer(),
                               pPixelShaderBuffer->GetBufferSize(), g_pPSClassLinkage, &g_pPixelShader );

ID3D11ShaderReflection* pReflector = NULL; 
D3DReflect( pPixelShaderBuffer->GetBufferPointer(), pPixelShaderBuffer->GetBufferSize(), 
            IID_ID3D11ShaderReflection, (void**) &pReflector);

規格需求

需求
最低支援的用戶端 Windows 7 [傳統型應用程式 |UWP 應用程式]
最低支援的伺服器 Windows Server 2008 R2 [傳統型應用程式 |UWP 應用程式]
目標平台 Windows
標頭 d3d11shader.h

另請參閱

IUnknown

著色器介面