102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
Loading...
Searching...
No Matches
DTTR_BackendState Struct Reference

#include <graphics_private.h>

Data Fields

SDL_ThreadID gpu_thread_id
SDL_Windowwindow
SDL_GPUDevice * device
SDL_GPUShaderFormat shader_format
SDL_GPUSampleCount msaa_sample_count
SDL_GPUCommandBuffer * cmd
SDL_GPUTexture * swapchain_tex
SDL_GPURenderPass * render_pass
SDL_GPUGraphicsPipeline * pipelines [DTTR_PIPELINE_COUNT]
SDL_GPUSampler * samplers [DTTR_SAMPLER_COUNT]
SDL_GPUTexture * dummy_texture
SDL_GPUTexture * depth_texture
SDL_GPUTexture * msaa_render_target
SDL_GPUTexture * render_target
SDL_GPUTexture * video_texture
int video_width
int video_height
SDL_GPUBuffer * vertex_buffer
SDL_GPUTransferBuffer * transfer_buffer
int logical_width
int logical_height
int width
int height
Uint32 swapchain_width
Uint32 swapchain_height
SDL_FColor clear_color
SDL_GPUTexture * bound_texture
DTTR_Texture bound_texture_handle
bool depth_test
bool depth_write
bool blend_enabled
DTTR_TextureAddress addr_u
DTTR_TextureAddress addr_v
DTTR_BlendFactor blend_dst
DWORD stage_color_op
DWORD stage_color_arg1
DWORD stage_color_arg2
DWORD stage_alpha_op
DWORD stage_alpha_arg1
DWORD stage_alpha_arg2
int viewport_x
int viewport_y
int viewport_w
int viewport_h
float viewport_min_z
float viewport_max_z
float proj [16]
float view [16]
float model [16]
DTTR_BatchRecordVector batch_records
uint32_t vertex_offset
voidtransfer_mapped
uint64_t frame_index
DTTR_StagedTexture staged_textures [DTTR_MAX_STAGED_TEXTURES]
int staged_texture_count
DTTR_IntVector pending_upload_indices
SDL_Mutex * texture_mutex
DTTR_UploadPoolSlot upload_pool [DTTR_UPLOAD_POOL_SIZE]
uint64_t perf_frame_start_ns
uint64_t perf_cpu_ns_accum
uint64_t perf_upload_bytes_accum
uint32_t perf_upload_textures_accum
uint32_t perf_mips_generated_accum
uint32_t perf_mips_skipped_accum
uint32_t perf_draws_accum
uint32_t perf_clears_accum
uint32_t perf_pipeline_binds_accum
uint32_t perf_sampler_binds_accum
uint32_t perf_frame_accum_count
DTTR_BackendType backend_type
const DTTR_RendererVtblrenderer
voidbackend_data
bool initialized
bool frame_active

Detailed Description

Definition at line 194 of file graphics_private.h.

Field Documentation

◆ addr_u

DTTR_TextureAddress DTTR_BackendState::addr_u

Definition at line 230 of file graphics_private.h.

◆ addr_v

DTTR_TextureAddress DTTR_BackendState::addr_v

Definition at line 231 of file graphics_private.h.

◆ backend_data

void* DTTR_BackendState::backend_data

Definition at line 273 of file graphics_private.h.

◆ backend_type

DTTR_BackendType DTTR_BackendState::backend_type

Definition at line 271 of file graphics_private.h.

◆ batch_records

DTTR_BatchRecordVector DTTR_BackendState::batch_records

Definition at line 248 of file graphics_private.h.

◆ blend_dst

DTTR_BlendFactor DTTR_BackendState::blend_dst

Definition at line 232 of file graphics_private.h.

◆ blend_enabled

bool DTTR_BackendState::blend_enabled

Definition at line 229 of file graphics_private.h.

◆ bound_texture

SDL_GPUTexture* DTTR_BackendState::bound_texture

Definition at line 225 of file graphics_private.h.

◆ bound_texture_handle

DTTR_Texture DTTR_BackendState::bound_texture_handle

Definition at line 226 of file graphics_private.h.

◆ clear_color

SDL_FColor DTTR_BackendState::clear_color

Definition at line 224 of file graphics_private.h.

◆ cmd

SDL_GPUCommandBuffer* DTTR_BackendState::cmd

