Commit graph

331 commits

Author SHA1 Message Date
Magnus Norddahl
a1229be5c6 - implement camera textures 2019-05-29 05:45:19 +02:00
Magnus Norddahl
be5ecce598 - fix fill color and translucency 2019-05-29 02:22:45 +02:00
Magnus Norddahl
eff38393af - fix stencil writing color 2019-05-29 01:14:42 +02:00
Magnus Norddahl
555beb58f0 - tell softpoly backend which hwrenderer shader is active and use that to decide which drawer to use 2019-05-28 08:13:19 +02:00
Magnus Norddahl
bd591c75fb - implement depth bias 2019-05-28 06:45:21 +02:00
Magnus Norddahl
b6e00cb208 - fix use after delete of some textures 2019-05-27 21:23:58 +02:00
Magnus Norddahl
c2535519e8 - fix blend mode for the fireballs 2019-05-27 20:20:20 +02:00
Magnus Norddahl
9f8cd68211 - fix use after delete 2019-05-27 20:03:11 +02:00
Magnus Norddahl
117617aad8 - minor blend and light adjustment 2019-05-27 19:18:27 +02:00
Magnus Norddahl
0d8d50c23e - fix viewport location
- add scissor support
2019-05-27 16:51:54 +02:00
Magnus Norddahl
8db5e72254 - add PolyTriangleDrawer functions for the operations needed by PolyRenderState 2019-05-27 07:57:27 +02:00
Magnus Norddahl
3a3de13abd - hook up main.vp and the data it uses for input 2019-05-26 01:00:36 +02:00
Magnus Norddahl
fbaeb11fba - convert main.vp to c++ so softpoly can use it 2019-05-25 01:27:20 +02:00
Magnus Norddahl
b453e15929 - adjust PolyTriangleDrawer to closer match what PolyRenderState receives as input 2019-05-24 22:30:14 +02:00
Magnus Norddahl
4fd4bfa092 Merge remote-tracking branch 'origin/master' into polybackend 2019-05-24 19:21:36 +02:00
alexey.lysiuk
da2d0e47e6 - removed array length() function from shadowmap shader
Array's length() function is not yet supported by SPIRV-cross and MoltenVK
Its usage was replaced by explicit nodes count value passed as uniform
2019-05-24 14:29:37 +03:00
Magnus Norddahl
756c593e96 - create a new error class for vulkan errors as they are only recoverable during initialization (unlike CRecoverableError which is recoverable during normal processing)
- improve vulkan errors by including the status code returned by vulkan if they fail
2019-05-23 14:09:05 +02:00
Magnus Norddahl
0cb3605c70 - fix null drawers
- slightly better renderstyle drawer selection
2019-05-22 21:23:10 +02:00
Magnus Norddahl
d724b623d1 - enable the depth buffer
- support vid_scalefactor
2019-05-22 17:56:29 +02:00
Magnus Norddahl
48d2d423f6 - remove softpoly scene drawer 2019-05-22 17:16:07 +02:00
Magnus Norddahl
0eda298db2 - create a renderer backend based on softpoly's drawers 2019-05-22 06:29:52 +02:00
Magnus Norddahl
e4dab707e4 - don't run the custom shaders twice on screenshots 2019-05-20 12:46:05 +02:00
Magnus Norddahl
2a15f65065 - apply present shader on screenshots 2019-05-20 12:36:45 +02:00
alexey.lysiuk
bbb75a40ca - fixed erroneous texture mipmapping in Vulkan render
https://forum.zdoom.org/viewtopic.php?t=64257
2019-05-19 14:24:59 +02:00
Magnus Norddahl
680a6f348b - use one render pass for the entire scene or until postprocess or command buffer flushing forces it to end 2019-05-18 08:12:46 +02:00
Magnus Norddahl
7e37d640dc - avoid creating a new render pass if a pipeline bind will suffice 2019-05-18 06:54:35 +02:00
Magnus Norddahl
9ab19d057d - centralize how image transitions are done in the vulkan backend 2019-05-16 18:26:47 +02:00
Magnus Norddahl
99f58855ad - transition scene images used for the screenshot to color attachment optimal before rendering to them 2019-05-15 16:11:43 +02:00
Magnus Norddahl
3a112c2a47 - fix stencil test not being active when applying SSAO to portals 2019-05-13 22:06:17 +02:00
Magnus Norddahl
f2e37d506e - fix model chasecam crash 2019-05-12 23:05:31 +02:00
Christoph Oelckers
cf58666708 - fixed: The software renderer was accessing the global viewpoint in several places.
Aside from using incorrect values this could crash the renderer if used in the very first rendering frame because the software renderer always operates on a copy.
2019-05-12 09:16:17 +02:00
Magnus Norddahl
7957c423aa - fix wrong screenshot gamma 2019-05-10 18:02:27 +02:00
Magnus Norddahl
7c3e99a6f1 - Intel on Linux used the footnote in the standard saying a descriptor pool can become fragmented (thanks guys!) 2019-05-10 02:16:26 +02:00
Magnus Norddahl
ce73fe5b16 - fix command buffer invalidation bug when DynamicSet is updated 2019-05-10 01:53:09 +02:00
Magnus Norddahl
a7e8541341 - add fragment shader texture reading as an additional subpass external dependency 2019-05-10 01:04:45 +02:00
Magnus Norddahl
25e23d6ac5 - add vk_debug_callstack for getting the location where a vulkan warning or error happens 2019-05-09 22:41:47 +02:00
Magnus Norddahl
d5761740d3 - fix burn crash on vulkan 2019-05-09 17:55:29 +02:00
Magnus Norddahl
cace5079fe - oops, patched the wrong file 2019-05-09 16:06:18 +02:00
Magnus Norddahl
d0c4f28162 - only write the warning if r_multithreaded has its default value 2019-05-09 16:01:39 +02:00
Magnus Norddahl
7727263599 - Write out a warning if std:🧵:hardware_concurrency returns zero.
- If the number of cores cannot be determined, turn of multithreading in the software renderer as it is most likely a low end system
2019-05-09 15:57:23 +02:00
alexey.lysiuk
7e998c2261 - added handling of GLSL noise() functions to Vulkan backend
https://forum.zdoom.org/viewtopic.php?t=64516
2019-05-09 13:29:58 +03:00
alexey.lysiuk
56557a17f1 - fixed output of software renderers with Vulkan backend
Vulkan hardware buffer for software canvas may have some padding
Software renderers should be aware of buffer's pitch in order to copy pixels properly

