Skip to content

WebGPU RenderWindow::Initialize()

Addition of a RenderWindow::Initialize() method. This method is overriden by vtkWebGPURenderWindow and creates the render window's device/adapter/swapchain/framebuffers/...

This allows compute pipelines that need information from the render window (such as textures i.e. the depth buffer) to be set up the moment they need it without having to wait for the first frame. This allows more intuitive code to be written rather than having to defer that setup until the first frame.

The occlusion culler is the main subject for testing that refactor so that's where most of the modifications of this MR went in.

FYI: @lucas.givord @jaswant.panchumarti

Edited by Tom Clabault

Merge request reports

Loading