Skip to content

Commit bdd1cf6

Browse files
committed
Use explicit scene primitive insertion in native acceptance
1 parent c89ae34 commit bdd1cf6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎crates/gpui_wgpu/src/wgpu_renderer/postprocess_tests.rs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,17 +109,17 @@ fn effect(
109109
bounds: Bounds<ScaledPixels>,
110110
mask: Bounds<ScaledPixels>,
111111
factor: f32,
112-
) -> PaintPostprocess {
112+
) -> gpui::Primitive {
113113
let mut uniforms = vec![0; 16];
114114
uniforms[..4].copy_from_slice(&factor.to_le_bytes());
115-
PaintPostprocess {
115+
gpui::Primitive::Postprocess(PaintPostprocess {
116116
order: 0,
117117
bounds,
118118
content_mask: ContentMask { bounds: mask },
119119
owner: owner.clone(),
120120
uniforms: uniforms.into(),
121121
feedback: PostprocessFeedback::default(),
122-
}
122+
})
123123
}
124124

125125
fn render_and_read(renderer: &mut WgpuRenderer, scene: &Scene) -> Vec<[u8; 4]> {

0 commit comments

Comments
 (0)