WebGpuVisibility typedef

WebGpuVisibility = ({bool fragment, bool vertex})

Which stages one binding is visible to.

A block declared by both stages — FrameInfo is, in every lit shader — has to say so: a bind group layout that named one stage would be refused by the other's use of it. Two booleans rather than the API's flag word because nothing in this file may import dart:js_interop, and turning a pair of facts into GPUShaderStage bits is one line in webgpu_types.dart.

Implementation

typedef WebGpuVisibility = ({bool vertex, bool fragment});