commit a4fb988ad9fa881c7d9667f9a015a41b4998d8a0 Author: numzero Date: Fri Sep 27 23:53:48 2024 +0300 Basic syntax highlighting diff --git a/wgsl.xml b/wgsl.xml new file mode 100644 index 0000000..7a8a08d --- /dev/null +++ b/wgsl.xml @@ -0,0 +1,179 @@ + + + + + + + alias + break + case + const + const_assert + continue + continuing + default + diagnostic + discard + else + enable + false + fn + for + if + let + loop + override + requires + return + struct + switch + true + var + while + + + + bool + f16 + f32 + i32 + u32 + vec2 + vec3 + vec4 + mat2x2 + mat2x3 + mat2x4 + mat3x2 + mat3x3 + mat3x4 + mat4x2 + mat4x3 + mat4x4 + array + + + + @align + @binding + @builtin + @compute + @const + @diagnostic + @fragment + @group + @id + @interpolate + @invariant + @location + @blend_src + @must_use + @size + @vertex + @workgroup_size + + + + @align + @binding + @builtin + @compute + @const + @diagnostic + @fragment + @group + @id + @interpolate + @invariant + @location + @blend_src + @must_use + @size + @vertex + @workgroup_size + + + + vertex_index + instance_index + position + front_facing + frag_depth + sample_index + sample_mask + local_invocation_id + local_invocation_index + global_invocation_id + workgroup_id + num_workgroups + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +