#include <MStateManager.h>
Descriptor for a complete sampler state.
This class encapsulates a complete Sampler state.
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... | |
MSamplerStateDesc & | operator= (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... | |
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 |
|
static |
Returns the name of this class.
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.
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.