2021-01-19 16:25:54 +00:00
|
|
|
/*
|
|
|
|
qf_bsp.h
|
|
|
|
|
|
|
|
Vulkan specific brush model stuff
|
|
|
|
|
|
|
|
Copyright (C) 2012 Bill Currie <bill@taniwha.org>
|
|
|
|
Copyright (C) 2021 Bill Currie <bill@taniwha.org>
|
|
|
|
|
|
|
|
Author: Bill Currie <bill@taniwha.org>
|
|
|
|
Date: 2012/1/7
|
|
|
|
Date: 2021/1/18
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU General Public License
|
|
|
|
as published by the Free Software Foundation; either version 2
|
|
|
|
of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
|
|
|
See the GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to:
|
|
|
|
|
|
|
|
Free Software Foundation, Inc.
|
|
|
|
59 Temple Place - Suite 330
|
|
|
|
Boston, MA 02111-1307, USA
|
|
|
|
|
|
|
|
*/
|
|
|
|
#ifndef __QF_Vulkan_qf_bsp_h
|
|
|
|
#define __QF_Vulkan_qf_bsp_h
|
|
|
|
|
|
|
|
#include "QF/darray.h"
|
|
|
|
#include "QF/model.h"
|
|
|
|
#include "QF/Vulkan/qf_vid.h"
|
2021-02-14 02:35:06 +00:00
|
|
|
#include "QF/Vulkan/command.h"
|
2021-01-19 16:25:54 +00:00
|
|
|
|
2021-04-25 06:47:50 +00:00
|
|
|
#include "QF/simd/types.h"
|
|
|
|
|
2022-06-08 09:16:10 +00:00
|
|
|
/** \defgroup vulkan_bsp Brush model rendering
|
|
|
|
\ingroup vulkan
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** Represent a single face (polygon) of a brush model.
|
|
|
|
*
|
|
|
|
* There is one of these for each face in the bsp (brush) model, built at run
|
|
|
|
* time when the model is loaded (actually, after all models are loaded but
|
|
|
|
* before rendering begins).
|
|
|
|
*/
|
2022-05-22 16:28:43 +00:00
|
|
|
typedef struct bsp_face_s {
|
2022-06-08 09:16:10 +00:00
|
|
|
uint32_t first_index; ///< index of first index in poly_indices
|
|
|
|
uint32_t index_count; ///< includes primitive restart
|
|
|
|
uint32_t tex_id; ///< texture bound to this face (maybe animated)
|
|
|
|
uint32_t flags; ///< face drawing (alpha, side, sky, turb)
|
2022-05-22 16:28:43 +00:00
|
|
|
} bsp_face_t;
|
|
|
|
|
2022-06-08 09:16:10 +00:00
|
|
|
/** Represent a brush model, both main and sub-model.
|
|
|
|
*
|
|
|
|
* Used for rendering non-world models.
|
|
|
|
*/
|
2022-05-25 04:29:11 +00:00
|
|
|
typedef struct bsp_model_s {
|
|
|
|
uint32_t first_face;
|
|
|
|
uint32_t face_count;
|
|
|
|
} bsp_model_t;
|
|
|
|
|
2022-05-31 06:32:12 +00:00
|
|
|
#if 0
|
2022-05-26 13:31:31 +00:00
|
|
|
typedef struct texname_s {
|
|
|
|
char name[MIPTEXNAME];
|
|
|
|
} texname_t;
|
|
|
|
|
|
|
|
typedef struct texmip_s {
|
|
|
|
uint32_t width;
|
|
|
|
uint32_t height;
|
|
|
|
uint32_t offsets[MIPLEVELS];
|
|
|
|
} texmip_t;
|
2022-05-31 06:32:12 +00:00
|
|
|
#endif
|
2022-06-08 09:16:10 +00:00
|
|
|
/** \defgroup vulkan_bsp_texanim Animated Textures
|
|
|
|
* \ingroup vulkan_bsp
|
|
|
|
*
|
|
|
|
* Brush models support texture animations. For general details, see
|
|
|
|
* \ref bsp_texture_animation. These structures allow for quick lookup
|
|
|
|
* of the correct texture to use in an animation cycle, or even whether there
|
|
|
|
* is an animation cycle.
|
|
|
|
*/
|
|
|
|
///@{
|
|
|
|
/** Represent a texture's animation group.
|
|
|
|
*
|
|
|
|
* Every texture is in an animation group, even when not animated. When the
|
|
|
|
* texture is not animated, `count` is 1, otherwise `count` is the number of
|
|
|
|
* frames in the group, thus every texture has at least one frame.
|
|
|
|
*
|
|
|
|
* Each texture in a particular groupp shares the same `base` frame, with
|
|
|
|
* `offset` giving the texture's relative frame number within the group.
|
|
|
|
* The current frame is given by `base + (anim_index + offset) % count` where
|
|
|
|
* `anim_index` is the global time-based texture animation frame.
|
|
|
|
*/
|
2022-05-26 13:31:31 +00:00
|
|
|
typedef struct texanim_s {
|
2022-06-08 09:16:10 +00:00
|
|
|
uint16_t base; ///< first frame in group
|
|
|
|
byte offset; ///< relative frame in group
|
|
|
|
byte count; ///< number of frames in group
|
2022-05-26 13:31:31 +00:00
|
|
|
} texanim_t;
|
|
|
|
|
2022-06-08 09:16:10 +00:00
|
|
|
/** Holds texture animation data for brush models.
|
|
|
|
*
|
|
|
|
* Brush models support one or two texture animation groups, based on the
|
|
|
|
* entity's frame (0 or non-0). When the entity's frame is 0, group 0 is used,
|
|
|
|
* otherwise group 1 is used. If there is no alternate (group 1) animation
|
|
|
|
* data for the texture, then the texture's group 0 data is copied to group 1
|
|
|
|
* in order to avoid coplications in selecting which texture a face is to use.
|
|
|
|
*
|
|
|
|
* As all of a group's frames are together, `frame_map` is used to get the
|
|
|
|
* actual texture id for the frame.
|
|
|
|
*/
|
2022-05-26 13:31:31 +00:00
|
|
|
typedef struct texdata_s {
|
|
|
|
// texname_t *names;
|
|
|
|
// texmip_t **mips;
|
2022-06-08 09:16:10 +00:00
|
|
|
texanim_t *anim_main; ///< group 0 animations
|
|
|
|
texanim_t *anim_alt; ///< group 1 animations
|
|
|
|
uint16_t *frame_map; ///< map from texture frame to texture id
|
2022-05-26 13:31:31 +00:00
|
|
|
// int num_tex;
|
|
|
|
} texdata_t;
|
2022-06-08 09:16:10 +00:00
|
|
|
///@}
|
2022-05-22 16:28:43 +00:00
|
|
|
|
2022-06-08 09:16:10 +00:00
|
|
|
/** \defgroup vulkan_bsp_draw Brush model drawing
|
|
|
|
* \ingroup vulkan_bsp
|
|
|
|
*/
|
|
|
|
///@{
|
2021-07-21 07:36:51 +00:00
|
|
|
typedef struct vulktex_s {
|
|
|
|
struct qfv_tex_s *tex;
|
2021-12-17 03:20:32 +00:00
|
|
|
VkDescriptorSet descriptor;
|
2022-05-22 16:28:43 +00:00
|
|
|
int tex_id;
|
2021-07-21 07:36:51 +00:00
|
|
|
} vulktex_t;
|
|
|
|
|
2022-05-22 16:28:43 +00:00
|
|
|
typedef struct regtexset_s
|
|
|
|
DARRAY_TYPE (vulktex_t *) regtexset_t;
|
|
|
|
|
2022-06-08 09:16:10 +00:00
|
|
|
/** Represent a single draw call.
|
|
|
|
*
|
|
|
|
* For each texture that has faces to be rendered, one or more draw calls is
|
|
|
|
* made. Normally, only one call per texture is made, but if different models
|
|
|
|
* use the same texture, then a separate draw call is made for each model.
|
|
|
|
* When multiple entities use the same model, instanced rendering is used to
|
|
|
|
* draw all the faces sharing a texture for all the entities using that model.
|
|
|
|
* Thus when there are multiple draw calls for a single texture, they are
|
|
|
|
* grouped together so there is only one bind per texture.
|
|
|
|
*
|
|
|
|
* The index buffer is populated every frame with the vertex indices of the
|
|
|
|
* faces to be rendered for the current frame, grouped by texture and instance
|
|
|
|
* id (model render id).
|
|
|
|
*
|
|
|
|
* The model render id is assigned after models are loaded but before rendering
|
|
|
|
* begins and remains constant until the next time models are loaded (level
|
|
|
|
* change).
|
|
|
|
*
|
|
|
|
* The entid buffer is also populated every frame with the render id of the
|
|
|
|
* entities to be drawn that frame, It is used to map gl_InstanceIndex to
|
|
|
|
* entity id so as to look up the entity's transform and color (and any other
|
|
|
|
* data in the future).
|
|
|
|
*
|
|
|
|
* \dot
|
|
|
|
* digraph vulkan_bsp_draw_call {
|
|
|
|
* layout=dot; rankdir=LR; compound=true; nodesep=1.0;
|
|
|
|
* vertices [shape=none,label=< <table border="1" cellborder="1">
|
|
|
|
* <tr><td>vertex</td></tr>
|
|
|
|
* <tr><td>vertex</td></tr>
|
|
|
|
* <tr><td>...</td></tr>
|
|
|
|
* <tr><td port="p">vertex</td></tr>
|
|
|
|
* <tr><td>vertex</td></tr>
|
|
|
|
* </table> >];
|
|
|
|
* indices [shape=none,label=< <table border="1" cellborder="1">
|
|
|
|
* <tr><td>index</td></tr>
|
|
|
|
* <tr><td>index</td></tr>
|
|
|
|
* <tr><td>...</td></tr>
|
|
|
|
* <tr><td port="p">index</td></tr>
|
|
|
|
* <tr><td>index</td></tr>
|
|
|
|
* </table> >];
|
|
|
|
* entids [shape=none,label=< <table border="1" cellborder="1">
|
|
|
|
* <tr><td>entid</td></tr>
|
|
|
|
* <tr><td>...</td></tr>
|
|
|
|
* <tr><td port="p">entid</td></tr>
|
|
|
|
* <tr><td>entid</td></tr>
|
|
|
|
* <tr><td>...</td></tr>
|
|
|
|
* <tr><td>entid</td></tr>
|
|
|
|
* </table> >];
|
|
|
|
* entdata [shape=none,label=< <table border="1" cellborder="1">
|
|
|
|
* <tr><td>transform</td><td>color</td></tr>
|
|
|
|
* <tr><td>transform</td><td>color</td></tr>
|
|
|
|
* <tr><td colspan="2">...</td></tr>
|
|
|
|
* <tr><td port="p">transform</td><td>color</td></tr>
|
|
|
|
* <tr><td colspan="2">...</td></tr>
|
|
|
|
* <tr><td>transform</td><td>color</td></tr>
|
|
|
|
* </table> >];
|
|
|
|
* drawcall [shape=none,label=< <table border="1" cellborder="1">
|
|
|
|
* <tr><td port="tex" >tex_id</td></tr>
|
|
|
|
* <tr><td >inst_id</td></tr>
|
|
|
|
* <tr><td port="ind" >first_index</td></tr>
|
|
|
|
* <tr><td >index_count</td></tr>
|
|
|
|
* <tr><td port="inst">first_instance</td></tr>
|
|
|
|
* <tr><td >instance_count</td></tr>
|
|
|
|
* </table> >];
|
|
|
|
* textures [shape=none,label=< <table border="1" cellborder="1">
|
|
|
|
* <tr><td>texture</td></tr>
|
|
|
|
* <tr><td>texture</td></tr>
|
|
|
|
* <tr><td port="p">texture</td></tr>
|
|
|
|
* <tr><td>...</td></tr>
|
|
|
|
* <tr><td>texture</td></tr>
|
|
|
|
* </table> >];
|
|
|
|
* vertex [label="vertex shader"];
|
|
|
|
* fragment [label="fragment shader"];
|
|
|
|
* drawcall:tex -> textures:p;
|
|
|
|
* drawcall:ind -> indices:p;
|
|
|
|
* drawcall:inst -> entids:p;
|
|
|
|
* entids:p -> entdata:p;
|
|
|
|
* indices:p -> vertices:p;
|
|
|
|
* vertex -> entdata [label="storage buffer"];
|
|
|
|
* vertex -> entids [label="per instance"];
|
|
|
|
* vertex -> indices [label="index buffer"];
|
|
|
|
* vertex -> vertices [label="per vertex"];
|
|
|
|
* fragment -> textures [label="per call"];
|
|
|
|
* }
|
|
|
|
* \enddot
|
|
|
|
*/
|
|
|
|
///@{
|
2022-05-22 16:28:43 +00:00
|
|
|
typedef struct bsp_draw_s {
|
2022-06-08 09:16:10 +00:00
|
|
|
uint32_t tex_id; ///< texture to bind for this draw call
|
|
|
|
uint32_t inst_id; ///< model render id owning this draw call
|
|
|
|
uint32_t index_count; ///< number of indices for this draw call
|
|
|
|
uint32_t instance_count; ///< number of instances to draw
|
|
|
|
uint32_t first_index; ///< index into index buffer
|
|
|
|
uint32_t first_instance; ///< index into entid buffer
|
2022-05-22 16:28:43 +00:00
|
|
|
} bsp_draw_t;
|
|
|
|
|
|
|
|
typedef struct bsp_drawset_s
|
|
|
|
DARRAY_TYPE (bsp_draw_t) bsp_drawset_t;
|
2022-06-08 09:16:10 +00:00
|
|
|
///@}
|
2022-05-22 16:28:43 +00:00
|
|
|
|
2022-06-08 09:16:10 +00:00
|
|
|
/** Tag models that are to be queued for translucent drawing.
|
|
|
|
*/
|
2022-05-26 23:12:21 +00:00
|
|
|
#define INST_ALPHA (1u<<31)
|
2022-06-08 09:16:10 +00:00
|
|
|
|
|
|
|
/** Representation of a single face queued for drawing.
|
|
|
|
*/
|
|
|
|
///@{
|
2022-05-22 16:28:43 +00:00
|
|
|
typedef struct instface_s {
|
2022-06-08 09:16:10 +00:00
|
|
|
uint32_t inst_id; ///< model render id owning this face
|
|
|
|
uint32_t face; ///< index of face in context array
|
2022-05-22 16:28:43 +00:00
|
|
|
} instface_t;
|
|
|
|
|
|
|
|
typedef struct bsp_instfaceset_s
|
|
|
|
DARRAY_TYPE (instface_t) bsp_instfaceset_t;
|
2022-06-08 09:16:10 +00:00
|
|
|
///@}
|
2022-05-22 16:28:43 +00:00
|
|
|
|
2022-06-08 09:16:10 +00:00
|
|
|
/** Track entities using a model.
|
|
|
|
*/
|
|
|
|
///@{
|
2022-05-25 04:29:11 +00:00
|
|
|
typedef struct bsp_modelentset_s
|
|
|
|
DARRAY_TYPE (uint32_t) bsp_modelentset_t;
|
|
|
|
|
2022-06-08 09:16:10 +00:00
|
|
|
/** Represent a single model and the entities using it.
|
|
|
|
*/
|
2022-05-25 04:29:11 +00:00
|
|
|
typedef struct bsp_instance_s {
|
2022-06-08 09:16:10 +00:00
|
|
|
int first_instance; ///< index into entid buffer
|
|
|
|
bsp_modelentset_t entities; ///< list of entity render ids using this model
|
2022-05-25 04:29:11 +00:00
|
|
|
} bsp_instance_t;
|
2022-06-08 09:16:10 +00:00
|
|
|
///@}
|
2022-05-25 04:29:11 +00:00
|
|
|
|
2022-05-22 16:28:43 +00:00
|
|
|
typedef struct bsp_pass_s {
|
2022-06-08 09:16:10 +00:00
|
|
|
vec4f_t position; ///< view position
|
|
|
|
plane_t *frustum; ///< view frustum for culling
|
|
|
|
const struct mod_brush_s *brush;///< data for current model
|
|
|
|
struct bspctx_s *bsp_context; ///< owning bsp context
|
|
|
|
/** \name GPU data
|
|
|
|
*
|
|
|
|
* The indices to be drawn and the entity ids associated with each draw
|
|
|
|
* instance are updated each frame. The pointers are to the per-frame
|
|
|
|
* mapped buffers for the respective data.
|
|
|
|
*/
|
|
|
|
///@{
|
|
|
|
uint32_t *indices; ///< polygon vertex indices
|
|
|
|
uint32_t index_count; ///< number of indices written to buffer
|
|
|
|
uint32_t *entid_data; ///< instance id to entity id map
|
|
|
|
uint32_t entid_count; ///< numer of entids written to buffer
|
|
|
|
///@}
|
|
|
|
/** \name Potentially Visible Sets
|
|
|
|
*
|
|
|
|
* For an object to be in the PVS, its frame id must match the current
|
|
|
|
* visibility frame id, thus clearing all sets is done by incrementing
|
|
|
|
* `vis_frame`, and adding an object to the PVS is done by setting its
|
|
|
|
* current frame id to the current visibility frame id.
|
|
|
|
*/
|
|
|
|
///@{
|
|
|
|
int vis_frame; ///< current visibility frame id
|
|
|
|
int *face_frames; ///< per-face visibility frame ids
|
|
|
|
int *leaf_frames; ///< per-leaf visibility frame ids
|
|
|
|
int *node_frames; ///< per-node visibility frame ids
|
|
|
|
///@}
|
|
|
|
bsp_instfaceset_t *face_queue; ///< per-texture face queues
|
|
|
|
regtexset_t *textures; ///< textures to bind when emitting calls
|
|
|
|
int num_queues; ///< number of pipeline queues
|
|
|
|
bsp_drawset_t *draw_queues; ///< per-pipeline draw queues
|
|
|
|
uint32_t inst_id; ///< render id of current model
|
|
|
|
bsp_instance_t *instances; ///< per-model entid lists
|
|
|
|
// FIXME There are several potential optimizations here:
|
|
|
|
// 1) ent_frame could be forced to be 0 or 1 and then used to index a
|
|
|
|
// two-element array of texanim pointers
|
|
|
|
// 2) ent_frame could be a pointer to the correct texanim array
|
|
|
|
// 3) could update a tex_id map each frame and unconditionally index that
|
|
|
|
//
|
|
|
|
// As the texture id is used for selecting the face queue, 3 could be used
|
|
|
|
// for mapping all textures to 1 or two queues for shadow rendering
|
|
|
|
int ent_frame; ///< animation frame of current entity
|
2022-05-22 16:28:43 +00:00
|
|
|
} bsp_pass_t;
|
2022-06-08 09:16:10 +00:00
|
|
|
///@}
|
2022-05-22 16:28:43 +00:00
|
|
|
|
2022-06-08 09:16:10 +00:00
|
|
|
/// \ingroup vulkan_bsp
|
|
|
|
///@{
|
2021-02-19 02:14:54 +00:00
|
|
|
typedef enum {
|
2021-02-14 02:35:06 +00:00
|
|
|
QFV_bspDepth,
|
|
|
|
QFV_bspGBuffer,
|
2021-03-23 03:24:24 +00:00
|
|
|
QFV_bspSky,
|
|
|
|
QFV_bspTurb,
|
2021-02-14 02:35:06 +00:00
|
|
|
|
|
|
|
QFV_bspNumPasses
|
2021-02-19 02:14:54 +00:00
|
|
|
} QFV_BspSubpass;
|
2021-02-14 02:35:06 +00:00
|
|
|
|
2021-01-19 16:25:54 +00:00
|
|
|
typedef struct bspframe_s {
|
2022-05-24 15:17:57 +00:00
|
|
|
uint32_t *index_data; // pointer into mega-buffer for this frame (c)
|
|
|
|
uint32_t index_offset; // offset of index_data within mega-buffer (c)
|
|
|
|
uint32_t index_count; // number if indices queued (d)
|
|
|
|
uint32_t *entid_data;
|
|
|
|
uint32_t entid_offset;
|
|
|
|
uint32_t entid_count;
|
2021-02-14 02:35:06 +00:00
|
|
|
qfv_cmdbufferset_t cmdSet;
|
2021-01-19 16:25:54 +00:00
|
|
|
} bspframe_t;
|
|
|
|
|
|
|
|
typedef struct bspframeset_s
|
|
|
|
DARRAY_TYPE (bspframe_t) bspframeset_t;
|
|
|
|
|
2022-06-08 09:16:10 +00:00
|
|
|
/** Main BSP context structure
|
|
|
|
*
|
|
|
|
* This holds all the state and resources needed for rendering brush models.
|
|
|
|
*/
|
2021-01-19 16:25:54 +00:00
|
|
|
typedef struct bspctx_s {
|
2021-01-23 11:42:53 +00:00
|
|
|
|
2022-06-08 09:16:10 +00:00
|
|
|
vulktex_t notexture; ///< replacement for invalid textures
|
2022-05-26 13:31:31 +00:00
|
|
|
|
2021-01-19 16:25:54 +00:00
|
|
|
struct scrap_s *light_scrap;
|
|
|
|
struct qfv_stagebuf_s *light_stage;
|
|
|
|
|
2022-06-08 09:16:10 +00:00
|
|
|
int num_models; ///< number of loaded brush models
|
|
|
|
bsp_model_t *models; ///< all loaded brush models
|
|
|
|
bsp_face_t *faces; ///< all faces from all loaded brush models
|
|
|
|
uint32_t *poly_indices; ///< face indices from all loaded brush models
|
2022-05-22 16:28:43 +00:00
|
|
|
|
2022-06-08 09:16:10 +00:00
|
|
|
regtexset_t registered_textures;///< textures for all loaded brush models
|
|
|
|
texdata_t texdata; ///< texture animation data
|
|
|
|
int anim_index; ///< texture animation frame (5fps)
|
|
|
|
struct qfv_tex_s *default_skysheet;
|
|
|
|
struct qfv_tex_s *skysheet_tex; ///< scrolling sky texture for current map
|
2022-05-26 13:31:31 +00:00
|
|
|
|
2022-06-08 09:16:10 +00:00
|
|
|
struct qfv_tex_s *default_skybox;
|
|
|
|
struct qfv_tex_s *skybox_tex; ///< sky box texture for current map
|
|
|
|
VkDescriptorSet skybox_descriptor;
|
2022-05-25 04:29:11 +00:00
|
|
|
|
2022-06-08 09:16:10 +00:00
|
|
|
bsp_pass_t main_pass; ///< camera view depth, gbuffer, etc
|
2021-01-20 06:11:50 +00:00
|
|
|
|
2021-01-20 17:13:40 +00:00
|
|
|
VkSampler sampler;
|
2021-12-08 12:11:36 +00:00
|
|
|
VkPipelineLayout layout;
|
|
|
|
|
2021-01-19 16:25:54 +00:00
|
|
|
VkDeviceMemory texture_memory;
|
2021-02-19 02:14:54 +00:00
|
|
|
VkPipeline depth;
|
|
|
|
VkPipeline gbuf;
|
2021-03-25 06:54:34 +00:00
|
|
|
VkPipeline skysheet;
|
|
|
|
VkPipeline skybox;
|
2021-03-23 03:24:24 +00:00
|
|
|
VkPipeline turb;
|
2021-01-19 16:25:54 +00:00
|
|
|
size_t vertex_buffer_size;
|
|
|
|
size_t index_buffer_size;
|
|
|
|
VkBuffer vertex_buffer;
|
|
|
|
VkDeviceMemory vertex_memory;
|
|
|
|
VkBuffer index_buffer;
|
|
|
|
VkDeviceMemory index_memory;
|
2022-05-24 15:17:57 +00:00
|
|
|
VkBuffer entid_buffer;
|
|
|
|
VkDeviceMemory entid_memory;
|
2021-01-19 16:25:54 +00:00
|
|
|
bspframeset_t frames;
|
|
|
|
} bspctx_t;
|
|
|
|
|
|
|
|
struct vulkan_ctx_s;
|
2021-12-02 12:58:29 +00:00
|
|
|
struct qfv_renderframe_s;
|
|
|
|
void Vulkan_DrawWorld (struct qfv_renderframe_s *rFrame);
|
|
|
|
void Vulkan_DrawSky (struct qfv_renderframe_s *rFrame);
|
|
|
|
void Vulkan_DrawWaterSurfaces (struct qfv_renderframe_s *rFrame);
|
2021-12-17 06:52:17 +00:00
|
|
|
void Vulkan_Bsp_Flush (struct vulkan_ctx_s *ctx);
|
2021-03-25 06:54:34 +00:00
|
|
|
void Vulkan_LoadSkys (const char *sky, struct vulkan_ctx_s *ctx);
|
2021-01-19 16:25:54 +00:00
|
|
|
void Vulkan_RegisterTextures (model_t **models, int num_models,
|
|
|
|
struct vulkan_ctx_s *ctx);
|
|
|
|
void Vulkan_BuildDisplayLists (model_t **models, int num_models,
|
|
|
|
struct vulkan_ctx_s *ctx);
|
|
|
|
void Vulkan_Bsp_Init (struct vulkan_ctx_s *ctx);
|
|
|
|
void Vulkan_Bsp_Shutdown (struct vulkan_ctx_s *ctx);
|
2022-06-08 09:16:10 +00:00
|
|
|
///@}
|
2021-01-19 16:25:54 +00:00
|
|
|
|
|
|
|
#endif//__QF_Vulkan_qf_bsp_h
|