Skip to main content

parse_limits_cap

Function parse_limits_cap 

Source
pub fn parse_limits_cap(text: &str) -> Option<LimitsCap>
Expand description

Parses a limits cap the way Ember’s LIGHTCRAFT_GPU_LIMITS does: webgpu / downlevel / default = the WebGPU defaults (128 MiB storage bindings, 256 MiB buffers), <n> (or <n>MiB, <n>MB) = n MiB storage bindings and 2n MiB buffers. Empty or unparsable: None.