LearnWebGPU-Code icon indicating copy to clipboard operation
LearnWebGPU-Code copied to clipboard

The accompanying code of the Learn WebGPU C++ programming guide

Results 15 LearnWebGPU-Code issues
Sort by recently updated
recently updated
newest added

There is an example for multi-threads rendering based on html OffscreenCanvas by calling wgpu-native?

I have a function that loads spv file: ```cpp std::vector loadSpv(std::string path) { std::ifstream file(path, std::ios::ate | std::ios::binary); if (!file.is_open()) { throw std::runtime_error("Failed to load file"); } size_t fileSize =...

I download code and build with dawn. but onQueueWorkDone don't called, as I close the window down, onQueueWorkDone called by release adapter, and got wrong status: "Queued work finished with...

This happens after running ``` emcmake cmake . -B build-web cmake --build build-web ``` the error: ``` /home/blin/LearnWebGPU-Code/build-web/_deps/webgpu-backend-emscripten-src/include/webgpu/webgpu.hpp:226:1: error: unknown type name 'WGPUComputePassTimestampLocation'; did you mean 'ComputePassTimestampLocation'? 226 | ENUM(ComputePassTimestampLocation)...

When launching the app built from a clean branch step095 on MacOS, I get: ``` pierric@pierrics-mbp LearnWebGPU-Code % ./build/App Requesting adapter... Got adapter: Requesting device... Got device: thread '' panicked...

![image](https://github.com/eliemichel/LearnWebGPU-Code/assets/2018063/d7af1d55-943f-44ac-81fe-610fdb296692) step044 code example uses dynamic uniforms to draw two different color logos. I run the code but cannot get the same result as the book showed. I've checked the...

Hello, First of all, A very well written tutorials. I'm really enjoying it. Now the problem: 1. glfw3 has a python bindings using ctypes. 2. Let's say bindings for webgpu...

Hi, I'm on [step030 - Triangle](https://github.com/eliemichel/LearnWebGPU-Code/blob/step030/main.cpp) and running into the issue where the surface automatically shrinks as long as it starts drawing the triangle. Here is a GIF, hopefully it's...

Hello, I downloaded the code from the following GitHub repository: [LearnWebGPU-Code (step095-emscripten)](https://github.com/eliemichel/LearnWebGPU-Code/tree/step095-emscripten). After building the WebGPU project in WebAssembly, I encountered an error screen while browsing to `http://localhost:8000/App.html`. Could anyone...

This code had several issues compiling in Dawn. I didn't resolve the issues to use WGPU though