Definition at line 201 of file graphics_private.h.

◆ depth_test

bool DTTR_BackendState::depth_test

Definition at line 227 of file graphics_private.h.

◆ depth_texture

SDL_GPUTexture* DTTR_BackendState::depth_texture

Definition at line 209 of file graphics_private.h.

◆ depth_write

bool DTTR_BackendState::depth_write

Definition at line 228 of file graphics_private.h.

◆ device

SDL_GPUDevice* DTTR_BackendState::device

Definition at line 198 of file graphics_private.h.

◆ dummy_texture

SDL_GPUTexture* DTTR_BackendState::dummy_texture

Definition at line 208 of file graphics_private.h.

◆ frame_active

bool DTTR_BackendState::frame_active

Definition at line 276 of file graphics_private.h.

◆ frame_index

uint64_t DTTR_BackendState::frame_index

Definition at line 251 of file graphics_private.h.

◆ gpu_thread_id

SDL_ThreadID DTTR_BackendState::gpu_thread_id

Definition at line 195 of file graphics_private.h.

◆ height

int DTTR_BackendState::height

Definition at line 220 of file graphics_private.h.

◆ initialized

bool DTTR_BackendState::initialized

Definition at line 275 of file graphics_private.h.

◆ logical_height

int DTTR_BackendState::logical_height

Definition at line 218 of file graphics_private.h.

◆ logical_width

int DTTR_BackendState::logical_width

Definition at line 217 of file graphics_private.h.

◆ model

float DTTR_BackendState::model[16]

Definition at line 247 of file graphics_private.h.

◆ msaa_render_target

SDL_GPUTexture* DTTR_BackendState::msaa_render_target

Definition at line 210 of file graphics_private.h.

◆ msaa_sample_count

SDL_GPUSampleCount DTTR_BackendState::msaa_sample_count

Definition at line 200 of file graphics_private.h.

◆ pending_upload_indices

DTTR_IntVector DTTR_BackendState::pending_upload_indices

Definition at line 255 of file graphics_private.h.

◆ perf_clears_accum

uint32_t DTTR_BackendState::perf_clears_accum

Definition at line 266 of file graphics_private.h.

◆ perf_cpu_ns_accum

uint64_t DTTR_BackendState::perf_cpu_ns_accum

Definition at line 260 of file graphics_private.h.

◆ perf_draws_accum

uint32_t DTTR_BackendState::perf_draws_accum

Definition at line 265 of file graphics_private.h.

◆ perf_frame_accum_count

uint32_t DTTR_BackendState::perf_frame_accum_count

Definition at line 269 of file graphics_private.h.

◆ perf_frame_start_ns

uint64_t DTTR_BackendState::perf_frame_start_ns

Definition at line 259 of file graphics_private.h.

◆ perf_mips_generated_accum

uint32_t DTTR_BackendState::perf_mips_generated_accum

Definition at line 263 of file graphics_private.h.

◆ perf_mips_skipped_accum

uint32_t DTTR_BackendState::perf_mips_skipped_accum

Definition at line 264 of file graphics_private.h.

◆ perf_pipeline_binds_accum

uint32_t DTTR_BackendState::perf_pipeline_binds_accum

Definition at line 267 of file graphics_private.h.

◆ perf_sampler_binds_accum

uint32_t DTTR_BackendState::perf_sampler_binds_accum

Definition at line 268 of file graphics_private.h.

◆ perf_upload_bytes_accum

uint64_t DTTR_BackendState::perf_upload_bytes_accum

Definition at line 261 of file graphics_private.h.

◆ perf_upload_textures_accum

uint32_t DTTR_BackendState::perf_upload_textures_accum

Definition at line 262 of file graphics_private.h.

◆ pipelines

SDL_GPUGraphicsPipeline* DTTR_BackendState::pipelines[DTTR_PIPELINE_COUNT]

Definition at line 205 of file graphics_private.h.

◆ proj

float DTTR_BackendState::proj[16]

Definition at line 245 of file graphics_private.h.

◆ render_pass

SDL_GPURenderPass* DTTR_BackendState::render_pass

Definition at line 203 of file graphics_private.h.

◆ render_target

SDL_GPUTexture* DTTR_BackendState::render_target

Definition at line 211 of file graphics_private.h.

◆ renderer

const DTTR_RendererVtbl* DTTR_BackendState::renderer

Definition at line 272 of file graphics_private.h.

◆ samplers

SDL_GPUSampler* DTTR_BackendState::samplers[DTTR_SAMPLER_COUNT]

Definition at line 207 of file graphics_private.h.

◆ shader_format

SDL_GPUShaderFormat DTTR_BackendState::shader_format

Definition at line 199 of file graphics_private.h.

◆ stage_alpha_arg1

DWORD DTTR_BackendState::stage_alpha_arg1

Definition at line 237 of file graphics_private.h.

◆ stage_alpha_arg2

DWORD DTTR_BackendState::stage_alpha_arg2

Definition at line 238 of file graphics_private.h.

◆ stage_alpha_op

DWORD DTTR_BackendState::stage_alpha_op

Definition at line 236 of file graphics_private.h.

◆ stage_color_arg1

DWORD DTTR_BackendState::stage_color_arg1

Definition at line 234 of file graphics_private.h.

◆ stage_color_arg2

DWORD DTTR_BackendState::stage_color_arg2

Definition at line 235 of file graphics_private.h.

◆ stage_color_op

DWORD DTTR_BackendState::stage_color_op

Definition at line 233 of file graphics_private.h.

◆ staged_texture_count

int DTTR_BackendState::staged_texture_count

Definition at line 254 of file graphics_private.h.

◆ staged_textures

DTTR_StagedTexture DTTR_BackendState::staged_textures[DTTR_MAX_STAGED_TEXTURES]

Definition at line 253 of file graphics_private.h.

◆ swapchain_height

Uint32 DTTR_BackendState::swapchain_height

Definition at line 222 of file graphics_private.h.

◆ swapchain_tex

SDL_GPUTexture* DTTR_BackendState::swapchain_tex

Definition at line 202 of file graphics_private.h.

◆ swapchain_width

Uint32 DTTR_BackendState::swapchain_width

Definition at line 221 of file graphics_private.h.

◆ texture_mutex

SDL_Mutex* DTTR_BackendState::texture_mutex

Definition at line 256 of file graphics_private.h.

◆ transfer_buffer

SDL_GPUTransferBuffer* DTTR_BackendState::transfer_buffer

Definition at line 216 of file graphics_private.h.

◆ transfer_mapped

void* DTTR_BackendState::transfer_mapped

Definition at line 250 of file graphics_private.h.

◆ upload_pool

DTTR_UploadPoolSlot DTTR_BackendState::upload_pool[DTTR_UPLOAD_POOL_SIZE]

Definition at line 257 of file graphics_private.h.

◆ vertex_buffer

SDL_GPUBuffer* DTTR_BackendState::vertex_buffer

Definition at line 215 of file graphics_private.h.

◆ vertex_offset

uint32_t DTTR_BackendState::vertex_offset

Definition at line 249 of file graphics_private.h.

◆ video_height

int DTTR_BackendState::video_height

Definition at line 214 of file graphics_private.h.

◆ video_texture

SDL_GPUTexture* DTTR_BackendState::video_texture

Definition at line 212 of file graphics_private.h.

◆ video_width

int DTTR_BackendState::video_width

Definition at line 213 of file graphics_private.h.

◆ view

float DTTR_BackendState::view[16]

Definition at line 246 of file graphics_private.h.

◆ viewport_h

int DTTR_BackendState::viewport_h

Definition at line 242 of file graphics_private.h.

◆ viewport_max_z

float DTTR_BackendState::viewport_max_z

Definition at line 244 of file graphics_private.h.

◆ viewport_min_z

float DTTR_BackendState::viewport_min_z

Definition at line 243 of file graphics_private.h.

◆ viewport_w

int DTTR_BackendState::viewport_w

Definition at line 241 of file graphics_private.h.

◆ viewport_x

int DTTR_BackendState::viewport_x

Definition at line 239 of file graphics_private.h.

◆ viewport_y

int DTTR_BackendState::viewport_y

Definition at line 240 of file graphics_private.h.

◆ width

int DTTR_BackendState::width

Definition at line 219 of file graphics_private.h.

◆ window

SDL_Window* DTTR_BackendState::window

Definition at line 197 of file graphics_private.h.


The documentation for this struct was generated from the following file: