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