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
Hi, newcomer here, I've managed to set up rendering for multiple textures and even multithreading with wgpu, but I'm seriously struggling with this code: the main issue is that the first buffer I get from a FreeType glyph (which happens to be the letter "H" from "Hello, world!") has length 1190 (35x34), but when I render it, I just simply get some red and black squares. I'm really lost, if anyone can help I'd be glad, I tried all possible combinations of TextureFormats and dimensions/pitches (by the way a pitch in FreeType is the width plus the padding, which is usually 0, so it's the width essentially). My code is available in its entirety at https://github.com/ghovax/textr.git
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
-
Hi, newcomer here, I've managed to set up rendering for multiple textures and even multithreading with wgpu, but I'm seriously struggling with this code: the main issue is that the first buffer I get from a FreeType glyph (which happens to be the letter "H" from "Hello, world!") has length 1190 (35x34), but when I render it, I just simply get some red and black squares. I'm really lost, if anyone can help I'd be glad, I tried all possible combinations of
TextureFormat
s and dimensions/pitches (by the way a pitch in FreeType is the width plus the padding, which is usually 0, so it's the width essentially). My code is available in its entirety at https://github.com/ghovax/textr.gitBeta Was this translation helpful? Give feedback.
All reactions