Computes the HBAO texture from the opaque depth texture via a compute pass.
The command encoder to record into.
View of the already-captured opaque (pre-transparent) depth texture.
Canvas width in pixels.
Canvas height in pixels.
Camera near plane.
Camera far plane.
The camera's raw perspective projection matrix.
The HBAO effect parameters (radius, intensity).
A view of the single-channel AO texture (R = occlusion factor), or null if unavailable.
Generates the HBAO texture for WebGPU via a compute pass -- reading the opaque depth texture directly via
textureLoadand writing to a storage texture (r8unorm).