Added helper macros.

This commit is contained in:
Бранимир Караџић 2018-12-14 21:38:43 -08:00
parent de55145c7e
commit 2c0da4d2cb

View File

@ -412,6 +412,34 @@
///
#define BGFX_SAMPLER_BORDER_COLOR(_index) ( (_index << BGFX_SAMPLER_BORDER_COLOR_SHIFT) & BGFX_SAMPLER_BORDER_COLOR_MASK)
///
#define BGFX_SAMPLER_POINT (0 \
| BGFX_SAMPLER_MIN_POINT \
| BGFX_SAMPLER_MAG_POINT \
| BGFX_SAMPLER_MIP_POINT \
)
///
#define BGFX_SAMPLER_UVW_MIRROR (0 \
| BGFX_SAMPLER_U_MIRROR \
| BGFX_SAMPLER_V_MIRROR \
| BGFX_SAMPLER_W_MIRROR \
)
///
#define BGFX_SAMPLER_UVW_CLAMP (0 \
| BGFX_SAMPLER_U_CLAMP \
| BGFX_SAMPLER_V_CLAMP \
| BGFX_SAMPLER_W_CLAMP \
)
///
#define BGFX_SAMPLER_UVW_BORDER (0 \
| BGFX_SAMPLER_U_BORDER \
| BGFX_SAMPLER_V_BORDER \
| BGFX_SAMPLER_W_BORDER \
)
///
#define BGFX_SAMPLER_BITS_MASK (0 \
| BGFX_SAMPLER_U_MASK \