mirror of
https://github.com/Kbz-8/Pulse.git
synced 2026-01-11 07:23:35 +00:00
yes
This commit is contained in:
@@ -42,6 +42,7 @@ typedef enum PulseBackendBits
|
||||
PULSE_BACKEND_SOFTWARE = PULSE_BIT(6),
|
||||
PULSE_BACKEND_OPENGL = PULSE_BIT(7),
|
||||
PULSE_BACKEND_OPENGL_ES = PULSE_BIT(8),
|
||||
PULSE_BACKEND_D3D11 = PULSE_BIT(9),
|
||||
} PulseBackendBits;
|
||||
typedef PulseFlags PulseBackendFlags;
|
||||
|
||||
@@ -75,6 +76,7 @@ typedef enum PulseShaderFormatsBits
|
||||
PULSE_SHADER_FORMAT_METALLIB_BIT = PULSE_BIT(3), // Can be used by Metal backend
|
||||
PULSE_SHADER_FORMAT_WGSL_BIT = PULSE_BIT(4), // Can be used by WebGPU backend
|
||||
PULSE_SHADER_FORMAT_GLSL_BIT = PULSE_BIT(5), // Can be used by OpenGL / OpenGL_ES backend
|
||||
PULSE_SHADER_FORMAT_DXBC_BIT = PULSE_BIT(6), // Can be used by D3D11 backend
|
||||
// More to come
|
||||
} PulseShaderFormatsBits;
|
||||
typedef PulseFlags PulseShaderFormatsFlags;
|
||||
|
||||
@@ -83,6 +83,14 @@ extern "C" {
|
||||
#define PULSE_API
|
||||
#endif
|
||||
|
||||
#ifdef PULSE_COMPILER_MSVC
|
||||
#define PULSE_IMPORT_API __declspec(dllimport)
|
||||
#elif defined(PULSE_COMPILER_MINGW)
|
||||
#define PULSE_IMPORT_API __attribute__((dllimport))
|
||||
#else
|
||||
#define PULSE_IMPORT_API
|
||||
#endif
|
||||
|
||||
#ifndef __cplusplus // if we compile in C
|
||||
#ifdef __STDC__
|
||||
#ifdef __STDC_VERSION__
|
||||
|
||||
Reference in New Issue
Block a user