ShaderEffect.RegisterPixelShaderSamplerProperty 方法

定义

将依赖项属性与着色器的采样器寄存器相关联。

重载

RegisterPixelShaderSamplerProperty(String, Type, Int32)

将依赖项属性与着色器的采样器寄存器相关联。

RegisterPixelShaderSamplerProperty(String, Type, Int32, SamplingMode)

将依赖项属性与着色器的采样器寄存器以及 SamplingMode 相关联。

RegisterPixelShaderSamplerProperty(String, Type, Int32)

将依赖项属性与着色器的采样器寄存器相关联。

protected:
 static System::Windows::DependencyProperty ^ RegisterPixelShaderSamplerProperty(System::String ^ dpName, Type ^ ownerType, int samplerRegisterIndex);
protected static System.Windows.DependencyProperty RegisterPixelShaderSamplerProperty (string dpName, Type ownerType, int samplerRegisterIndex);
static member RegisterPixelShaderSamplerProperty : string * Type * int -> System.Windows.DependencyProperty
Protected Shared Function RegisterPixelShaderSamplerProperty (dpName As String, ownerType As Type, samplerRegisterIndex As Integer) As DependencyProperty

参数

dpName
String

依赖项属性的名称。

ownerType
Type

具有该依赖项属性的效果的类型。

samplerRegisterIndex
Int32

与依赖项属性关联的着色器采样器的索引。

返回

DependencyProperty

samplerRegisterIndex 指定的着色器采样器关联的依赖项属性。

另请参阅

适用于

RegisterPixelShaderSamplerProperty(String, Type, Int32, SamplingMode)

将依赖项属性与着色器的采样器寄存器以及 SamplingMode 相关联。

protected:
 static System::Windows::DependencyProperty ^ RegisterPixelShaderSamplerProperty(System::String ^ dpName, Type ^ ownerType, int samplerRegisterIndex, System::Windows::Media::Effects::SamplingMode samplingMode);
protected static System.Windows.DependencyProperty RegisterPixelShaderSamplerProperty (string dpName, Type ownerType, int samplerRegisterIndex, System.Windows.Media.Effects.SamplingMode samplingMode);
static member RegisterPixelShaderSamplerProperty : string * Type * int * System.Windows.Media.Effects.SamplingMode -> System.Windows.DependencyProperty
Protected Shared Function RegisterPixelShaderSamplerProperty (dpName As String, ownerType As Type, samplerRegisterIndex As Integer, samplingMode As SamplingMode) As DependencyProperty

参数

dpName
String

依赖项属性的名称。

ownerType
Type

具有该依赖项属性的效果的类型。

samplerRegisterIndex
Int32

与依赖项属性关联的着色器采样器的索引。

samplingMode
SamplingMode

着色器采样器的 SamplingMode

返回

DependencyProperty

samplerRegisterIndex 指定的着色器采样器关联的依赖项属性。

另请参阅

适用于