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
Индекс образца построителя текстуры, связанного со свойством зависимостей.
Возвращаемое значение
Свойство зависимостей, связанное с образцом построителя текстуры, указанного в параметре 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 для образца построителя текстуры.
Возвращаемое значение
Свойство зависимостей, связанное с образцом построителя текстуры, указанного в параметре samplerRegisterIndex
.