Szerkesztés

Megosztás a következőn keresztül:


ShaderEffect.RegisterPixelShaderSamplerProperty Method

Definition

Associates a dependency property with a shader sampler register.

Overloads

RegisterPixelShaderSamplerProperty(String, Type, Int32)

Associates a dependency property with a shader sampler register.

RegisterPixelShaderSamplerProperty(String, Type, Int32, SamplingMode)

Associates a dependency property with a shader sampler register and a SamplingMode.

RegisterPixelShaderSamplerProperty(String, Type, Int32)

Associates a dependency property with a shader sampler register.

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

Parameters

dpName
String

The name of the dependency property.

ownerType
Type

The type of the effect that has the dependency property.

samplerRegisterIndex
Int32

The index of the shader sampler associated with the dependency property.

Returns

A dependency property associated with the shader sampler specified by samplerRegisterIndex.

See also

Applies to

RegisterPixelShaderSamplerProperty(String, Type, Int32, SamplingMode)

Associates a dependency property with a shader sampler register and a 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

Parameters

dpName
String

The name of the dependency property.

ownerType
Type

The type of the effect that has the dependency property.

samplerRegisterIndex
Int32

The index of the shader sampler associated with the dependency property.

samplingMode
SamplingMode

The SamplingMode for the shader sampler.

Returns

A dependency property associated with the shader sampler specified by samplerRegisterIndex.

See also

Applies to