forked from 1b-agent/opencadstudio-upstream
fix: resolve review regressions and align dependencies
This commit is contained in:
1 parent
95cf265aaa
commit
a27545c379
15 files changed
+63
-57
No files matched your search
@@ -1,8 +1,10 @@
|
||||
const STORAGE_SHADER: &str = include_str!("../src/shaders/hatch.wgsl");
|
||||
const TEXTURE_SHADER: &str = include_str!("../src/shaders/hatch_texture.wgsl");
|
||||
const DRAW_ORDER_SHADER: &str = include_str!("../src/shaders/draw_order.wgsl");
|
||||
|
||||
fn assert_all_family_lod(source: &str, name: &str) {
|
||||
let module = naga::front::wgsl::parse_str(source)
|
||||
let composed = format!("{DRAW_ORDER_SHADER}\n{source}");
|
||||
let module = naga::front::wgsl::parse_str(&composed)
|
||||
.unwrap_or_else(|error| panic!("{name} WGSL must parse: {error}"));
|
||||
naga::valid::Validator::new(
|
||||
naga::valid::ValidationFlags::all(),
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
#[test]
|
||||
fn adaptive_text_sampling_passes_derivative_uniformity_validation() {
|
||||
let draw_order = include_str!("../src/shaders/draw_order.wgsl");
|
||||
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)));
|
||||
let composed = format!("{draw_order}\n{source}");
|
||||
let module = naga::front::wgsl::parse_str(&composed)
|
||||
.unwrap_or_else(|error| panic!("{name}: {}", error.emit_to_string(&composed)));
|
||||
naga::valid::Validator::new(
|
||||
naga::valid::ValidationFlags::all(),
|
||||
naga::valid::Capabilities::empty(),
|
||||
|
||||
Reference in new issue
Block a user