Draft
Conversation
added 14 commits
December 15, 2025 17:42
- Replace WGPUShaderModuleWGSLDescriptor with WGPUShaderSourceWGSL - Replace WGPUProgrammableStageDescriptor with WGPUComputeState - Convert all string fields from const char* to WGPUStringView - Update callbacks to use *CallbackInfo structures (WGPUBufferMapCallbackInfo, etc) - Replace WGPU_*_INIT macros with explicit field initialization - Change wgpuBufferReference to wgpuBufferAddRef - Update WGPUConstantEntry.key to use WGPUStringView - Initialize WGPUDeviceDescriptor.defaultQueue and uncapturedErrorCallbackInfo explicitly Co-authored-by: AI Assistant (Cursor/Claude)
- Update callback signatures to use WGPUStringView and userdata2 - Replace WGPURequiredLimits/WGPUSupportedLimits with WGPULimits - Fix WGPUStringView field initialization (data/length) - Update device descriptor to use deviceLostCallbackInfo structure - Convert wgpuAdapterRequestDevice/wgpuInstanceRequestAdapter to use callback info structures - Change wgpuAdapterGetLimits return type check to WGPUStatus Co-authored-by: AI Assistant (Cursor/Claude)
- Define NULL and SIZE_MAX in mini_webgpu.h for freestanding runtime - Replace explicit field initialization with WGPU_*_INIT macros - Replace ~(size_t)0 with WGPU_STRLEN for clarity Co-authored-by: AI Assistant (Cursor/Claude)
Co-authored-by: AI Assistant (Cursor/Claude)
…awn+emscripten+node
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update to latest WebGPU, Node, Dawn, and emscripten versions. Use a promise-based API instead of old-style tick-based APIs. This unifies the backend, but requires specific support for timed waits on promises. Dawn is currently the only implementation that has this.