Advanced search tips: use spaces to require multiple terms (AND), | for alternatives (OR), wrap phrases in quotes (="a b"), =term for exact match, 'term to include, !term to exclude, ^term to match prefix, !^term to exclude prefix, .ext$ to match suffix, and !.ext$ to exclude suffix.

oit_draw.wgsl

Import path

Functions

oit_draw

#

Shader defs requirments:

🟢 OIT_ENABLED

Add the fragment to the oit buffer

fn oit_draw (
position: vec4f
color: vec4f
)

pack_24bit_depth_8bit_alpha

#
fn pack_24bit_depth_8bit_alpha (
depth: f32
alpha: f32
) -> u32

unpack_24bit_depth_8bit_alpha

#
fn unpack_24bit_depth_8bit_alpha (
packed: u32
) -> vec2<f32>