102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
Loading...
Searching...
No Matches
backend_sdl3gpu_resources.c File Reference
#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.

Function Documentation

◆ create_dummy_texture()

void create_dummy_texture ( DTTR_BackendState * state)
static

Definition at line 100 of file backend_sdl3gpu_resources.c.

References state.

Referenced by dttr_graphics_sdl3gpu_create_resources().

◆ create_frame_buffers()

void create_frame_buffers ( DTTR_BackendState * state)
static

◆ create_render_textures()

void create_render_textures ( DTTR_BackendState * state)
static

◆ create_samplers()

void create_samplers ( DTTR_BackendState * state)
static

Definition at line 27 of file backend_sdl3gpu_resources.c.

References DTTR_MAX_ANISOTROPY, and state.

Referenced by dttr_graphics_sdl3gpu_create_resources().

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

◆ upload_dummy_white_pixel()

void upload_dummy_white_pixel ( DTTR_BackendState * state)
static

Definition at line 115 of file backend_sdl3gpu_resources.c.

References dst, src, and state.

Referenced by dttr_graphics_sdl3gpu_create_resources().