35 lines
935 B
C
35 lines
935 B
C
/* SPDX-License-Identifier: GPL-3.0-or-later */
|
|
#ifndef CHIMERA_GFX_ADAPTERS_SDL2_H
|
|
#define CHIMERA_GFX_ADAPTERS_SDL2_H
|
|
|
|
#include <chimera/gfx/chimera_gfx.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct chimera_gfx_sdl2_adapter_info {
|
|
size_t struct_size;
|
|
uint32_t api_version;
|
|
uint32_t accelerated_renderer_available;
|
|
uint32_t reuses_ps5_window_backend;
|
|
uint32_t reuses_ps5_input_audio;
|
|
uint32_t software_fallback_required;
|
|
} chimera_gfx_sdl2_adapter_info;
|
|
|
|
#define CHIMERA_GFX_SDL2_ADAPTER_INFO_INIT \
|
|
{sizeof(chimera_gfx_sdl2_adapter_info), 0u, 0u, 0u, 0u, 0u}
|
|
|
|
chimera_gfx_status
|
|
chimera_gfx_sdl2_query_scaffold(chimera_gfx_sdl2_adapter_info *out_info);
|
|
|
|
chimera_gfx_status
|
|
chimera_gfx_sdl2_create_renderer_scaffold(chimera_gfx_context *context,
|
|
uint32_t request_acceleration);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|