ShaderEffect.RegisterPixelShaderSamplerProperty Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應