onBeginRenderPass property

void Function(RenderPassDescriptor descriptor)? onBeginRenderPass
getter/setter pair

Called with each render pass as it is asked for, before it is opened: what it throws is what beginRenderPass throws.

A test that wants a frame to fail on the engine's side — a device that goes away halfway through, after some passes have already run — throws from here for the pass it picks.

Implementation

void Function(RenderPassDescriptor descriptor)? onBeginRenderPass;