MSamplerStateDesc Class Reference

#include <MStateManager.h>

Class Description

Public Member Functions

 MSamplerStateDesc ()
 Constructor, builds a default sampler state.
 
 ~MSamplerStateDesc ()
 Destructor.
 
void setDefaults ()
 Set all values for the sampler state to their default values.
 
 MSamplerStateDesc (const MSamplerStateDesc &rDesc)
 NO SCRIPT SUPPORT. More...
 
MSamplerStateDescoperator= (const MSamplerStateDesc &rDesc)
 NO SCRIPT SUPPORT. More...
 

Static Public Member Functions

static const char * className ()
 Returns the name of this class. More...
 

Public Attributes

MSamplerState::TextureFilter filter
 Selects how to filter a texture sample, default kMinMagMipPoint. More...
 
MStateManager::CompareMode comparisonFn
 Selects the filter comparison function, default kCompareAlways. More...
 
MSamplerState::TextureAddress addressU
 Select the u coordinate addressing mode, default kTexWrap. More...
 
MSamplerState::TextureAddress addressV
 Select the v coordinate addressing mode, default kTexWrap. More...
 
MSamplerState::TextureAddress addressW
 Select the w coordinate addressing mode, default kTexWrap. More...
 
float borderColor [4]
 Set border color used for accesses beyond texture 0..1, default(0,0,0,0). More...
 
float mipLODBias
 Set a float bias to be added to the computed mip LOD level, default 0. More...
 
unsigned int minLOD
 Set minimum mip LOD level accessed, default 0. More...
 
unsigned int maxLOD
 Set maximum mip LOD level accessed, default 16. More...
 
unsigned int maxAnisotropy
 Set the maximum anisotropy permitted for anisotropic filters. More...
 
unsigned int coordCount
 Set the number of texture coordinates, default 2. More...
 
unsigned int elementIndex
 When using texture arrays, selects array element, default 0. More...
 

Constructor & Destructor Documentation

NO SCRIPT SUPPORT.

Copy constructor.

Parameters
[in]rDescThe descriptor to copy

Member Function Documentation

MSamplerStateDesc & operator= ( const MSamplerStateDesc rDesc)

NO SCRIPT SUPPORT.

Assignment operator.

Parameters
[in]rDescThe descriptor to copy
Returns
Reference to this descriptor
const char * className ( )
static

Returns the name of this class.

Returns
Name of this class.

Member Data Documentation

Selects the filter comparison function, default kCompareAlways.

Select the u coordinate addressing mode, default kTexWrap.

+ Examples:

Select the v coordinate addressing mode, default kTexWrap.

+ Examples:

Select the w coordinate addressing mode, default kTexWrap.

+ Examples:
float borderColor[4]

Set border color used for accesses beyond texture 0..1, default(0,0,0,0).

float mipLODBias

Set a float bias to be added to the computed mip LOD level, default 0.

unsigned int minLOD

Set minimum mip LOD level accessed, default 0.

+ Examples:
unsigned int maxLOD

Set maximum mip LOD level accessed, default 16.

+ Examples:
unsigned int maxAnisotropy

Set the maximum anisotropy permitted for anisotropic filters.

The range is 1..16, default 1.

+ Examples:
unsigned int coordCount

Set the number of texture coordinates, default 2.

unsigned int elementIndex

When using texture arrays, selects array element, default 0.


The documentation for this class was generated from the following files:
  • MStateManager.h
  • MStateManager.cpp