webgpu support
This commit is contained in:
parent
5352ef69a2
commit
dedf6b0467
22 changed files with 1656 additions and 324 deletions
25
interfaces/Crafter.Graphics-WebGPUComputeShader.cppm
Normal file
25
interfaces/Crafter.Graphics-WebGPUComputeShader.cppm
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
Crafter®.Graphics
|
||||
Copyright (C) 2026 Catcrafts®
|
||||
catcrafts.net
|
||||
*/
|
||||
|
||||
// Placeholder ComputeShader for DOM mode. The four standard UI pipelines
|
||||
// are compiled JS-side at startup (see additional/dom-webgpu.js); the C++
|
||||
// side never sees a WGSL handle. This type exists so UIRenderer can
|
||||
// declare `WebGPUComputeShader drawQuads;` members for symmetry with the
|
||||
// Vulkan side, but `Load()` and `Dispatch()` are intentionally absent —
|
||||
// the DispatchQuads / DispatchCircles / etc convenience methods on
|
||||
// UIRenderer route directly to the JS bridge.
|
||||
|
||||
export module Crafter.Graphics:WebGPUComputeShader;
|
||||
#ifdef CRAFTER_GRAPHICS_WINDOW_DOM
|
||||
import std;
|
||||
|
||||
export namespace Crafter {
|
||||
struct WebGPUComputeShader {
|
||||
// Marker only; pipelines live JS-side per dispatchStandard in
|
||||
// dom-webgpu.js. No state required.
|
||||
};
|
||||
}
|
||||
#endif // CRAFTER_GRAPHICS_WINDOW_DOM
|
||||
Loading…
Add table
Add a link
Reference in a new issue