quakeforge/include/QF/Vulkan
Bill Currie 12c84046f3 [cvar] Make cvars properly typed
This is an extremely extensive patch as it hits every cvar, and every
usage of the cvars. Cvars no longer store the value they control,
instead, they use a cexpr value object to reference the value and
specify the value's type (currently, a null type is used for strings).
Non-string cvars are passed through cexpr, allowing expressions in the
cvars' settings. Also, cvars have returned to an enhanced version of the
original (id quake) registration scheme.

As a minor benefit, relevant code having direct access to the
cvar-controlled variables is probably a slight optimization as it
removed a pointer dereference, and the variables can be located for data
locality.

The static cvar descriptors are made private as an additional safety
layer, though there's nothing stopping external modification via
Cvar_FindVar (which is needed for adding listeners).

While not used yet (partly due to working out the design), cvars can
have a validation function.

Registering a cvar allows a primary listener (and its data) to be
specified: it will always be called first when the cvar is modified. The
combination of proper listeners and direct access to the controlled
variable greatly simplifies the more complex cvar interactions as much
less null checking is required, and there's no need for one cvar's
callback to call another's.

nq-x11 is known to work at least well enough for the demos. More testing
will come.
2022-04-24 19:15:22 +09:00
..
barrier.h [vulkan] And a bunch of buffer barrier transitions 2021-12-24 06:45:13 +09:00
buffer.h [vulkan] Correct the semantics of QFV_NextOffset 2021-12-24 06:45:13 +09:00
capture.h [vulkan] Add missed screen capture files 2021-03-25 16:00:19 +09:00
command.h [vulkan] Split out the push constants helper 2021-12-24 06:45:13 +09:00
cvars.h [cvar] Make cvars properly typed 2022-04-24 19:15:22 +09:00
debug.h [vulkan] Fix compiling on 32-bit systems 2021-07-06 11:54:12 +09:00
descriptor.h Sanitize descriptors 2020-02-18 21:18:03 +09:00
device.h [vulkan] Make device.h more include-order independent 2021-12-24 06:45:13 +09:00
draw.h [vulkan] Make a start on the 2D pipeline 2021-01-10 15:56:17 +09:00
funclist.h [vulkan] Fetch vkCmdPushDescriptorSetKHR as extension 2021-11-30 18:10:48 +09:00
image.h [vulkan] Fix a function doc typo 2021-12-24 06:45:13 +09:00
instance.h [vulkan] Add a debug stack to the vulkan instance 2021-11-30 18:10:48 +09:00
memory.h Rework much of the Vulkan array handling 2020-02-17 20:29:35 +09:00
pipeline.h [vulkan] Destroy pipeline on shutdown 2021-01-05 23:54:22 +09:00
projection.h [renderer] Clean up FOV and viewport handling 2022-03-30 14:55:32 +09:00
qf_alias.h [vulkan] Abandon bindless rendering 2021-12-24 06:45:13 +09:00
qf_bsp.h [vulkan] Update the sky matrix 2022-02-18 13:29:41 +09:00
qf_compose.h [vulkan] Fix some mostly harmless typos 2021-12-24 06:45:13 +09:00
qf_draw.h [vulkan] Support multiple render passes 2021-12-24 06:45:12 +09:00
qf_lighting.h [vulkan] Fix some mostly harmless typos 2021-12-24 06:45:13 +09:00
qf_lightmap.h [renderer] Clean up most uses of currententity 2022-03-11 15:07:38 +09:00
qf_main.h [renderer] Move most of the scene rendering into r_screen 2022-03-17 17:57:50 +09:00
qf_matrices.h [renderer] Clean up FOV and viewport handling 2022-03-30 14:55:32 +09:00
qf_model.h [vulkan] Make a lot of progress for brush models 2021-01-20 01:28:54 +09:00
qf_particles.h [vulkan] Build particle buffers 2021-12-24 06:45:13 +09:00
qf_sprite.h [vulkan] Clean up a pile of C&P fluff 2021-12-24 06:45:13 +09:00
qf_texture.h [vulkan] Abandon bindless rendering 2021-12-24 06:45:13 +09:00
qf_vid.h [vulkan] Add support for compute shaders 2021-12-24 06:45:13 +09:00
renderpass.h [vulkan] Support multiple render passes 2021-12-24 06:45:12 +09:00
scrap.h [vulkan] Clean up a lot of unnecessary includes 2022-03-30 15:54:07 +09:00
shader.h [vulkan] Generate code for resource nodes 2021-01-05 14:15:35 +09:00
staging.h [vulkan] Name most resources 2021-01-31 19:58:55 +09:00
swapchain.h [vulkan] Implement screenshot 2021-03-24 19:20:53 +09:00