Skip to content

Commit

Permalink
Change type of image override resources (#655)
Browse files Browse the repository at this point in the history
  • Loading branch information
TrueDoctor authored Aug 5, 2024
1 parent 74b6155 commit 5d56854
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions vello/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,8 @@ impl Renderer {
pub fn override_image(
&mut self,
image: &peniko::Image,
texture: Option<Arc<wgpu::ImageCopyTextureBase<wgpu::Texture>>>,
) -> Option<Arc<wgpu::ImageCopyTextureBase<wgpu::Texture>>> {
texture: Option<wgpu::ImageCopyTextureBase<Arc<wgpu::Texture>>>,
) -> Option<wgpu::ImageCopyTextureBase<Arc<wgpu::Texture>>> {
match texture {
Some(texture) => self.engine.image_overrides.insert(image.data.id(), texture),
None => self.engine.image_overrides.remove(&image.data.id()),
Expand Down
2 changes: 1 addition & 1 deletion vello/src/wgpu_engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pub(crate) struct WgpuEngine {
/// Overrides from a specific `Image`'s [`id`](peniko::Image::id) to a wgpu `Texture`.
///
/// The `Texture` should have the same size as the `Image`.
pub(crate) image_overrides: HashMap<u64, Arc<wgpu::ImageCopyTextureBase<Texture>>>,
pub(crate) image_overrides: HashMap<u64, wgpu::ImageCopyTextureBase<Arc<Texture>>>,
}

enum PipelineState {
Expand Down

0 comments on commit 5d56854

Please sign in to comment.