wgsl-parser 0.5.0

A zero-copy recursive-descent parser for WebGPU shading language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use snapshot::{begin_snapshots, snapshot, snapshot_test};

use crate::{common::AttributeList, utils::WithTokens};

begin_snapshots!();

#[snapshot_test]
fn attributes() {
	snapshot!(AttributeList(WithTokens) "@fragment");
	snapshot!(AttributeList(WithTokens) "@builtin(position)");
	snapshot!(AttributeList(WithTokens) "@group(0) @binding(0)");
}