102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
Loading...
Searching...
No Matches
backend_sdl3gpu_private.h File Reference
#include "graphics_private.h"

Go to the source code of this file.

Data Structures

struct  sdl3_gpu_backend_data
 SDL3GPU backend-private deferred texture destroy queue. More...

Functions

bool dttr_graphics_sdl3gpu_create_pipelines ()
 Builds all graphics pipelines used by the SDL3 GPU backend.
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.

Function Documentation

◆ dttr_graphics_sdl3gpu_create_pipelines()

bool dttr_graphics_sdl3gpu_create_pipelines ( )

Builds all graphics pipelines used by the SDL3 GPU backend.

Definition at line 207 of file backend_sdl3gpu_pipelines.c.

References create_graphics_pipelines(), create_shader(), dttr_backend, DTTR_LOG_ERROR, get_basic_frag_blob(), get_basic_vert_blob(), NULL, release_shader_pair(), and state.

Referenced by dttr_graphics_sdl3gpu_init().

◆ dttr_graphics_sdl3gpu_create_resources()

bool dttr_graphics_sdl3gpu_create_resources ( )

◆ dttr_graphics_sdl3gpu_resize_render_textures()

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().