Skip to content

add more egl helpers and members to formats#46

Open
gulafaran wants to merge 6 commits into
hyprwm:mainfrom
gulafaran:swizzles
Open

add more egl helpers and members to formats#46
gulafaran wants to merge 6 commits into
hyprwm:mainfrom
gulafaran:swizzles

Conversation

@gulafaran

@gulafaran gulafaran commented May 14, 2026

Copy link
Copy Markdown
Contributor

add pixelLayout and getReadbackFormat because we cant rely on swizzle types to decide what readpixel format to use.

also add a bits and getColorDepth helper so we can get what kind of bits or depth the format actually is.

gulafaran added 2 commits May 14, 2026 15:34
add pixel layouts to the formats and a getReadbackFormat helper to be
used with glreadpixels.
add bits for formats and getcolordepth helper.
Comment thread include/hyprgraphics/egl/Egl.hpp Outdated
gulafaran added 3 commits May 14, 2026 19:14
rename them to PIXEL_LAYOUT_* to avoid conflicts.
add an alphaAdded member to easily be able to get the drm format with
alpha added if needed.
fillout missing members for R8 , GR88 , RGB888
@gulafaran gulafaran marked this pull request as ready for review May 15, 2026 11:43
add 4 more formats, cross referenced weston. RGBX8888, RGBA8888,
BGRX8888, BGRA8888. also fix pixellayout type for 16bit integer
formats. and swizzle typoes.
@gulafaran

Copy link
Copy Markdown
Contributor Author

@vaxerski ok besides requiring some testing, any syntax nags here?

@vaxerski vaxerski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

syntax-wise no issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants