Constants
Bindings
Structures
Functions
function with no return type and empty body
fn
f1
()
must_use attribute
expressions
fn
f7
()
statements
fn
f8
()
@fragment
Calculates the final color of each pixel on the screen
@vertex
Processes each 3D point in a model before it's drawn
@fragment
Calculates the final color of each pixel on the screen
@compute
Runs custom parallel code on the GPU, not limited to graphics
@workgroup_size(1)
Defines the size of a thread group. One to three numbers: width (x), height (y), and depth (z). Missing values default to 1
fn
comp_main1
()
@compute
Runs custom parallel code on the GPU, not limited to graphics
@workgroup_size(8, 8)
Defines the size of a thread group. One to three numbers: width (x), height (y), and depth (z). Missing values default to 1
@compute
Runs custom parallel code on the GPU, not limited to graphics
@workgroup_size(8, 8, 1, )
Defines the size of a thread group. One to three numbers: width (x), height (y), and depth (z). Missing values default to 1
fn
f12
()
nested member and swizzle write targets
fn
f13
()
structs