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

A recorded clear or draw command replayed during frame submission. More...

#include <graphics_private.h>

Data Fields

DTTR_BatchRecordType type
union { 
   struct { 
      uint32_t   first_vertex 
      uint32_t   vertex_count 
      DTTR_Uniforms   uniforms 
      SDL_GPUTexture *   texture 
      SDL_GPUSampler *   sampler 
      uint32_t   texture_index 
      int   sampler_index 
      int   blend_mode 
      bool   depth_test 
      bool   depth_write 
   }   draw
   struct { 
      uint32_t   flags 
      SDL_FColor   color 
      float   depth 
   }   clear
}; 

Detailed Description

A recorded clear or draw command replayed during frame submission.

Definition at line 153 of file graphics_private.h.

Field Documentation

◆ [union]

union { ... } DTTR_BatchRecord

◆ blend_mode

int DTTR_BatchRecord::blend_mode

◆ [struct]

struct { ... } DTTR_BatchRecord::clear

◆ color

SDL_FColor DTTR_BatchRecord::color

◆ depth

float DTTR_BatchRecord::depth

◆ depth_test

bool DTTR_BatchRecord::depth_test

◆ depth_write

bool DTTR_BatchRecord::depth_write

◆ [struct]

struct { ... } DTTR_BatchRecord::draw

◆ first_vertex

uint32_t DTTR_BatchRecord::first_vertex

◆ flags

uint32_t DTTR_BatchRecord::flags

◆ sampler

SDL_GPUSampler* DTTR_BatchRecord::sampler

Definition at line 162 of file graphics_private.h.

Referenced by d3d_device7_record_draw(), and draw_batch_record().

◆ sampler_index

int DTTR_BatchRecord::sampler_index

Definition at line 164 of file graphics_private.h.

Referenced by d3d_device7_record_draw(), and replay_batch_records_gl().

◆ texture

SDL_GPUTexture* DTTR_BatchRecord::texture

Definition at line 161 of file graphics_private.h.

Referenced by d3d_device7_record_draw(), and draw_batch_record().

◆ texture_index

uint32_t DTTR_BatchRecord::texture_index

Definition at line 163 of file graphics_private.h.

Referenced by d3d_device7_record_draw(), and replay_batch_records_gl().

◆ type

◆ uniforms

DTTR_Uniforms DTTR_BatchRecord::uniforms

◆ vertex_count

uint32_t DTTR_BatchRecord::vertex_count

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