Forwarded from useless stuff
There's a lot of stuff in the text rendering...
For example, to efficiently render the glyphs you need to pack them into texture atlas (otherwise you would have to do a lot of small draw calls, which is inefficient in modern GPUs)
And that in itself is... Hard. For example, here's how guys in mozilla did it in their renderer
https://mozillagfx.wordpress.com/2021/02/04/improving-texture-atlas-allocation-in-webrender/
For example, to efficiently render the glyphs you need to pack them into texture atlas (otherwise you would have to do a lot of small draw calls, which is inefficient in modern GPUs)
And that in itself is... Hard. For example, here's how guys in mozilla did it in their renderer
https://mozillagfx.wordpress.com/2021/02/04/improving-texture-atlas-allocation-in-webrender/
Mozilla Gfx Team Blog
Improving texture atlas allocation in WebRender
This is going to be a rather technical dive into a recent improvement that went into WebRender. Texture atlas allocation In order to submit work to the GPU efficiently, WebRender groups as many dra…
💩1
Forwarded from Техножрица 👩💻👩🏫👩🔧
Список важных терминов и концепций для разработки (1) и исследований (2) в области машинного обучения и их расшифровка
😁8💩1
#prog #abnormalprogramming
gifoeb
ImageMagick — утилита для манипулирования картинками, часто используемая для генерации превью — до определённой версии могла использовать для генерации картинки неинициализированную палитру и таким образом давать возможность дать утечь приватным данным. gifoeb позволяет сформировать картинку, которая эксплуатирует это свойство, а потом на основе сгенерированного ImageMagick превью восстановить данные, которые были в неинициализированной палитре.
gifoeb
ImageMagick — утилита для манипулирования картинками, часто используемая для генерации превью — до определённой версии могла использовать для генерации картинки неинициализированную палитру и таким образом давать возможность дать утечь приватным данным. gifoeb позволяет сформировать картинку, которая эксплуатирует это свойство, а потом на основе сгенерированного ImageMagick превью восстановить данные, которые были в неинициализированной палитре.
GitHub
GitHub - neex/gifoeb: exploit for ImageMagick's uninitialized memory disclosure in gif coder
exploit for ImageMagick's uninitialized memory disclosure in gif coder - neex/gifoeb
🌚8🤔3😁1💩1
Вот как, по мнению российских законодателей, работает пропаганда сексуальной ориентации:
Forwarded from Why Typescript is bad (Anton)
#prog #rust #rustlib
syntactic-for — a syntactic "for" loop Rust macro.
Take the sum of the bit-length of four integer types:
syntactic-for — a syntactic "for" loop Rust macro.
Take the sum of the bit-length of four integer types:
let sum = syntactic_for!{ ty in [ u8, u16, u32, u64 ] {Implement a trait for a set of types:
[$( <$ty>::BITS ),*].into_iter().sum::<u32>()
}};
assert_eq!(sum, 120);
syntactic_for!{ ty in [ u8, u16, u32, u64, u128 ] {$(В README есть больше примеров, где такой макрос может пригодиться.
impl MyTrait for $ty {
// snip.
}
)*}}
👍15🤯2