AdvancedThe recorded native render bundle.
The pipeline state key captured when recording began.
Optionallabel: stringOptional debug label for the bundle.
ReadonlygpuThe recorded native bundle, as handed to GPURenderPassEncoder.executeBundles.
Optional ReadonlylabelOptional debug label — names the bundle in GPU captures and in WebGPU validation errors.
ReadonlystateThe value PipelineSystem.bundleStateKey had when recording began. Comparing it against the pipeline's current key tells you whether this bundle still matches the bound render target — which is exactly what GpuEncoderSystem.isBundleValid does.
A recorded WebGPU render bundle, together with a stamp of the pipeline state it baked when it was recorded.
Recording captures the render target permanently, in two ways:
RenderBundle.stateKey stamps both, so GpuEncoderSystem.isBundleValid can answer whether a cached bundle is still safe to replay against the target that is bound now.
Created by GpuEncoderSystem.endBundle — there is no reason to construct one yourself.
Example