https://forum.zdoom.org/viewtopic.php?t=64562
2019-05-08 22:02:05 +03:00
David Carlier
b0a9d63292 OpenBSD build fix.
As FreeBSD, does not have malloc.h
aligned_alloc stricly available since C++17/C11, using the local impl.
2019-05-08 09:25:14 +03:00
alexey.lysiuk
a897751fb7 - fixed compilation warning reported by Clang
src/rendering/hwrenderer/postprocessing/hw_postprocess.cpp:1007:13: warning: delete called on non-final 'PPTexture' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor]
2019-05-06 16:02:44 +03:00
Magnus Norddahl
97375feee6 - fix mirror effect shader 2019-05-06 00:15:02 +02:00
Magnus Norddahl
e21ffc131e - move camtex depthstencil to VkHardwareTexture 2019-05-05 13:36:03 +02:00
pkubaj
3d63f63fb2 Fix build on FreeBSD (#829)
On FreeBSD malloc.h is deprecated.
<cwctype> is needed for iswalpha.
2019-05-05 08:28:46 +03:00
Magnus Norddahl
e1ae8bbc59 - rendering to texture requires a separate depth/stencil image as the image used by the main view may be using multisampling 2019-05-05 01:58:36 +02:00
Magnus Norddahl
a6515765c8 - fix vkGetQueryPoolResults: parameter dataSize must be greater than 0 2019-05-03 16:10:14 +02:00
Magnus Norddahl
80c09c52bd - call SetActiveRenderTarget before drawing the software renderer scene 2019-05-03 16:05:41 +02:00