|
Math v0.2.0
SIMD optimized C++ mathematics library
|
Texture (image) sampler 4D. (Includes 3D textures and mipmap levels). More...
#include <sampler.hpp>
Public Member Functions | |
| Sampler4D (const void *const *mips, uint3 size, uint8 mipCount=1) noexcept | |
| Creates a new 4D texture (image) sampler. | |
| template<class T = f32x4> | |
| T | get (uint3 position, uint8 mip) const noexcept |
| Returns texel at specified position and mip level. | |
| template<class T = f32x4> | |
| T | sampleNearest (float3 uv, float mip, bool repeatMode=false) const noexcept |
| Samples nearest texel from an image. | |
Texture (image) sampler 4D. (Includes 3D textures and mipmap levels).
Creates a new 4D texture (image) sampler.
| [in] | mips | target texture mipmap pixel data |
| size | target texture 3D size in texels | |
| mipCount | texture mipmap level count |
Returns texel at specified position and mip level.
| position | texel 3D position and mipmap level |
| mip | texture mipmap level (default = 0) |
| T | type of the texture pixel |
|
inlinenoexcept |
Samples nearest texel from an image.
| uv | 3D texture coordinates where to sample |
| mip | mipmap level to sample (default = 0.0) |
| repeatMode | clamp to border or repeat sampling mode |
| T | type of the texture pixel |