|
Ritchie's Abstractions 0.2
Platform abstractions that make Toolbox work
|
Structure containing settings for a texture sampler. More...
Public Member Functions | |
| override bool | Equals ([NotNullWhen(true)] object? obj) |
| override int | GetHashCode () |
| bool | Equals (SamplerState other) |
Static Public Member Functions | |
| static bool | operator== (SamplerState a, SamplerState b) |
| Checks if two SamplerState values are equal. | |
| static bool | operator!= (SamplerState a, SamplerState b) |
| Checks if two SamplerState values are not equal. | |
Public Attributes | |
| TextureFilter | TextureFilter |
| Defines the filtering applied to the texture when sampling it. | |
Static Public Attributes | |
| static readonly SamplerState | PointClamp = new() { TextureFilter = TextureFilter.PointClamp } |
| When sampling a texture, always sample the nearest pixel. | |
| static readonly SamplerState | PointWrap = new() { TextureFilter = TextureFilter.PointWrap } |
| When sampling a texture, wrap coordinates within the texture's bounds and then sample the nearest pixel. | |
| static readonly SamplerState | LinearClamp = new() { TextureFilter = TextureFilter.LinearClamp } |
| When sampling a texture, clamp the coordinates within the bounds of the texture. If the coordinates don't land exactly on a pixel, use linear interpolation based on nearby pixels. | |
| static readonly SamplerState | LinearWrap = new() { TextureFilter = TextureFilter.LinearWrap } |
| When sampling a texture, wrap the coordinates within the bounds of the texture. If the coordinates don't land exactly on a pixel, use linear interpolation based on nearby pixels. | |
Structure containing settings for a texture sampler.
|
inlinestatic |
Checks if two SamplerState values are not equal.
| a | The left side of the operation |
| b | The right side of the operation |
|
inlinestatic |
Checks if two SamplerState values are equal.
| a | The left side of the operation |
| b | The right side of the operation |