pub enum GeometryPath {
MeshShader,
IndirectCount,
IndirectPerBatch,
}Expand description
How the renderer gets geometry in front of the rasteriser.
One shader-permutation axis and one golden-image axis, declared best-first and resolved downward: every value draws the same meshlets out of the same pools, and only the submission tail differs.
Variants§
MeshShader
A mesh shader emits primitives directly, so the meshlet cull and the geometry it survives live in one dispatch.
IndirectCount
Indirect draws whose count is itself read from a GPU buffer, so the CPU never learns how many draws a pass emits.
IndirectPerBatch
Indirect draws with a CPU-known count: one argument per batch, each batch’s instance count still decided on the GPU. The floor, and what WebGPU gets.
Implementations§
Source§impl GeometryPath
impl GeometryPath
Sourcepub const INPUTS: Features
pub const INPUTS: Features
The features this selector reads, and the only ones it may read.
Stated as data because downgrades has to answer “which selector did
this absence move”, and a second hand-written table would drift from
from_features the first time an axis gains a
flag. selector_inputs_are_the_only_features_a_selector_reads pins the
two together.
Sourcepub const fn from_features(features: Features) -> Self
pub const fn from_features(features: Features) -> Self
The best path features can run.