juj / wasm_webgpu

System headers for interfacing WebGPU from C programs compiled via Emscripten to WebAssembly
BSD 3-Clause "New" or "Revised" License
331 stars 26 forks source link

WGpuRenderPipelineDescriptor missing layout, plus some minor cleanups #15

Closed brendan-duncan closed 3 years ago

brendan-duncan commented 3 years ago

WGpuRenderPipelineDescriptor is supposed to derive from GPUPipelineDescriptorBase and have a GPUPipelineLayout layout member.

WGPU_INPUT_STEP_MODE should probably be WGPU_VERTEX_STEP_MODE now, to match the new name of the string constants.

Some other minor cleanups: WGpuBindGroupLayoutDescriptor and similarly removed structs are still defined in lib_webgpu_fwd.h

juj commented 3 years ago

Fixed in above commit.

Also noticed that the module creation code was missing the shader constants dictionary.