# 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)

# Syntax

// Setter
void SetName( const char * name ) const;

// Getter
spString GetName() const;

# SetName parameters

Type Name Min Max Description
const char * name New name of the object.

# GetName return value

Type: spString

# 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.

# Syntax

// Setter
void SetUnNormalizedCoordinates( bool value ) const;

// Getter
bool GetUnNormalizedCoordinates() const;

# SetUnNormalizedCoordinates parameters

Type Name Min Max Description
bool value The desired flag value.

# GetUnNormalizedCoordinates return value

Type: bool

# Methods details

# AddObserver

Adds a user-defined observer object to the interface, that will receive events from the interface. (Inherited from Object)

# Syntax

rid AddObserver( const spObserver & observer ) const;

# Parameters

Type Name Min Max Description
Observer observer Observer is the object that will receive events.

# Return value

Type: rid

# GetClass

Get the name of the ShaderParameterSamplerState class. (Inherited from Object)

# Syntax

spString GetClass() const;

# Parameters

GetClass takes no parameters.

# Return value

Type: spString

# IsA

Returns true if ShaderParameterSamplerState is a or is a descendant of the class named as the type parameter. (Inherited from Object)

# Syntax

bool IsA( const char * type ) const;

# Parameters

Type Name Min Max Description
const char * type Name of the class to check if ShaderParameterSamplerState is, or is a descendant of.

# Return value

Type: bool

# IsNull

Returns true if the ShaderParameterSamplerState object is invalid. (Inherited from Object)

# Syntax

bool IsNull() const;

# Parameters

IsNull takes no parameters.

# Return value

Type: bool

# IsSameObjectAs

Returns true if the ShaderParameterSamplerState object is valid. (Inherited from Object)

# Syntax

bool IsSameObjectAs( const spObject & object ) const;

# Parameters

Type Name Min Max Description
Object object Object to compare with.

# Return value

Type: bool

# NonNull

Returns true if the ShaderParameterSamplerState object is valid. (Inherited from Object)

# Syntax

bool NonNull() const;

# Parameters

NonNull takes no parameters.

# Return value

Type: bool

# PrintInfo

Prints the content/info of the ShaderParameterSamplerState object to the log. (Inherited from Object)

# Syntax

void PrintInfo() const;

# Parameters

PrintInfo takes no parameters.

# RemoveObserver

Removes a previously added observer object. (Inherited from Object)

# Syntax

void RemoveObserver( rid observerId ) const;

# Parameters

Type Name Min Max Description
rid observerId ObserverId is the id returned by AddObserver when the observer was added.

# 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)

# Syntax

static bool IsClassA( const char * type ) const;

# Parameters

Type Name Min Max Description
const char * type Name of the class to check if the class is, or is a descendant of.

# Return value

Type: bool

# 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)

# Syntax

static spShaderParameterSamplerState SafeCast( const spObject & object ) const;

# Parameters

Type Name Min Max Description
Object object Object to cast.

# Return value

Type: ShaderParameterSamplerState