union ExecutionMode [src]

Fields

origin_upper_leftSets origin of the framebuffer to the upper-left corner
origin_lower_leftSets origin of the framebuffer to the lower-left corner
depth_replacingIndicates that the fragment shader writes to frag_depth, replacing the fixed-function depth value.
depth_greaterIndicates that per-fragment tests may assume that any frag_depth built in-decorated value written by the shader is greater-than-or-equal to the fragment’s interpolated depth value
depth_lessIndicates that per-fragment tests may assume that any frag_depth built in-decorated value written by the shader is less-than-or-equal to the fragment’s interpolated depth value
depth_unchangedIndicates that per-fragment tests may assume that any frag_depth built in-decorated value written by the shader is the same as the fragment’s interpolated depth value
local_size: LocalSizeIndicates the workgroup size in the x, y, and z dimensions.

Members

Source

pub const ExecutionMode = union(Tag) { /// Sets origin of the framebuffer to the upper-left corner origin_upper_left, /// Sets origin of the framebuffer to the lower-left corner origin_lower_left, /// Indicates that the fragment shader writes to `frag_depth`, /// replacing the fixed-function depth value. depth_replacing, /// Indicates that per-fragment tests may assume that /// any `frag_depth` built in-decorated value written by the shader is /// greater-than-or-equal to the fragment’s interpolated depth value depth_greater, /// Indicates that per-fragment tests may assume that /// any `frag_depth` built in-decorated value written by the shader is /// less-than-or-equal to the fragment’s interpolated depth value depth_less, /// Indicates that per-fragment tests may assume that /// any `frag_depth` built in-decorated value written by the shader is /// the same as the fragment’s interpolated depth value depth_unchanged, /// Indicates the workgroup size in the x, y, and z dimensions. local_size: LocalSize, pub const Tag = enum(u32) { origin_upper_left = 7, origin_lower_left = 8, depth_replacing = 12, depth_greater = 14, depth_less = 15, depth_unchanged = 16, local_size = 17, }; pub const LocalSize = struct { x: u32, y: u32, z: u32 }; }