25 lines
877 B
Text
25 lines
877 B
Text
|
|
/*
|
||
|
|
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
|