Module wgsl

Source
Expand description

Code shared between the WGSL front and back ends.

Modulesยง

diagnostics ๐Ÿ”’
WGSL diagnostic filters and severities.
to_wgsl ๐Ÿ”’
Generating WGSL source code for Naga IR types.
types ๐Ÿ”’
Code for formatting Naga IR types as WGSL source code.

Structsยง

DisplayFilterableTriggeringRule

Traitsยง

ToWgsl
Types that can return the WGSL source representation of their values as a 'static string.
TryToWgsl
Types that may be able to return the WGSL source representation for their values as a 'static string.
TypeContext
A context for printing Naga IR types as WGSL.

Functionsยง

address_space_str
Return the WGSL address space and access mode strings for space.