|
102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
|
#include "backend_sdl3gpu_private.h"#include "graphics_private.h"#include <dttr_log.h>#include <string.h>Go to the source code of this file.
Functions | |
| static void | create_frame_buffers (DTTR_BackendState *state) |
| static void | create_samplers (DTTR_BackendState *state) |
| static void | create_render_textures (DTTR_BackendState *state) |
| static void | create_dummy_texture (DTTR_BackendState *state) |
| static void | upload_dummy_white_pixel (DTTR_BackendState *state) |
| bool | dttr_graphics_sdl3gpu_create_resources () |
| Creates shared GPU resources used by the SDL3 GPU backend. | |
| bool | dttr_graphics_sdl3gpu_resize_render_textures (int width, int height) |
| Recreates resolution-dependent render textures after updating target size. | |
|
static |
Definition at line 100 of file backend_sdl3gpu_resources.c.
References state.
Referenced by dttr_graphics_sdl3gpu_create_resources().
|
static |
Definition at line 9 of file backend_sdl3gpu_resources.c.
References DTTR_MAX_FRAME_VERTICES, DTTR_VERTEX_SIZE, and state.
Referenced by dttr_graphics_sdl3gpu_create_resources().
|
static |
Definition at line 48 of file backend_sdl3gpu_resources.c.
Referenced by dttr_graphics_sdl3gpu_create_resources(), and dttr_graphics_sdl3gpu_resize_render_textures().
|
static |
Definition at line 27 of file backend_sdl3gpu_resources.c.
References DTTR_MAX_ANISOTROPY, and state.
Referenced by dttr_graphics_sdl3gpu_create_resources().
| bool dttr_graphics_sdl3gpu_create_resources | ( | ) |
Creates shared GPU resources used by the SDL3 GPU backend.
Definition at line 171 of file backend_sdl3gpu_resources.c.
References create_dummy_texture(), create_frame_buffers(), create_render_textures(), create_samplers(), dttr_backend, DTTR_LOG_ERROR, DTTR_SAMPLER_COUNT, state, and upload_dummy_white_pixel().
Referenced by dttr_graphics_sdl3gpu_init().
| bool dttr_graphics_sdl3gpu_resize_render_textures | ( | int | width, |
| int | height ) |
Recreates resolution-dependent render textures after updating target size.
Definition at line 214 of file backend_sdl3gpu_resources.c.
References create_render_textures(), dttr_backend, DTTR_LOG_ERROR, NULL, and state.
Referenced by resize().
|
static |
Definition at line 115 of file backend_sdl3gpu_resources.c.
References dst, src, and state.
Referenced by dttr_graphics_sdl3gpu_create_resources().