Commit graph

23,296 commits

Author SHA1 Message Date
Magnus Norddahl
1471eea6e5 Fix compile error and the backtrace (sorta, still sucks) for Linux 2025-04-21 00:01:42 +02:00
Magnus Norddahl
213305cc2d Move the fatal error logging out of win32 and use it on Linux and macOS 2025-04-20 23:19:45 +02:00
Magnus Norddahl
8090f395e2 Fix some warnings 2025-04-20 18:25:08 +02:00
Magnus Norddahl
26b10dbdda Validation layer wants layout specified during linking (is it right? nobody knows! the vulkan spec is unreadable in this part, thanks khronos!)
Fix light probe pass using depth stencil format selection before it was set
2025-04-20 18:15:38 +02:00
Magnus Norddahl
0c3c0c6271 Use zwidget for the fatal error dialog 2025-04-20 15:26:18 +02:00
dpjudas
4f1316b3fd Add thread safety to VkShaderCache 2025-04-19 09:30:17 +02:00
dpjudas
74e2e39e35 Add thread safety to VkShaderManager::GetProgram 2025-04-19 08:57:43 +02:00
dpjudas
22b7f02305 Remove vulkan shader modules 2025-04-19 08:24:43 +02:00
Magnus Norddahl
ddffb4193a Dbgeng didn't work - let's try do it ourselves 2025-04-18 14:43:29 +02:00
dpjudas
8f180e3a3f Never clear the RenderPassSetup map as that will force pipelines to rebuild 2025-04-14 01:41:44 +02:00
Magnus Norddahl
3823196765 Revert "Remove resource system voodoo and make some lines slightly more readable"
This reverts commit 9bc869e1a6.

Revert "Fix race condition"

This reverts commit 883e3ce907.

Revert "Run the GLSL compiler on the worker thread"

This reverts commit da0ff9ab04.
2025-04-13 17:15:13 +02:00
Magnus Norddahl
a0e6ebe226 Fuck it! Let's just mutex guard EVERYTHING.... 2025-04-13 15:23:31 +02:00
Magnus Norddahl
9bc869e1a6 Remove resource system voodoo and make some lines slightly more readable 2025-04-13 14:49:04 +02:00
Magnus Norddahl
54e9ae15e5 Make FString copy-on-write (COW) thread safe 2025-04-13 02:09:46 +02:00
RaveYard
b1a61d5f30 Add fallback for pipeline creation
Wait... you have to check an extra boolean to know if the extension is actually supported?! What were they thinking?!
2025-04-12 17:25:55 +02:00
Magnus Norddahl
dd782038e4 Add async texture loading 2025-04-12 01:52:17 +02:00
Magnus Norddahl
883e3ce907 Fix race condition 2025-04-12 00:35:14 +02:00
Magnus Norddahl
f87bcfd3a2 A memory leak a day keeps the doc away 2025-04-11 23:55:40 +02:00
Magnus Norddahl
da0ff9ab04 Run the GLSL compiler on the worker thread 2025-04-11 23:17:43 +02:00
nashmuhandes
167114a110 Hide pipeline creation debug messages 2025-04-12 00:46:34 +08:00
RaveYard
ee14cee226 SoftShadowRadius for 1 sample RT lights via dithering effect 2025-04-11 16:25:06 +02:00
Magnus Norddahl
389ad18411 Prioritize seen pipelines over precached and spread the work across the threads 2025-04-11 00:20:01 +02:00
RaveYard
c975360b38 Fix Linux/macOS builds 2025-04-10 16:46:10 +02:00
RaveYard
5fb2fa48c5 Add support for multiple pipeline work threads 2025-04-10 16:46:10 +02:00
RaveYard
6f83f166e9 Fix crash when switching gl_ubershaders off 2025-04-10 16:46:10 +02:00
dpjudas
202d99bf9e Add worker thread for creating pipelines 2025-04-10 08:17:45 +02:00
RaveYard
d0ac43abc6 Fix shader light attenuation 2025-04-08 23:37:55 +02:00
dpjudas
3971f0657a More khronos HELL (thanks guys!) 2025-04-07 02:04:27 +02:00
dpjudas
00a9c964b8 Render the world surfaces always in DF_LEqual mode instead of sometimes using DF_Less. 2025-04-07 01:08:49 +02:00
RaveYard
519ef3afc7 Fix ubershaders 2025-04-06 21:17:29 +02:00
Magnus Norddahl
5cc54c5603 Include all pipeline builds in the stats 2025-04-06 16:15:00 +02:00
Magnus Norddahl
db2d67afcd Link the generalized shaders 2025-04-06 16:13:23 +02:00
dpjudas
8027f98eae More pipeline lookup code 2025-04-06 02:11:38 +02:00
Magnus Norddahl
bface51b89 Pipeline library helper functions 2025-04-05 15:52:59 +02:00
dpjudas
340a98950f Update ZVulkan to support graphics pipeline libraries 2025-04-05 03:08:38 +02:00
RaveYard
ecf60edc33 Fix vertex lighting 2025-04-04 23:46:02 +02:00
RaveYard
b82ba53b6b Fix rendering bugs when using ubershaders 2025-04-04 01:00:14 +02:00
RaveYard
de2cc0119c Fix missing incrementation of pipeline counter 2025-04-03 23:40:46 +02:00
RaveYard
52f797ccc1 modify traceShadow by extracting TraceDynLightRay/TraceAnyHit switching outside the for loop 2025-04-03 23:23:52 +02:00
RaveYard
c4f5f8d62d Add stat pipelines and print pipeline creation time 2025-04-03 23:02:36 +02:00
RaveYard
1ede453fa5 Wip optimize ubershader compilation time 2025-04-03 23:02:36 +02:00
Magnus Norddahl
ec93c8e7d9 Fix typo 2025-04-03 02:02:47 +02:00
Magnus Norddahl
cc7dea2093 Include the shader key in the push constants 2025-04-03 01:25:46 +02:00
Magnus Norddahl
bb4d4f1bc0 Add generalized shader code 2025-04-03 01:23:06 +02:00
Magnus Norddahl
c6344588c2 Update glslang to 15.2.0 2025-04-03 00:35:31 +02:00
RaveYard
9967cfb319 Fix shaderkey.glsl lightblendmode constants 2025-04-02 13:14:38 +02:00
RaveYard
0ede28b03d Workaround for a strange GLSL bug
It seems like GLSL compiler is incorrectly inlining 'texelFetch(int index, ...)' and thus implicitly casting sampler2D to int
2025-04-02 13:14:38 +02:00
dpjudas
178d486b6f Fix fogboundary compile error 2025-03-25 09:33:21 +01:00
Magnus Norddahl
1ba43909f9 Lightmap ambient occlusion is now per default ENABLED for all lightmap maps (use ZDRayInfo actor to turn it off).
Lightmap bounces are now per default DISABLED for all light maps (use ZDRayInfo to turn it on).
The user can explicitly force either off by using the lm_ao or lm_bounce cvars.
2025-03-23 00:30:31 +01:00
Magnus Norddahl
3313baad6b Use shader specialization constants 2025-03-22 15:12:07 +01:00