Magnus Norddahl
1a7407944e
Always use indirect draw
2024-02-11 02:12:18 +01:00
Magnus Norddahl
73ee25ad39
Remove the need for pipelines for each material layer count
2024-02-10 01:42:28 +01:00
Magnus Norddahl
4fbb58d836
Switch to using bindless textures for the entire hwrenderer
2024-02-10 01:36:27 +01:00
Magnus Norddahl
94eb96a235
Fix trace bug for when rayquery is not available
2024-02-10 00:55:29 +01:00
Magnus Norddahl
c1d0963da4
Rewrite the GLSL ray trace code so it does not use global variables!!
...
Fix portals not working
2024-02-09 12:08:16 +01:00
Magnus Norddahl
445170e33f
Fix black screen when frame ended without an active 2D drawer
2024-02-09 02:37:16 +01:00
Magnus Norddahl
c817cba606
Clean up the upload code
2024-02-01 13:08:38 +01:00
Magnus Norddahl
7bc2ed5436
Remove the submesh class as that caused more problems than it solved
2024-01-29 21:56:42 +01:00
Magnus Norddahl
e9e9081372
Shader backwards compatibility support
2024-01-21 14:40:04 +01:00
Magnus Norddahl
e7e89fce09
Make the vk_rayquery cvar a bit more robust
2024-01-21 14:25:08 +01:00
Kevin Caccamo
d7dcf60c7b
Use EXTERN_CVAR instead of extern
...
Because vk_rayquery is a CVAR and needs this treatment
2024-01-21 14:15:17 +01:00
Kevin Caccamo
fe456eaded
Attempt to fix compilation errors on other platforms
...
The compilation failed because there was more than one vk_rayquery variable (A CVAR and a hard-coded global true value), so I removed the latter.
2024-01-21 14:15:17 +01:00
Magnus Norddahl
8670fb6886
Fix compiler warnings about using characters that are not valid UTF-8 in comments
2024-01-18 10:51:34 +01:00
Magnus Norddahl
ad1f6a8b5a
Clamp lightmap UV to the tile if geometry moves
2024-01-17 20:15:15 +01:00
Magnus Norddahl
d181774e02
Fix shadows not working for non-rt render path
2024-01-17 13:27:30 +01:00
Magnus Norddahl
ee7771f71f
ZDRay lump loading adjustments
2024-01-16 12:42:58 +01:00
Magnus Norddahl
4b362dc067
Fix typo in filename!
2024-01-12 06:53:26 +01:00
Magnus Norddahl
805bce1166
Merge remote-tracking branch 'gzdoom/master'
2024-01-10 04:03:35 +01:00
Christoph Oelckers
83aa9388ca
backend update from Raze
...
* moving large allocations off the stack
* use proper printf formatters for size_t and ptrdiff_t.
* adding some missing 'noexcept'.
2024-01-06 15:24:10 +01:00
Christoph Oelckers
a020b8c2f5
do not compile the first shader in the shader manager's constructor
...
This was crashing with the move of the V_Init2 call. Instead do it when we first render something so that we can open the window without immediately making the full backend operational.
This was only working on GLES because it performs lazy shader compilation.
2024-01-05 16:55:11 +01:00
Christoph Oelckers
e27cbe5bd9
convert more files to UTF-8.
...
It was mostly degree signs causing these issues.
2024-01-02 21:54:29 +01:00
Magnus Norddahl
73ada7f84b
Merge remote-tracking branch 'gzdoom/staging'
2024-01-02 17:10:47 +01:00
Magnus Norddahl
a793ddd7bd
More compile fixes
2023-12-31 07:10:36 +01:00
Professor Hastig
16e8e71971
fixed infinite recursion in vid_preferbackend.
2023-12-28 17:11:17 +01:00
Magnus Norddahl
a8cf44bcda
Update to latest ZVulkan
2023-12-26 04:44:35 +01:00
Magnus Norddahl
c1f38b18c4
Put all the pipeline barriers in the same function and use a new instance buffer each time the TLAS is updated
2023-12-26 04:31:02 +01:00
Magnus Norddahl
46946e9fd4
Move lightmap UV calculations to HWWall::CreateVertices
2023-12-26 04:31:01 +01:00
Magnus Norddahl
496b053567
HWWall lightmap UV calculation hell
2023-12-26 04:31:00 +01:00
Magnus Norddahl
2e6cd8fdda
Remove gl_seamless as an user option
2023-12-26 04:31:00 +01:00
Magnus Norddahl
48b6a7ec46
Split level mesh surface from lightmap tiles as we have multiple surfaces per tile
2023-12-26 04:31:00 +01:00
Magnus Norddahl
421b8532ff
Split into more files
2023-12-26 04:31:00 +01:00
Magnus Norddahl
4ca2ffd58e
Implement line portals and improve sky handling
2023-12-26 04:31:00 +01:00
Magnus Norddahl
4633029a74
Make sure pipeline is rebound after level mesh drawing
2023-12-26 04:30:59 +01:00
Magnus Norddahl
286de841eb
Fix validation error caused by rebase
2023-12-26 04:30:59 +01:00
Magnus Norddahl
9dd485be76
Changes needed by rebase
2023-12-26 04:30:59 +01:00
Magnus Norddahl
412be46e08
Misc surface and lightmapper related cleanup and renaming
2023-12-26 04:30:59 +01:00
Magnus Norddahl
75e33c4923
Move portal creation out of the submesh
2023-12-26 04:30:58 +01:00
Magnus Norddahl
486a08e882
Create VkLevelMeshUploader
2023-12-26 04:30:58 +01:00
Magnus Norddahl
ed7da1ae25
Moving files
2023-12-26 04:30:58 +01:00
Magnus Norddahl
26b9c52427
Move halffloat to utility
2023-12-26 04:30:58 +01:00
Magnus Norddahl
98c209edbd
Rename VkLightmap and VkRaytrace
2023-12-26 04:30:58 +01:00
Magnus Norddahl
6a77924207
Group mesh buffers
2023-12-26 04:30:58 +01:00
Magnus Norddahl
4a95eafc06
Use the stencil and depth buffer settings from RenderState when drawing the level mesh
2023-12-26 04:30:58 +01:00
Magnus Norddahl
6b0e4345a2
Enable face culling
2023-12-26 04:30:57 +01:00
Magnus Norddahl
86ac07f2f8
Implement drawing HWWall portals using the level mesh and occlusion queries
2023-12-26 04:30:57 +01:00
Magnus Norddahl
47f17b1c03
Move DrawLevelMesh to RenderState
2023-12-26 04:30:57 +01:00
Magnus Norddahl
4092e7f4e0
Some testing
2023-12-26 04:30:57 +01:00
dpjudas
57fe68c8a1
Draw depth pass and portal occlusion test
2023-12-26 04:30:57 +01:00
Magnus Norddahl
04493ade52
Add support for using the correct pipeline for each surface
2023-12-26 04:30:56 +01:00
dpjudas
9ca058ccc9
Create wall surfaces directly from the HWWall output
2023-12-26 04:30:56 +01:00