Skip to content

Platforms: WebGPU support #65

Open
@ca1773130n

Description

Thanks for sharing your great work.
I've been investigating about how to make this run on web browsers.

WebGL doesn't work as there is no compute shaders, so we need WebGPU backend.
Fortunately, Unity 2023 beta supports experimental WebGPU though some scripting for editor is needed to enable it.

For now I'm struggling with radix sort codes from FidelityFX, to make it work on WebGPU.
Here's some issues:

It seems like WGSL does not have a counterpart of GroupMemoryBarrierWithGroupSync().

  • It's being converted to just workgroupBarrier() which will slow down the sorting algorithm.
  • Also the shader compilation fails due to calling the function on a non-uniform control bound.
  • I couldn't succeeded to modify the original HLSL code to make it work.

wavebasic does not work. it produces an error like: invalid kernel index passed.

  • Metal backend works without it, so I can just comment it out but it could be much slower

There are working WebGPU implementations for 3D GS, so hopefully we could modify the current code to make it run without errors.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions