vulkan: optimize shm handling
This commit is contained in:
parent
03c02be34c
commit
af80fada6c
14 changed files with 629 additions and 413 deletions
13
src/text.rs
13
src/text.rs
|
|
@ -211,10 +211,15 @@ fn render2(
|
|||
Err(e) => return Err(TextError::ImageData(e)),
|
||||
};
|
||||
let old = old.map(|o| o.texture);
|
||||
match ctx
|
||||
.clone()
|
||||
.shmem_texture(old, bytes, ARGB8888, width, height, data.image.stride())
|
||||
{
|
||||
match ctx.clone().shmem_texture(
|
||||
old,
|
||||
bytes,
|
||||
ARGB8888,
|
||||
width,
|
||||
height,
|
||||
data.image.stride(),
|
||||
None,
|
||||
) {
|
||||
Ok(t) => Ok(TextTexture {
|
||||
config: Rc::new(config.to_static()),
|
||||
texture: t,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue