render: implement a vulkan renderer
This commit is contained in:
parent
4ba8550da8
commit
cf332e8436
66 changed files with 4287 additions and 239 deletions
|
|
@ -210,9 +210,10 @@ fn render2(
|
|||
Ok(d) => d,
|
||||
Err(e) => return Err(TextError::ImageData(e)),
|
||||
};
|
||||
let old = old.map(|o| o.texture);
|
||||
match ctx
|
||||
.clone()
|
||||
.shmem_texture(bytes, ARGB8888, width, height, data.image.stride())
|
||||
.shmem_texture(old, bytes, ARGB8888, width, height, data.image.stride())
|
||||
{
|
||||
Ok(t) => Ok(TextTexture {
|
||||
config: Rc::new(config.to_static()),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue