quakeforge/libs/video/renderer/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
..
shader [vulkan] Fix incorrect bsp sky constant ids 2022-02-18 01:15:38 +09:00
test [vulkan] Update labeled struct inits 2022-03-31 01:26:57 +09:00
vkgen [vulkan] Parse VkPresentModeKHR 2022-04-24 19:15:22 +09:00
barrier.c [vulkan] And a bunch of buffer barrier transitions 2021-12-24 06:45:13 +09:00
buffer.c [vulkan] Clean up a lot of unnecessary includes 2022-03-30 15:54:07 +09:00
capture.c [vulkan] Use host-cached memory for captures 2022-04-01 01:01:53 +09:00
command.c [vulkan] Clean up a lot of unnecessary includes 2022-03-30 15:54:07 +09:00
deferred.plist [vulkan] Break render pass parsing away from swapchain 2022-04-24 17:04:10 +09:00
descriptor.c [vulkan] Clean up a lot of unnecessary includes 2022-03-30 15:54:07 +09:00
device.c [vulkan] Clean up a lot of unnecessary includes 2022-03-30 15:54:07 +09:00
image.c [vulkan] Clean up a lot of unnecessary includes 2022-03-30 15:54:07 +09:00
instance.c [cvar] Make cvars properly typed 2022-04-24 19:15:22 +09:00
memory.c [vulkan] Clean up a lot of unnecessary includes 2022-03-30 15:54:07 +09:00
pipeline.c [vulkan] Clean up a lot of unnecessary includes 2022-03-30 15:54:07 +09:00
projection.c [cvar] Make cvars properly typed 2022-04-24 19:15:22 +09:00
qfpipeline.plist [vulkan] Fix incorrect bsp sky constant ids 2022-02-18 01:15:38 +09:00
renderpass.c [cvar] Make cvars properly typed 2022-04-24 19:15:22 +09:00
scrap.c [vulkan] Update labeled struct inits 2022-03-31 01:26:57 +09:00
shader.c [vulkan] Clean up a lot of unnecessary includes 2022-03-30 15:54:07 +09:00
shadow.plist [vulkan] Use the short name for the image types 2021-12-24 06:45:12 +09:00
staging.c [vulkan] Clean up a lot of unnecessary includes 2022-03-30 15:54:07 +09:00
swapchain.c [cvar] Make cvars properly typed 2022-04-24 19:15:22 +09:00
util.c [vulkan] Clean up a lot of unnecessary includes 2022-03-30 15:54:07 +09:00
util.h Fix a couple more optimization warnings 2020-02-11 15:59:12 +09:00
vkparse.c [cexpr] Require designated initializers for exprtype_t 2022-04-24 17:31:17 +09:00
vkparse.h [vulkan] Break render pass parsing away from swapchain 2022-04-24 17:04:10 +09:00
vkparse.plist [vulkan] Parse VkPresentModeKHR 2022-04-24 19:15:22 +09:00
vulkan_alias.c [vulkan] Clean up a lot of unnecessary includes 2022-03-30 15:54:07 +09:00
vulkan_bsp.c [cvar] Make cvars properly typed 2022-04-24 19:15:22 +09:00
vulkan_compose.c [vulkan] Add support for compute shaders 2021-12-24 06:45:13 +09:00
vulkan_draw.c [cvar] Make cvars properly typed 2022-04-24 19:15:22 +09:00
vulkan_lighting.c [renderer] Move a couple functions to using vec4f_t 2022-03-30 23:53:30 +09:00
vulkan_lightmap.c [renderer] Clean up most uses of currententity 2022-03-11 15:07:38 +09:00
vulkan_main.c [cvar] Make cvars properly typed 2022-04-24 19:15:22 +09:00
vulkan_matrices.c [vulkan] Clean up a lot of unnecessary includes 2022-03-30 15:54:07 +09:00
vulkan_particles.c [vulkan] Build particle buffers 2021-12-24 06:45:13 +09:00
vulkan_sprite.c [renderer] Move a couple functions to using vec4f_t 2022-03-30 23:53:30 +09:00
vulkan_texture.c [image] Make WritePNG take settings from tex_t 2022-04-01 01:01:53 +09:00
vulkan_vid_common.c [cvar] Make cvars properly typed 2022-04-24 19:15:22 +09:00