adding software computer base

This commit is contained in:
2025-03-02 21:37:17 +01:00
parent 93a69d37e9
commit 9771dcc530
25 changed files with 539 additions and 25 deletions

View File

@@ -17,6 +17,9 @@
#ifdef PULSE_ENABLE_WEBGPU_BACKEND
#include "Backends/WebGPU/WebGPU.h"
#endif
#ifdef PULSE_ENABLE_SOFTWARE_BACKEND
#include "Backends/Software/Soft.h"
#endif
// Ordered by default preference
static const PulseCheckBackendSupportPFN backends_supports[] = {
@@ -29,6 +32,9 @@ static const PulseCheckBackendSupportPFN backends_supports[] = {
#ifdef PULSE_ENABLE_WEBGPU_BACKEND
WebGPUCheckSupport,
#endif
#ifdef PULSE_ENABLE_SOFTWARE_BACKEND
SoftCheckSupport,
#endif
PULSE_NULLPTR
};
@@ -99,6 +105,9 @@ static PulseBackend PulseGetBackendFromFlag(PulseBackendBits flag)
#ifdef PULSE_ENABLE_WEBGPU_BACKEND
case PULSE_BACKEND_WEBGPU: return &WebGPUDriver;
#endif
#ifdef PULSE_ENABLE_SOFTWARE_BACKEND
case PULSE_BACKEND_SOFTWARE: return &SoftwareDriver;
#endif
default: break;
}