mirror of
https://github.com/Kbz-8/Pulse.git
synced 2026-01-11 15:33:34 +00:00
working on WebGPU support
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user