T clamp(const T value, const T lowerBound, const T upperBound)
Clamps a value to [lowerBound, upperBound]. None of value, lowerBound and upperBound can be NaN,...
Definition math.h:77
EPixelLayout
Pixel layout of pixel texture. Represent the ordering of pixel components with respect to a color spa...
Definition pixel_texture_basics.h:40
math::Vector2D uv_to_st(const math::Vector2D &inputUV, const EWrapMode wrapModeS, const EWrapMode wrapModeT)
Transform (u, v) coordinates to (s, t) in [0, 1] according to wrap mode. The transformation will pres...
Definition pixel_texture_basics.h:95
EWrapMode
Definition pixel_texture_basics.h:21
std::size_t num_pixel_elements(const EPixelLayout layout)
Definition pixel_texture_basics.h:104
std::size_t alpha_channel_index(const EPixelLayout layout)
Definition pixel_texture_basics.h:134
float64 uv_to_st_scalar(const float64 inputUV, const EWrapMode wrapMode)
Transform (u, v) coordinates to (s, t) in [0, 1] according to wrap mode. This overload operates on si...
Definition pixel_texture_basics.h:59
ESampleMode
Definition pixel_texture_basics.h:28