1
0
Fork 0
forked from wry/wry

render: add support for explicit sync

This commit is contained in:
Julian Orth 2024-03-21 23:26:34 +01:00
parent 1b4492c670
commit 816315170f
22 changed files with 531 additions and 94 deletions

View file

@ -1,7 +1,8 @@
use {
crate::{
gfx_api::{
BufferResv, CopyTexture, FillRect, FramebufferRect, GfxApiOpt, GfxTexture, SampleRect,
AcquireSync, BufferResv, CopyTexture, FillRect, FramebufferRect, GfxApiOpt, GfxTexture,
ReleaseSync, SampleRect,
},
rect::Rect,
scale::Scale,
@ -133,6 +134,8 @@ impl RendererBase<'_> {
tscale: Scale,
bounds: Option<&Rect>,
buffer_resv: Option<Rc<dyn BufferResv>>,
acquire_sync: AcquireSync,
release_sync: ReleaseSync,
) {
let mut texcoord = tpoints.unwrap_or_else(SampleRect::identity);
@ -172,6 +175,8 @@ impl RendererBase<'_> {
source: texcoord,
target,
buffer_resv,
acquire_sync,
release_sync,
}));
}
}