u32
Type
32-bit unsigned integer value.
The signature, the sentence and any message are the compiler's own text at commit af54ddad5.
Syntax
type u32 = number & { readonly [u32Tag]?: true }A number in a parameter or a return position is the scalar slot. The ambient file declares a GPU scalar as a branded number whose brand is optional, so a literal and any branded scalar both fill it.
type f32 = number & { readonly [f32Tag]?: true }
A number you write as a type is inferred from its uses, and f32, i32 and u32 fix a width; the TypeScript constructs page carries that row with the compiler's emit.
Examples
path/image-blur/image-blur.shade.tspath/parallel-sum/parallel-sum.shade.tspath/histogram/histogram.shade.tsgallery/domain-warp-twin/domain-warp-twin.shade.tsgallery/julia-twin/julia-twin.shade.tsgallery/kaleidoscope-twin/kaleidoscope-twin.shade.tsgallery/mandelbrot-twin/mandelbrot-twin.shade.tsgallery/ocean-twin/ocean-twin.shade.tsgallery/starfield-twin/starfield-twin.shade.tsgallery/fp64-burning-ship-twin/fp64-burning-ship-twin.shade.tsgallery/fp64-julia-twin/fp64-julia-twin.shade.tsgallery/fp64-mandelbrot-de-twin/fp64-mandelbrot-de-twin.shade.tsgallery/fp64-newton-twin/fp64-newton-twin.shade.tsgallery/atomic-histogram/atomic-histogram.shade.tsgallery/bit-bump/bit-bump.shade.tsgallery/block-scope/block-scope.shade.tsgallery/compute-reduction-twin/compute-reduction-twin.shade.tsgallery/compute-sync/compute-sync.shade.tsgallery/generic-helpers/generic-helpers.shade.tsgallery/id-pick/id-pick.shade.tsgallery/inferred-returns/inferred-returns.shade.tsgallery/integer-math/integer-math.shade.tsgallery/kernel-image-invert/kernel-image-invert.shade.tsgallery/kernel-push/kernel-push.shade.tsgallery/kernel-set-unique/kernel-set-unique.shade.tsgallery/loop-kernel/loop-kernel.shade.tsgallery/loop-on-cpu/loop-on-cpu.shade.tsgallery/loop-reduction/loop-reduction.shade.tsgallery/loop-struct-array/loop-struct-array.shade.tsgallery/module-const/module-const.shade.tsgallery/packed-bytes/packed-bytes.shade.tsgallery/packing-bitcast/packing-bitcast.shade.tsgallery/particle-step/particle-step.shade.tsgallery/private-state/private-state.shade.tsgallery/rng-method/rng-method.shade.tsgallery/subgroup-reduce/subgroup-reduce.shade.tsgallery/workgroup-override/workgroup-override.shade.tsgallery/workgroup-reduce/workgroup-reduce.shade.tsgallery/workgroup-scratch/workgroup-scratch.shade.tsgallery/workgroup-tile-2d/workgroup-tile-2d.shade.ts