Magnus Norddahl
154cb2e967
Prepare FFlatVertexBuffer for removal
2023-05-07 03:19:43 +02:00
Magnus Norddahl
84c2980398
Remove the reserved vbo_shadowdata so only hw_vertexbuffer still needs it
2023-05-07 00:49:54 +02:00
Magnus Norddahl
f05fccb110
Fix offset bug when using more than 1024 lights in a scene
2023-05-06 06:14:15 +02:00
Magnus Norddahl
9203784ee0
Use a uniform buffer for the light list
2023-05-06 02:45:17 +02:00
Magnus Norddahl
eba0bee9f6
Change the matrix interface on RenderState so the backend doesn't have to try detect changes on each Apply
...
Include the texture matrix in the mesh builder
2023-05-06 00:34:42 +02:00
Magnus Norddahl
96ac7ba3f0
Don't use VkHardwareDataBuffer for internal backend buffers
2023-05-05 22:04:11 +02:00
Magnus Norddahl
1d8f406162
Let the backend manage the shadowmap buffers
2023-05-01 02:10:43 +02:00
Magnus Norddahl
d7a7953d10
Move bone buffer to backend
2023-04-30 04:49:06 +02:00
Magnus Norddahl
f2585a3b17
Manage the light buffer in the backend
2023-04-30 03:43:38 +02:00
Magnus Norddahl
aadb1c31b6
Manage viewpoint buffer internally in the backend
2023-04-30 02:32:04 +02:00
Magnus Norddahl
eef9b05f46
Remove mAlphaThreshold
2023-04-24 22:50:04 +02:00
Magnus Norddahl
02be512738
Remove mClipSplit
2023-04-24 22:45:19 +02:00
Magnus Norddahl
ac1a918989
Remove mLightParms
2023-04-24 22:41:07 +02:00
Magnus Norddahl
b7236f3031
Remove unused uniforms and restrict push constants to only control offsets into buffers
2023-04-24 22:10:17 +02:00
Magnus Norddahl
e0c11c1e48
Remove EPassType from VkShaderManager::Get and CompileNextShader() from VkShaderManager constructor
2023-04-24 00:14:04 +02:00
Christoph Oelckers
b8f5511ee4
- fixed several warnings emitted by Clang.
2023-04-21 00:41:19 +08:00
Magnus Norddahl
5c9ff283a6
Only add the lightmode actually being used into the shader
2023-04-19 02:28:32 +02:00
Magnus Norddahl
6381280177
Remove virtual inheritance
2023-04-16 21:49:05 +02:00
Magnus Norddahl
6894eb013f
Begin removing binding points from the hwrenderer layer.
...
Well known buffers should be created and managed by the backend, otherwise the backend just becomes an OpenGL emulator.
2023-04-16 19:30:27 +02:00
Magnus Norddahl
1b221db996
Remove dead code
2023-04-16 17:34:52 +02:00
Magnus Norddahl
184e73ab28
Add GetDevice function instead of accessing device member directly
2023-04-16 17:07:55 +02:00
Magnus Norddahl
cd35a0ad76
More folder adjustments
2023-04-16 16:51:52 +02:00
Magnus Norddahl
295eb252ab
Change the folder structure of the vulkan backend to better reflect what is going on
2023-04-16 16:39:15 +02:00
Magnus Norddahl
1f5b7a0256
Add support for gl_light_raytrace for cards that do not support rayquery
2023-04-12 02:09:28 +02:00
Magnus Norddahl
caefc09549
Improve shader performance significantly by only including raytracing or shadowmaps in the shader if enabled
2023-04-07 04:22:43 +02:00
Magnus Norddahl
5ca4c51b7d
Avoid stepping further into VkShaderManager::Get unless the shader has not been compiled
2023-04-06 19:48:28 +02:00
Magnus Norddahl
d5d6c07f53
Fix misc shader related issues
2023-04-06 19:36:58 +02:00
Magnus Norddahl
87ee014b5b
Improve VkShaderProgram to handle more program types
...
Fix memory alignment issues with the shader/pipeline keys
2023-04-06 17:56:44 +02:00
dpjudas
94a06d393f
Add VkShaderKey and start preparing VkShaderManager to be able to handle a lot more shader permutations
2023-04-04 01:00:08 +02:00
Magnus Norddahl
44fed1451d
Fix shader build errors and remove support for old deprecated shader types
2023-03-24 03:34:24 +01:00
Magnus Norddahl
c495c8c094
Add support for using #include in glsl files and improve glsl compile errors
2023-03-22 00:06:13 +01:00
Magnus Norddahl
6878dc5580
Move static layout code back to wadsrc
2023-03-21 20:24:08 +01:00
Magnus Norddahl
b417958f17
Remove old vk_raytrace cvar
2023-03-17 00:06:33 +01:00
Magnus Norddahl
342d495c08
Fix some compile errors caused by cherry-picking an old commit
2023-03-16 23:17:23 +01:00
Magnus Norddahl
7eb9053e30
Update ZVulkan, rename vk_raytrace to gl_light_raytrace and support turning it on and off without a restart
2023-03-16 23:15:02 +01:00
Magnus Norddahl
4bbc88d358
Updates ZVulkan to latest version.
...
Also changes vsync off from mailbox to immediate since otherwise it doesn't work in exclusive full screen mode.
And finally it fixes a scratch buffer alignment bug with the vk raytrace thing
2023-03-16 23:00:56 +01:00
Magnus Norddahl
151b60c436
Remove OpenGL and OpenGL ES backends
2023-03-16 22:09:19 +01:00
Ricardo Luís Vaz Silva
8e7897233e
Add Alternate Light Blending Options
2023-01-14 11:29:12 -05:00
Rachael Alexanderson
aa061562cd
- manually reimplement pull request #1850
2023-01-14 11:23:10 -05:00
Magnus Norddahl
7b864fd665
Add vulkan pipeline cache
2022-12-19 17:40:27 +01:00
Magnus Norddahl
6a005e3a2a
Switch vulkan backend to use the zvulkan library
2022-12-05 07:49:43 +01:00
Magnus Norddahl
1a1adc5c29
Fix vulkan backend clearing the canvas textures to undefined contents
2022-10-28 14:53:05 -04:00
Shiny Metagross
08f520f1c6
IQM Support Implemented
...
More info to come
2022-10-19 22:48:57 +02:00
Magnus Norddahl
37039721bd
Fix washed out colors in Vulkan HDR mode
2022-10-11 00:10:02 +02:00
Magnus Norddahl
742ae8c907
Fix viewpoint buffer not getting cleared when in the menus
2022-07-28 13:52:09 +02:00
Magnus Norddahl
fe3751a502
Fix renderdoc error message about not all textures getting bound
2022-07-25 18:50:16 +02:00
Magnus Norddahl
6137ea12d1
Fix typo
2022-07-25 18:50:16 +02:00
Magnus Norddahl
bb503950df
Add canvastexture definition to animdefs.
...
Split canvas texture rendering from camera texture rendering.
2022-07-25 18:50:16 +02:00
Magnus Norddahl
aa083604e1
Fix variable arg bindings
...
Always clear the drawer
2022-07-25 18:50:16 +02:00
Magnus Norddahl
4f0b02b396
Add a 2d drawer to canvas textures
2022-07-25 18:50:16 +02:00