#include "vkpt.h"
#include "shader/vertex_buffer.h"
#include "material.h"
#include <assert.h>
#include <stdio.h>
#include "precomputed_sky.h"
Go to the source code of this file.
Classes | |
union | Bits |
Functions | |
VkResult | vkpt_vertex_buffer_upload_staging () |
VkResult | vkpt_light_buffer_upload_staging (VkCommandBuffer cmd_buf) |
VkResult | vkpt_vertex_buffer_upload_bsp_mesh_to_staging (bsp_mesh_t *bsp_mesh) |
void | vkpt_light_buffer_reset_counts () |
void | inject_model_lights (bsp_mesh_t *bsp_mesh, bsp_t *bsp, int num_model_lights, light_poly_t *transformed_model_lights, int model_light_offset, uint32_t *dst_list_offsets, uint32_t *dst_lists) |
static void | copy_light (const light_poly_t *light, float *vblight, const float *sky_radiance) |
static uint16_t | floatToHalf (float value) |
VkResult | vkpt_light_buffer_upload_to_staging (qboolean render_world, bsp_mesh_t *bsp_mesh, bsp_t *bsp, int num_model_lights, light_poly_t *transformed_model_lights, const float *sky_radiance) |
VkResult | vkpt_vertex_buffer_upload_models_to_staging () |
VkResult | vkpt_vertex_buffer_create () |
VkResult | vkpt_readback (ReadbackBuffer *dst) |
VkResult | vkpt_vertex_buffer_destroy () |
VkResult | vkpt_light_stats_create (bsp_mesh_t *bsp_mesh) |
VkResult | vkpt_light_stats_destroy () |
VkResult | vkpt_vertex_buffer_create_pipelines () |
VkResult | vkpt_vertex_buffer_destroy_pipelines () |
VkResult | vkpt_vertex_buffer_create_instance (VkCommandBuffer cmd_buf, uint32_t num_instances, qboolean update_world_animations) |
Variables | |
static VkDescriptorPool | desc_pool_vertex_buffer |
static VkPipeline | pipeline_instance_geometry |
static VkPipeline | pipeline_animate_materials |
static VkPipelineLayout | pipeline_layout_instance_geometry |
static int | local_light_counts [MAX_MAP_LEAFS] |
static int | cluster_light_counts [MAX_MAP_LEAFS] |
static int | light_list_tails [MAX_MAP_LEAFS] |
static int | max_cluster_model_lights [MAX_MAP_LEAFS] |
static int | max_model_lights |
vkpt_refdef_t | vkpt_refdef |
char | cluster_debug_mask [VIS_MAX_BYTES] |
|
inlinestatic |
Definition at line 215 of file vertex_buffer.c.
Referenced by vkpt_light_buffer_upload_to_staging().
|
static |
Definition at line 265 of file vertex_buffer.c.
Referenced by vkpt_light_buffer_upload_to_staging().
void inject_model_lights | ( | bsp_mesh_t * | bsp_mesh, |
bsp_t * | bsp, | ||
int | num_model_lights, | ||
light_poly_t * | transformed_model_lights, | ||
int | model_light_offset, | ||
uint32_t * | dst_list_offsets, | ||
uint32_t * | dst_lists | ||
) |
Definition at line 138 of file vertex_buffer.c.
Referenced by vkpt_light_buffer_upload_to_staging().
void vkpt_light_buffer_reset_counts | ( | ) |
VkResult vkpt_light_buffer_upload_staging | ( | VkCommandBuffer | cmd_buf | ) |
Definition at line 69 of file vertex_buffer.c.
Referenced by R_RenderFrame_RTX().
VkResult vkpt_light_buffer_upload_to_staging | ( | qboolean | render_world, |
bsp_mesh_t * | bsp_mesh, | ||
bsp_t * | bsp, | ||
int | num_model_lights, | ||
light_poly_t * | transformed_model_lights, | ||
const float * | sky_radiance | ||
) |
Definition at line 310 of file vertex_buffer.c.
Referenced by R_RenderFrame_RTX().
VkResult vkpt_light_stats_create | ( | bsp_mesh_t * | bsp_mesh | ) |
Definition at line 699 of file vertex_buffer.c.
Referenced by R_BeginRegistration_RTX().
VkResult vkpt_light_stats_destroy | ( | ) |
Definition at line 748 of file vertex_buffer.c.
Referenced by vkpt_destroy_all(), and vkpt_light_stats_create().
VkResult vkpt_readback | ( | ReadbackBuffer * | dst | ) |
VkResult vkpt_vertex_buffer_create | ( | ) |
Definition at line 492 of file vertex_buffer.c.
VkResult vkpt_vertex_buffer_create_instance | ( | VkCommandBuffer | cmd_buf, |
uint32_t | num_instances, | ||
qboolean | update_world_animations | ||
) |
Definition at line 818 of file vertex_buffer.c.
Referenced by R_RenderFrame_RTX().
VkResult vkpt_vertex_buffer_create_pipelines | ( | ) |
VkResult vkpt_vertex_buffer_destroy | ( | ) |
Definition at line 675 of file vertex_buffer.c.
VkResult vkpt_vertex_buffer_destroy_pipelines | ( | ) |
Definition at line 800 of file vertex_buffer.c.
VkResult vkpt_vertex_buffer_upload_bsp_mesh_to_staging | ( | bsp_mesh_t * | bsp_mesh | ) |
VkResult vkpt_vertex_buffer_upload_models_to_staging | ( | ) |
Definition at line 412 of file vertex_buffer.c.
Referenced by R_BeginFrame_RTX().
VkResult vkpt_vertex_buffer_upload_staging | ( | ) |
Definition at line 36 of file vertex_buffer.c.
Referenced by R_BeginFrame_RTX(), and R_BeginRegistration_RTX().
char cluster_debug_mask[VIS_MAX_BYTES] |
Definition at line 83 of file main.c.
Referenced by R_BeginRegistration_RTX(), vkpt_light_buffer_upload_to_staging(), and vkpt_show_pvs().
|
static |
Definition at line 126 of file vertex_buffer.c.
Referenced by collect_cluster_lights(), and inject_model_lights().
|
static |
Definition at line 30 of file vertex_buffer.c.
Referenced by vkpt_vertex_buffer_create(), and vkpt_vertex_buffer_destroy().
|
static |
Definition at line 127 of file vertex_buffer.c.
Referenced by inject_model_lights().
|
static |
Definition at line 125 of file vertex_buffer.c.
Referenced by inject_model_lights().
|
static |
Definition at line 128 of file vertex_buffer.c.
Referenced by inject_model_lights(), and vkpt_light_buffer_reset_counts().
|
static |
Definition at line 129 of file vertex_buffer.c.
Referenced by vkpt_light_buffer_reset_counts(), and vkpt_light_buffer_upload_to_staging().
|
static |
Definition at line 32 of file vertex_buffer.c.
Referenced by vkpt_vertex_buffer_create_instance(), vkpt_vertex_buffer_create_pipelines(), and vkpt_vertex_buffer_destroy_pipelines().
|
static |
Definition at line 31 of file vertex_buffer.c.
Referenced by vkpt_vertex_buffer_create_instance(), vkpt_vertex_buffer_create_pipelines(), and vkpt_vertex_buffer_destroy_pipelines().
|
static |
Definition at line 33 of file vertex_buffer.c.
Referenced by vkpt_vertex_buffer_create_instance(), vkpt_vertex_buffer_create_pipelines(), and vkpt_vertex_buffer_destroy_pipelines().
vkpt_refdef_t vkpt_refdef |
Definition at line 372 of file main.c.
Referenced by copy_light(), vkpt_light_buffer_upload_to_staging(), and vkpt_vertex_buffer_create_instance().