From: Josh Simmons Date: Tue, 18 Jun 2024 20:47:21 +0000 (+0200) Subject: shark: Use compute barriers for UI images X-Git-Url: https://git.nega.tv//gitweb.cgi?a=commitdiff_plain;h=f4a87e034e085645fa9e4e0c4ddfead0c0cba724;p=josh%2Fnarcissus shark: Use compute barriers for UI images We access these exclusively from compute stages now, rather than via a graphics pass, so we should use the compute only access types. --- diff --git a/title/shark/src/main.rs b/title/shark/src/main.rs index 2830aa2..3f83795 100644 --- a/title/shark/src/main.rs +++ b/title/shark/src/main.rs @@ -1220,7 +1220,7 @@ impl<'gpu> DrawState<'gpu> { None, &[ImageBarrier::layout_optimal( &[Access::TransferWrite], - &[Access::FragmentShaderSampledImageRead], + &[Access::ShaderSampledImageRead], self.glyph_atlas_image, ImageAspectFlags::COLOR, )], @@ -1241,7 +1241,7 @@ impl<'gpu> DrawState<'gpu> { ), ImageBarrier { prev_access: &[Access::None], - next_access: &[Access::ShaderWrite], + next_access: &[Access::ComputeWrite], prev_layout: ImageLayout::Optimal, next_layout: ImageLayout::General, image: self.ui_image, @@ -1543,9 +1543,9 @@ impl<'gpu> DrawState<'gpu> { subresource_range: ImageSubresourceRange::default(), }, ImageBarrier { - prev_access: &[Access::ShaderWrite], + prev_access: &[Access::ComputeWrite], prev_layout: ImageLayout::General, - next_access: &[Access::ShaderOtherRead], + next_access: &[Access::ComputeOtherRead], next_layout: ImageLayout::General, image: self.ui_image, subresource_range: ImageSubresourceRange::default(),