Quake II RTX doxygen  1.0 dev
global_ubo.h File Reference
#include "constants.h"

Go to the source code of this file.

Classes

struct  ModelInstance
 
struct  BspMeshInstance
 
struct  QVKUniformBuffer_s
 
struct  QVKInstanceBuffer_s
 

Macros

#define GLOBAL_UBO_BINDING_IDX   0
 
#define GLOBAL_INSTANCE_BUFFER_BINDING_IDX   1
 
#define UBO_CVAR_DO(name, default_value)   GLOBAL_UBO_VAR_LIST_DO(float, name)
 
#define UBO_CVAR_LIST
 
#define GLOBAL_UBO_VAR_LIST
 
#define INSTANCE_BUFFER_VAR_LIST
 
#define int_t   int32_t
 
#define GLOBAL_UBO_VAR_LIST_DO(type, name)   type##_t name;
 
#define INSTANCE_BUFFER_VAR_LIST_DO(type, name)   type name;
 

Typedefs

typedef uint32_t uvec4_t[4]
 
typedef int ivec4_t[4]
 
typedef uint32_t uint
 
typedef struct QVKUniformBuffer_s QVKUniformBuffer_t
 
typedef struct QVKInstanceBuffer_s QVKInstanceBuffer_t
 

Macro Definition Documentation

◆ GLOBAL_INSTANCE_BUFFER_BINDING_IDX

#define GLOBAL_INSTANCE_BUFFER_BINDING_IDX   1

Definition at line 26 of file global_ubo.h.

◆ GLOBAL_UBO_BINDING_IDX

#define GLOBAL_UBO_BINDING_IDX   0

Definition at line 25 of file global_ubo.h.

◆ GLOBAL_UBO_VAR_LIST

#define GLOBAL_UBO_VAR_LIST

Definition at line 119 of file global_ubo.h.

◆ GLOBAL_UBO_VAR_LIST_DO

#define GLOBAL_UBO_VAR_LIST_DO (   type,
  name 
)    type##_t name;

Definition at line 248 of file global_ubo.h.

◆ INSTANCE_BUFFER_VAR_LIST

#define INSTANCE_BUFFER_VAR_LIST
Value:
INSTANCE_BUFFER_VAR_LIST_DO(uint, model_current_to_prev [SHADER_MAX_ENTITIES]) \
INSTANCE_BUFFER_VAR_LIST_DO(uint, model_prev_to_current [SHADER_MAX_ENTITIES]) \
INSTANCE_BUFFER_VAR_LIST_DO(uint, world_current_to_prev [SHADER_MAX_BSP_ENTITIES]) \
INSTANCE_BUFFER_VAR_LIST_DO(uint, world_prev_to_current [SHADER_MAX_BSP_ENTITIES]) \
INSTANCE_BUFFER_VAR_LIST_DO(uint, bsp_prim_offset [SHADER_MAX_BSP_ENTITIES]) \
INSTANCE_BUFFER_VAR_LIST_DO(uint, model_idx_offset [SHADER_MAX_ENTITIES]) \
INSTANCE_BUFFER_VAR_LIST_DO(uint, model_cluster_id [SHADER_MAX_ENTITIES]) \
INSTANCE_BUFFER_VAR_LIST_DO(uint, model_cluster_id_prev [SHADER_MAX_ENTITIES]) \
INSTANCE_BUFFER_VAR_LIST_DO(uint, bsp_cluster_id [SHADER_MAX_BSP_ENTITIES]) \
INSTANCE_BUFFER_VAR_LIST_DO(uint, bsp_cluster_id_prev [SHADER_MAX_BSP_ENTITIES]) \
INSTANCE_BUFFER_VAR_LIST_DO(ModelInstance, model_instances [SHADER_MAX_ENTITIES]) \
INSTANCE_BUFFER_VAR_LIST_DO(ModelInstance, model_instances_prev [SHADER_MAX_ENTITIES]) \
INSTANCE_BUFFER_VAR_LIST_DO(BspMeshInstance, bsp_mesh_instances [SHADER_MAX_BSP_ENTITIES]) \
INSTANCE_BUFFER_VAR_LIST_DO(BspMeshInstance, bsp_mesh_instances_prev [SHADER_MAX_BSP_ENTITIES]) \
/* stores the offset into the instance buffer in numberof primitives */ \
INSTANCE_BUFFER_VAR_LIST_DO(uint, model_instance_buf_offset[SHADER_MAX_ENTITIES]) \
INSTANCE_BUFFER_VAR_LIST_DO(uint, model_instance_buf_size [SHADER_MAX_ENTITIES]) \
INSTANCE_BUFFER_VAR_LIST_DO(uint, bsp_instance_buf_offset [SHADER_MAX_BSP_ENTITIES]) \
INSTANCE_BUFFER_VAR_LIST_DO(uint, bsp_instance_buf_size [SHADER_MAX_BSP_ENTITIES]) \

Definition at line 203 of file global_ubo.h.

◆ INSTANCE_BUFFER_VAR_LIST_DO

#define INSTANCE_BUFFER_VAR_LIST_DO (   type,
  name 
)    type name;

Definition at line 254 of file global_ubo.h.

◆ int_t

#define int_t   int32_t

Definition at line 246 of file global_ubo.h.

◆ UBO_CVAR_DO

#define UBO_CVAR_DO (   name,
  default_value 
)    GLOBAL_UBO_VAR_LIST_DO(float, name)

Definition at line 29 of file global_ubo.h.

◆ UBO_CVAR_LIST

#define UBO_CVAR_LIST

Definition at line 36 of file global_ubo.h.

Typedef Documentation

◆ ivec4_t

typedef int ivec4_t[4]

Definition at line 232 of file global_ubo.h.

◆ QVKInstanceBuffer_t

◆ QVKUniformBuffer_t

◆ uint

typedef uint32_t uint

Definition at line 233 of file global_ubo.h.

◆ uvec4_t

typedef uint32_t uvec4_t[4]

Definition at line 231 of file global_ubo.h.

uint
uint32_t uint
Definition: global_ubo.h:233
ModelInstance
Definition: global_ubo.h:235
SHADER_MAX_BSP_ENTITIES
#define SHADER_MAX_BSP_ENTITIES
Definition: constants.h:103
SHADER_MAX_ENTITIES
#define SHADER_MAX_ENTITIES
Definition: constants.h:102
BspMeshInstance
Definition: global_ubo.h:241
INSTANCE_BUFFER_VAR_LIST_DO
#define INSTANCE_BUFFER_VAR_LIST_DO(type, name)
Definition: global_ubo.h:254