Changed comment reference to emwgpudawn an EMSCRIPTEN WGPU binding maintained by Google

This commit is contained in:
BrutPitt 2025-03-25 06:45:21 +01:00
parent d60af09d1e
commit 8becaa3954

View file

@ -32,7 +32,7 @@ WGPUSurface SDL_getWGPUSurface(WGPUInstance instance, SDL_Window* window)
WGPUSurfaceDescriptorFromCanvasHTMLSelector surfaceSourceDesc = { chainedStruct, "canvas" };
surfaceDescriptor.nextInChain = &surfaceSourceDesc.chain;
/*
// NEW in DAWN but not used in EMSCRIPTEN (yet)
// not used in EMSCRIPTEN (yet), but in DAWN EMSCRIPTEN fork emdawnwebgpu: https://dawn.googlesource.com/dawn/+/refs/heads/main/src/emdawnwebgpu/
chainedStruct.sType = WGPUSType_EmscriptenSurfaceSourceCanvasHTMLSelector;
const WGPUEmscriptenSurfaceSourceCanvasHTMLSelector surfaceSourceDesc = { chainedStruct, "canvas" };
surfaceDescriptor.nextInChain = &surfaceSourceDesc.chain;
@ -89,3 +89,4 @@ WGPUSurface SDL_getWGPUSurface(WGPUInstance instance, SDL_Window* window)
}