Files
OneCAD-Draft/tests/text_shader_minification.rs
T
Hakan Seven bf4614856c Merge PR #1023: preserve minified text strokes
Keep adaptive sampling in both text shaders with compact sampling loops. Validate shader derivatives and existing text rendering, including GPU pipeline creation.

Closes #964
2026-09-06 21:04:14 +03:00

17 lines
634 B
Rust

#[test]
fn adaptive_text_sampling_passes_derivative_uniformity_validation() {
for (name, source) in [
("text", include_str!("../src/shaders/text.wgsl")),
("block text", include_str!("../src/shaders/block_text.wgsl")),
] {
let module = naga::front::wgsl::parse_str(source)
.unwrap_or_else(|error| panic!("{name}: {}", error.emit_to_string(source)));
naga::valid::Validator::new(
naga::valid::ValidationFlags::all(),
naga::valid::Capabilities::empty(),
)
.validate(&module)
.unwrap_or_else(|error| panic!("{name}: {error:?}"));
}
}