working on WebGPU support

This commit is contained in:
2025-02-23 17:12:27 +01:00
parent 3a598ab887
commit 443eb6b810
34 changed files with 859 additions and 74 deletions

View File

@@ -14,6 +14,9 @@
#ifdef PULSE_ENABLE_METAL_BACKEND
#include "Backends/Metal/Metal.h"
#endif
#ifdef PULSE_ENABLE_WEBGPU_BACKEND
#include "Backends/WebGPU/WebGPU.h"
#endif
// Ordered by default preference
static const PulseCheckBackendSupportPFN backends_supports[] = {
@@ -23,6 +26,9 @@ static const PulseCheckBackendSupportPFN backends_supports[] = {
#ifdef PULSE_ENABLE_METAL_BACKEND
MetalCheckSupport,
#endif
#ifdef PULSE_ENABLE_WEBGPU_BACKEND
WebGPUCheckSupport,
#endif
PULSE_NULLPTR
};
@@ -90,6 +96,9 @@ static PulseBackend PulseGetBackendFromFlag(PulseBackendBits flag)
#ifdef PULSE_ENABLE_METAL_BACKEND
case PULSE_BACKEND_METAL: return &MetalDriver;
#endif
#ifdef PULSE_ENABLE_WEBGPU_BACKEND
case PULSE_BACKEND_WEBGPU: return &WebGPUDriver;
#endif
default: break;
}