how can multiple WGSL sources be combined such that line numbers are properly reported?
I have organized my project so that some shared functionality is kept in separate .wgsl
files. I can load them and dynamically compose them into a single string myself, but then the line reporting for WGSL errors is relative to the beginning of the composed string instead of to the beginning of the respective files.
In WebGPU, how can multiple WGSL sources be combined such that line numbers are properly reported?
I have organized my project so that some shared functionality is kept in separate .wgsl
files. I can load them and dynamically compose them into a single string myself, but then the line reporting for WGSL errors is relative to the beginning of the composed string instead of to the beginning of the respective files.
C WebGPU Error: invalid load op for render pass color attachment: 0
I am trying to use WebGPU with C with the implementation from wgpu-native and GLFW to create window. I follow the tutorial from here. The tutorial is a bit old and there’s changes in the API. One of the change which getting in my way was creating the swapchain. The older API explicitly requires you to create the swapchain object, while the recent one the swapchain information is already in the surface object so you only need to configure the surface.