You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm still learning graphics programming, so if something doesn't make sense or suggests ignorance of some obvious thing, assume I don't know what I'm talking about. :)
Is it possible, or could it be possible to rasterize all glyphs into the same RGBA image buffer and have a single texture? Full-colour emojis would use all channels, whereas mask glyphs would write into only one channel. Mask glyphs could then overlap each other in the image so they still only take up one byte per pixel. The glyph info (quad data) would contain which channel as well as the texture coords, etc. - would this allow a single shader with a single texture to draw it all in one batch? SDF would probably require a different shader but could potentially use a similar approach and one or two channels based on precision required?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm still learning graphics programming, so if something doesn't make sense or suggests ignorance of some obvious thing, assume I don't know what I'm talking about. :)
Is it possible, or could it be possible to rasterize all glyphs into the same RGBA image buffer and have a single texture? Full-colour emojis would use all channels, whereas mask glyphs would write into only one channel. Mask glyphs could then overlap each other in the image so they still only take up one byte per pixel. The glyph info (quad data) would contain which channel as well as the texture coords, etc. - would this allow a single shader with a single texture to draw it all in one batch? SDF would probably require a different shader but could potentially use a similar approach and one or two channels based on precision required?
Beta Was this translation helpful? Give feedback.
All reactions