1
0
Fork 0
forked from wry/wry

vulkan: take transfer functions from color descriptions

This commit is contained in:
Julian Orth 2025-03-01 14:59:50 +01:00
parent a174881138
commit b5044d7fe7
5 changed files with 199 additions and 109 deletions

View file

@ -553,13 +553,13 @@ impl GfxFramebuffer for VulkanImage {
self: Rc<Self>,
acquire_sync: AcquireSync,
release_sync: ReleaseSync,
_cd: &Rc<ColorDescription>,
cd: &Rc<ColorDescription>,
ops: &[GfxApiOpt],
clear: Option<&Color>,
_clear_cd: &Rc<LinearColorDescription>,
region: &Region,
blend_buffer: Option<&Rc<dyn GfxBlendBuffer>>,
_blend_cd: &Rc<ColorDescription>,
blend_cd: &Rc<ColorDescription>,
) -> Result<Option<SyncFile>, GfxError> {
let mut blend_buffer =
blend_buffer.map(|b| b.clone().into_vk(&self.renderer.device.device));
@ -578,10 +578,12 @@ impl GfxFramebuffer for VulkanImage {
&self,
acquire_sync,
release_sync,
cd,
ops,
clear,
region,
blend_buffer,
blend_cd,
)
.map_err(|e| e.into())
}