fix(viewport): clip text to stencil

This commit is contained in:
Hakan Seven committed 2026-08-04 11:34:32 +03:00
1 parent f6b9d6514e
commit 1955e022bf
2 files changed
+10 -2

No files matched your search

+8 -1
View File
@@ -1473,7 +1473,14 @@ impl Pipeline {
// ── Text (SDF glyph quads) ─────────────────────────────────────────
let text_atlas_bgl = text_gpu::TextAtlasGpu::bind_group_layout(device);
let (text_pipeline, text_highlight_pipeline) =
text_gpu::create_pipelines(device, &frame_bgl, &text_atlas_bgl, format, MSAA_SAMPLES);
text_gpu::create_pipelines(
device,
&frame_bgl,
&text_atlas_bgl,
format,
MSAA_SAMPLES,
&content_stencil,
);
let viewcube = ViewCubePipeline::new(device, queue, format);