Descriptor for a complete sampler state.
This class encapsulates a complete Sampler state.
#include <MStateManager.h>
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. |
|
| MSamplerStateDesc & | operator= (const MSamplerStateDesc &rDesc) |
| NO SCRIPT SUPPORT. |
|
Static Public Member Functions |
|
| static const char * | className () |
| Returns the name of this class. |
|
Public Attributes |
|
| MSamplerState::TextureFilter | filter |
| Selects how to filter a texture sample,
default kMinMagMipPoint. |
|
| MStateManager::CompareMode | comparisonFn |
| Selects the filter comparison function,
default kCompareAlways. |
|
| MSamplerState::TextureAddress | addressU |
| Select the u coordinate addressing mode,
default kTexWrap. |
|
| MSamplerState::TextureAddress | addressV |
| Select the v coordinate addressing mode,
default kTexWrap. |
|
| MSamplerState::TextureAddress | addressW |
| Select the w coordinate addressing mode,
default kTexWrap. |
|
| 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. |
|
| unsigned int | maxLOD |
| Set maximum mip LOD level accessed, default
16. |
|
| unsigned int | maxAnisotropy |
| Set the maximum anisotropy permitted for
anisotropic filters. |
|
| unsigned int | coordCount |
| Set the number of texture coordinates,
default 2. |
|
| unsigned int | elementIndex |
| When using texture arrays, selects array
element, default 0. |
|
| MSamplerStateDesc | ( | const MSamplerStateDesc & | rDesc | ) |
NO SCRIPT SUPPORT.
Copy constructor.
| [in] | rDesc | The descriptor to copy |
| MSamplerStateDesc & operator= | ( | const MSamplerStateDesc & | rDesc | ) |
NO SCRIPT SUPPORT.
Assignment operator.
| [in] | rDesc | The descriptor to copy |
| const char * className | ( | ) | [static] |
Selects how to filter a texture sample, default kMinMagMipPoint.
Selects the filter comparison function, default kCompareAlways.
Select the u coordinate addressing mode, default kTexWrap.
Select the v coordinate addressing mode, default kTexWrap.
Select the w coordinate addressing mode, default kTexWrap.
| 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.
| unsigned int maxLOD |
Set maximum mip LOD level accessed, default 16.
| unsigned int maxAnisotropy |
Set the maximum anisotropy permitted for anisotropic filters.
The range is 1..16, default 1.
| unsigned int coordCount |
Set the number of texture coordinates, default 2.
| unsigned int elementIndex |
When using texture arrays, selects array element, default 0.