mirror of
https://github.com/hyprwm/hyprgraphics.git
synced 2026-05-06 20:48:01 +02:00
egl: add XRGB16161616F and ARGB16161616F to formats (#45)
Some checks failed
Build & Test (Arch) / Arch: Build and Test (gcc) (push) Has been cancelled
Build & Test (Arch) / Arch: Build and Test (clang) (push) Has been cancelled
Build & Test / nix (hyprgraphics) (push) Has been cancelled
Build & Test / nix (hyprgraphics-with-tests) (push) Has been cancelled
Some checks failed
Build & Test (Arch) / Arch: Build and Test (gcc) (push) Has been cancelled
Build & Test (Arch) / Arch: Build and Test (clang) (push) Has been cancelled
Build & Test / nix (hyprgraphics) (push) Has been cancelled
Build & Test / nix (hyprgraphics-with-tests) (push) Has been cancelled
add two more 16fp formats.
This commit is contained in:
parent
cf95d93d17
commit
04d7d9f0e5
1 changed files with 20 additions and 0 deletions
|
|
@ -150,6 +150,26 @@ namespace Hyprgraphics::Egl {
|
|||
.bytesPerBlock = 4,
|
||||
.swizzle = {SWIZZLE_BGRA},
|
||||
},
|
||||
{
|
||||
.drmFormat = DRM_FORMAT_XRGB16161616F,
|
||||
.glInternalFormat = GL_RGBA16F,
|
||||
.glFormat = GL_RGBA,
|
||||
.glType = GL_HALF_FLOAT,
|
||||
.withAlpha = false,
|
||||
.alphaStripped = DRM_FORMAT_XRGB16161616F,
|
||||
.bytesPerBlock = 8,
|
||||
.swizzle = {SWIZZLE_BGR1},
|
||||
},
|
||||
{
|
||||
.drmFormat = DRM_FORMAT_ARGB16161616F,
|
||||
.glInternalFormat = GL_RGBA16F,
|
||||
.glFormat = GL_RGBA,
|
||||
.glType = GL_HALF_FLOAT,
|
||||
.withAlpha = true,
|
||||
.alphaStripped = DRM_FORMAT_XRGB16161616F,
|
||||
.bytesPerBlock = 8,
|
||||
.swizzle = {SWIZZLE_BGRA},
|
||||
},
|
||||
{
|
||||
.drmFormat = DRM_FORMAT_XBGR16161616F,
|
||||
.glInternalFormat = GL_RGBA16F,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue