mirror of
https://github.com/Kbz-8/Pulse.git
synced 2026-01-11 23:43:34 +00:00
yes
This commit is contained in:
@@ -23,6 +23,9 @@
|
||||
#ifdef PULSE_ENABLE_OPENGL_BACKEND
|
||||
#include "Backends/OpenGL/OpenGL.h"
|
||||
#endif
|
||||
#ifdef PULSE_ENABLE_D3D11_BACKEND
|
||||
#include "Backends/D3D11/D3D11.h"
|
||||
#endif
|
||||
|
||||
// Ordered by default preference
|
||||
static const PulseCheckBackendSupportPFN backends_supports[] = {
|
||||
@@ -35,6 +38,9 @@ static const PulseCheckBackendSupportPFN backends_supports[] = {
|
||||
#ifdef PULSE_ENABLE_WEBGPU_BACKEND
|
||||
WebGPUCheckSupport,
|
||||
#endif
|
||||
#ifdef PULSE_ENABLE_D3D11_BACKEND
|
||||
PuD3D11CheckSupport,
|
||||
#endif
|
||||
#ifdef PULSE_ENABLE_OPENGL_BACKEND
|
||||
OpenGLCheckSupport,
|
||||
OpenGLESCheckSupport,
|
||||
@@ -115,6 +121,9 @@ static PulseBackend PulseGetBackendFromFlag(PulseBackendBits flag)
|
||||
#ifdef PULSE_ENABLE_WEBGPU_BACKEND
|
||||
case PULSE_BACKEND_WEBGPU: return &WebGPUDriver;
|
||||
#endif
|
||||
#ifdef PULSE_ENABLE_D3D11_BACKEND
|
||||
case PULSE_BACKEND_D3D11: return &D3D11Driver;
|
||||
#endif
|
||||
#ifdef PULSE_ENABLE_OPENGL_BACKEND
|
||||
case PULSE_BACKEND_OPENGL: return &OpenGLDriver;
|
||||
case PULSE_BACKEND_OPENGL_ES: return &OpenGLESDriver;
|
||||
|
||||
Reference in New Issue
Block a user