# class
ShaderParameterSamplerState
ShaderParameterSamplerState defines a named sampler state that override default sampler state and can be shared between multiple spShaderParameterSampler's.
# Properties
Property | Description |
---|---|
AddressU | The addressing mode for U coordinate outside of [0,1) |
AddressV | The addressing mode for V coordinate outside of [0,1) |
AddressW | The addressing mode for W coordinate outside of [0,1) |
MagFilter | The magnification filter to apply to texture lookups. |
MinFilter | The minification filter to apply to texture lookups. |
Name | The name of the ShaderParameterSamplerState object. (Inherited from Object) |
UnNormalizedCoordinates | The flag controls weather texture coordinates are normalized or not. If set to true the allowed coordinate range is zero to image. If set to false range is zero to one. Is false by default. |
# Methods
Method | Description |
---|---|
AddObserver | Adds a user-defined observer object to the interface, that will receive events from the interface. (Inherited from Object) |
GetClass | Get the name of the ShaderParameterSamplerState class. (Inherited from Object) |
IsA | Returns true if ShaderParameterSamplerState is a or is a descendant of the class named as the type parameter. (Inherited from Object) |
IsNull | Returns true if the ShaderParameterSamplerState object is invalid. (Inherited from Object) |
IsSameObjectAs | Returns true if the ShaderParameterSamplerState object is valid. (Inherited from Object) |
NonNull | Returns true if the ShaderParameterSamplerState object is valid. (Inherited from Object) |
PrintInfo | Prints the content/info of the ShaderParameterSamplerState object to the log. (Inherited from Object) |
RemoveObserver | Removes a previously added observer object. (Inherited from Object) |
# Static methods
Method | Description |
---|---|
IsClassA | Returns true if the class is a or is a descendant of the class named as the type parameter. (Inherited from Object) |
SafeCast | SafeCast makes sure the input object is of a class that can be cast into spShaderParameterSamplerState, and if this is the case, returns the object cast into spShaderParameterSamplerState. (Inherited from Object) |
# Properties details
# AddressU
The addressing mode for U coordinate outside of [0,1)
# Syntax
// Setter
void SetAddressU( Simplygon::ESamplerAddressMode value ) const;
// Getter
Simplygon::ESamplerAddressMode GetAddressU() const;
# SetAddressU parameters
Type | Name | Min | Max | Description |
---|---|---|---|---|
ESamplerAddressMode | value | The desired addressing mode for U coordinate. |
# GetAddressU return value
Type: ESamplerAddressMode
Key | Value | Comment |
---|---|---|
Repeat | 0 | Repeat wrap mode. |
MirrorRepeat | 1 | Repeat wrap mode with mirroring. |
ClampToBorder | 2 | Clamp to border wrap mode will be used. |
ClampToEdge | 3 | Clamp to edge wrap mode will be used. |
# AddressV
The addressing mode for V coordinate outside of [0,1)
# Syntax
// Setter
void SetAddressV( Simplygon::ESamplerAddressMode value ) const;
// Getter
Simplygon::ESamplerAddressMode GetAddressV() const;
# SetAddressV parameters
Type | Name | Min | Max | Description |
---|---|---|---|---|
ESamplerAddressMode | value | The desired addressing mode for V coordinate. |
# GetAddressV return value
Type: ESamplerAddressMode
Key | Value | Comment |
---|---|---|
Repeat | 0 | Repeat wrap mode. |
MirrorRepeat | 1 | Repeat wrap mode with mirroring. |
ClampToBorder | 2 | Clamp to border wrap mode will be used. |
ClampToEdge | 3 | Clamp to edge wrap mode will be used. |
# AddressW
The addressing mode for W coordinate outside of [0,1)
# Syntax
// Setter
void SetAddressW( Simplygon::ESamplerAddressMode value ) const;
// Getter
Simplygon::ESamplerAddressMode GetAddressW() const;
# SetAddressW parameters
Type | Name | Min | Max | Description |
---|---|---|---|---|
ESamplerAddressMode | value | The desired addressing mode for W coordinate. |
# GetAddressW return value
Type: ESamplerAddressMode
Key | Value | Comment |
---|---|---|
Repeat | 0 | Repeat wrap mode. |
MirrorRepeat | 1 | Repeat wrap mode with mirroring. |
ClampToBorder | 2 | Clamp to border wrap mode will be used. |
ClampToEdge | 3 | Clamp to edge wrap mode will be used. |
# MagFilter
The magnification filter to apply to texture lookups.
# Syntax
// Setter
void SetMagFilter( Simplygon::ESamplerFilter value ) const;
// Getter
Simplygon::ESamplerFilter GetMagFilter() const;
# SetMagFilter parameters
Type | Name | Min | Max | Description |
---|---|---|---|---|
ESamplerFilter | value | The desired magnification value. |
# GetMagFilter return value
Type: ESamplerFilter
Key | Value | Comment |
---|---|---|
Nearest | 0 | Automatic detection. |
Linear | 1 | Manual detection. |
# MinFilter
The minification filter to apply to texture lookups.
# Syntax
// Setter
void SetMinFilter( Simplygon::ESamplerFilter value ) const;
// Getter
Simplygon::ESamplerFilter GetMinFilter() const;
# SetMinFilter parameters
Type | Name | Min | Max | Description |
---|---|---|---|---|
ESamplerFilter | value | The desired magnification value. |
# GetMinFilter return value
Type: ESamplerFilter
Key | Value | Comment |
---|---|---|
Nearest | 0 | Automatic detection. |
Linear | 1 | Manual detection. |
# Name
The name of the ShaderParameterSamplerState object. (Inherited from Object)
# UnNormalizedCoordinates
The flag controls weather texture coordinates are normalized or not. If set to true the allowed coordinate range is zero to image. If set to false range is zero to one. Is false by default.
# Methods details
# AddObserver
Adds a user-defined observer object to the interface, that will receive events from the interface. (Inherited from Object)
# GetClass
Get the name of the ShaderParameterSamplerState class. (Inherited from Object)
# IsA
Returns true if ShaderParameterSamplerState is a or is a descendant of the class named as the type parameter. (Inherited from Object)
# IsNull
Returns true if the ShaderParameterSamplerState object is invalid. (Inherited from Object)
# IsSameObjectAs
Returns true if the ShaderParameterSamplerState object is valid. (Inherited from Object)
# NonNull
Returns true if the ShaderParameterSamplerState object is valid. (Inherited from Object)
# PrintInfo
Prints the content/info of the ShaderParameterSamplerState object to the log. (Inherited from Object)
# RemoveObserver
Removes a previously added observer object. (Inherited from Object)
# Static methods details
# IsClassA
Returns true if the class is a or is a descendant of the class named as the type parameter. (Inherited from Object)
# SafeCast
SafeCast makes sure the input object is of a class that can be cast into spShaderParameterSamplerState, and if this is the case, returns the object cast into spShaderParameterSamplerState. (Inherited from Object)