quakeforge/libs/video/renderer/vulkan
Bill Currie 668f7f2cd2 [vulkan] Use palette lookups for top/bottom colors
As the RGB curves for many of the color rows are not linearly related,
my idea of scaling the brightest color in the row just didn't work.
Using a masked palette lookup works much better as it allows any curves.
Also, because the palette is uploaded as a grid and the coordinates are
calculated on the CPU, the system is extendable beyond 8-bit palettes.

This isn't quite complete as the top and bottom colors are still in
separate layers but their indices and masks can fit in just one, but
this requires reworking the texture setup (for another commit).
2022-11-15 11:53:07 +09:00
..
shader [vulkan] Use palette lookups for top/bottom colors 2022-11-15 11:53:07 +09:00
test [vulkan] Update staging test for properties2 2022-09-22 09:35:57 +09:00
vkgen [vulkan] Make Vulkan_CreateRenderPass more generally useful 2022-09-22 09:35:56 +09:00
barrier.c [vulkan] Clean up a pile of unnecessary includes 2022-05-08 17:57:40 +09:00
buffer.c [vulkan] Clean up a pile of unnecessary includes 2022-05-08 17:57:40 +09:00
capture.c [vulkan] Calculate the size of the capture buffer 2022-09-28 02:46:09 +09:00
command.c [vulkan] Clean up a pile of unnecessary includes 2022-05-08 17:57:40 +09:00
debug.c [vulkan] Label renderpass and subpass sections 2022-05-07 15:45:11 +09:00
deferred.plist [vulkan] Make Vulkan_CreateRenderPass more generally useful 2022-09-22 09:35:56 +09:00
descriptor.c [vulkan] Clean up a pile of unnecessary includes 2022-05-08 17:57:40 +09:00
device.c [vulkan] Enable the multiview feature 2022-09-22 09:38:39 +09:00
forward.plist [vulkan] Resurrect the forward render pass spec 2022-05-04 14:44:54 +09:00
image.c [vulkan] Clean up a pile of unnecessary includes 2022-05-08 17:57:40 +09:00
instance.c [vulkan] Switch to using vkGetPhysicalDeviceProperties2 2022-09-22 09:35:56 +09:00
memory.c [vulkan] Clean up a pile of unnecessary includes 2022-05-08 17:57:40 +09:00
pipeline.c [vulkan] Clean up a pile of unnecessary includes 2022-05-08 17:57:40 +09:00
projection.c [cvar] Make cvars properly typed 2022-04-24 19:15:22 +09:00
qfpipeline.plist [vulkan] Use palette lookups for top/bottom colors 2022-11-15 11:53:07 +09:00
resource.c [vulkan] Don't use QFV_CreateImage for resource images 2022-10-27 13:26:00 +09:00
scrap.c [vulkan] Clean up a pile of unnecessary includes 2022-05-08 17:57:40 +09:00
shader.c [vullkan] Rework Draw implementation 2022-10-03 10:29:49 +09:00
shadow.plist [vulkan] Hook up the shadow map render pass 2022-09-22 09:35:57 +09:00
staging.c [vulkan] Add a couple of staging helper functions 2022-10-03 09:09:34 +09:00
swapchain.c [vulkan] Implement window resize support 2022-09-26 13:04:56 +09:00
util.c [vulkan] Clean up a lot of unnecessary includes 2022-03-30 15:54:07 +09:00
util.h Fix a pile of warnings for gcc 12 2022-07-31 17:13:26 +09:00
vkparse.c [vulkan] Set source item for cexpr errors 2022-09-22 09:35:56 +09:00
vkparse.h [vulkan] Make Vulkan_CreateRenderPass more generally useful 2022-09-22 09:35:56 +09:00
vkparse.plist [vulkan] Make Vulkan_CreateRenderPass more generally useful 2022-09-22 09:35:56 +09:00
vulkan_alias.c [vulkan] Use palette lookups for top/bottom colors 2022-11-15 11:53:07 +09:00
vulkan_bsp.c [ecs] Move ECS core into its own library 2022-10-26 17:24:03 +09:00
vulkan_compose.c [vulkan] Rename the renderpass files 2022-09-22 09:35:56 +09:00
vulkan_draw.c [console] Resurrect console scaling 2022-11-14 09:49:13 +09:00
vulkan_iqm.c [ecs] Move ECS core into its own library 2022-10-26 17:24:03 +09:00
vulkan_lighting.c [vulkan] Fix some errors in shadow map setup 2022-10-27 13:29:14 +09:00
vulkan_lightmap.c [renderer] Clean up most uses of currententity 2022-03-11 15:07:38 +09:00
vulkan_main.c [renderer] Check view_model entity is valid 2022-10-27 12:55:01 +09:00
vulkan_matrices.c [vulkan] Rename the renderpass files 2022-09-22 09:35:56 +09:00
vulkan_palette.c [vulkan] Use palette lookups for top/bottom colors 2022-11-15 11:53:07 +09:00
vulkan_particles.c [vulkan] Clean up a pile of unnecessary includes 2022-05-08 17:57:40 +09:00
vulkan_renderpass.c [vulkan] Implement window resize support 2022-09-26 13:04:56 +09:00
vulkan_scene.c [ecs] Move ECS core into its own library 2022-10-26 17:24:03 +09:00
vulkan_sprite.c [ecs] Move ECS core into its own library 2022-10-26 17:24:03 +09:00
vulkan_texture.c [vulkan] Add a function to update texture contents 2022-11-15 09:18:26 +09:00
vulkan_vid_common.c [ecs] Move ECS core into its own library 2022-10-26 17:24:03 +09:00