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