Add 10-10-10-2 pixel type
This commit is contained in:
parent
42afb1692b
commit
7cf2a1d5ca
1 changed files with 15 additions and 0 deletions
|
|
@ -25,6 +25,11 @@ namespace psemek::gfx
|
||||||
struct uint10;
|
struct uint10;
|
||||||
struct uint12;
|
struct uint12;
|
||||||
|
|
||||||
|
struct uint10_10_10_2
|
||||||
|
{
|
||||||
|
std::uint32_t value;
|
||||||
|
};
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
struct integer;
|
struct integer;
|
||||||
|
|
||||||
|
|
@ -127,6 +132,16 @@ namespace psemek::gfx
|
||||||
static constexpr GLenum type = gl::UNSIGNED_BYTE;
|
static constexpr GLenum type = gl::UNSIGNED_BYTE;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Normalized 10-10-10-2
|
||||||
|
|
||||||
|
template <>
|
||||||
|
struct pixel_traits<uint10_10_10_2>
|
||||||
|
{
|
||||||
|
static constexpr GLenum internal_format = gl::RGB10_A2;
|
||||||
|
static constexpr GLenum format = gl::RGBA;
|
||||||
|
static constexpr GLenum type = gl::UNSIGNED_BYTE;
|
||||||
|
};
|
||||||
|
|
||||||
// Unsigned 8-bit
|
// Unsigned 8-bit
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue