Re: webgpu.h for using WebGPU in native and through emscripten

On Fri, Nov 1, 2019 at 6:23 PM Doug Moen <doug@moens.org> wrote:

> Corentin said: "If you're interested in using WebGPU in native ..."
>
> Is there any timeline for deciding whether the shader language is SPIR-V
> or WHSLS?
> I'm looking for a date range:
> * It likely won't be decided before date X
> * It likely will be decided before date Y
>
> I'm asking because webgpu.h currently ingests SPIR-V:
>
> typedef struct WGPUShaderModuleDescriptor {
>     void const * nextInChain;
>     char const * label;
>     uint32_t codeSize;
>     uint32_t const * code;
> } WGPUShaderModuleDescriptor;
>
> and this could change to WHLSL at some point, which for me is quite a
> disruptive change. I figure that when the shader language is chosen, then
> webgpu.h will be stable enough for my purposes to start writing
> experimental code.
>

I understand your concerns. I think it is safe to assume that if WebGPU
doesn't ingest SPIRV then there will at least be a <WebGPU's language> to
SPIRV compiler.

Received on Monday, 4 November 2019 16:39:55 UTC