0
0
Fork 0
mirror of https://github.com/id-Software/DOOM-3-BFG.git synced 2025-03-16 23:51:28 +00:00
Commit graph

45 commits

Author SHA1 Message Date
Robert Beckebans
af701aea33 Vulkan works on Kubuntu 19.10, g++ and open source drivers for the AMD RX 580 2020-03-22 15:29:24 +01:00
Robert Beckebans
367d5af7a2 Fixed Windows build 2020-03-22 13:22:45 +01:00
Robert Beckebans
bcb61ce306 Applied Astyle 2020-03-22 12:23:52 +01:00
Eric Womer
596fbb18ca RenderBackend.h:
* Renamed vkwindow to sdlWindow in struct vulkanContext_t to matche the rest of the struct naming conventions.

Image_VK.cpp:
  * disabled printing "Vulkan Image alloc " to the terminal, flooding it
  with data

RenderBackend_VK.cpp:
  * Re-enabled r_vkEnableValidationLayers enabling/disabling Vulkan
  validation checking, I had it hard-coded to true for testing reasons.
  * static void DestroySwapChain():
    * I don't know if the changes I introduced here are helping or not,
    or even doing anything, so this part can be ignored or changed back.
  * GL_StartFrame() and GL_BlockingSwapBuffers():
    * VkResult for these two functions, vkAcquireNextImageKHR and
    vkQueuePresentKHR, don't need to return VK_SUCCESS for the
    application to be valid, so handle them differently here. There may
    be others like this, but I don't know.

qvk.h:
  * Since VK_USE_PLATFORM_* is defined in the CMakeLists.txt file, for
  now anyways, use them to wrap the correct platform headers instead of
  defining them here.

sdl_vkimp.cpp:
  * Some debug printing changes, from GL to Vulkan, since this is for
  the Vulkan API.
2020-01-01 14:31:28 -05:00
Eric Womer
ae07018a3c Removed an inclusion guard as it is needed for Physical Device
extensions and not Instance extensions.
2019-12-30 15:39:41 -05:00
Eric Womer
e9ef21ce5c SDL2/Vulkan on Linux, still broken for Doom3BFG 2019-12-30 15:20:15 -05:00
Eric Womer
7145d9b3f1 Compiling/Linking/Running, but no rendering, there is audio. glConfig as
a temp fix for the surfaces having a width and height of 0 since
renderSystem->getHeight()/getWidth() access
glConfig.nativeResolutionHeight/Width directly.
2019-12-29 17:05:33 -05:00
Eric Womer
528da79001 Merge branch 'kung' into vulkan-merge-2 2019-12-29 12:14:29 -05:00
Eric Womer
f1e650e2c4 Applying KungFuJesus's patch from
https://github.com/RobertBeckebans/RBDOOM-3-BFG/issues/398#issuecomment-569442019
2019-12-29 11:12:34 -05:00
Robert Beckebans
f6701427dd Added stencil zfail optimization aka Carmack's Reverse 2019-11-19 21:02:47 +01:00
Robert Beckebans
3632d200f9 Added anisotropic filtering to Vulkan backend 2019-11-19 20:16:58 +01:00
Robert Beckebans
e0a397e544 Added Git submodule glslang 7.10.2984 -> stable release Nov 15, 2018 2019-11-19 19:26:35 +01:00
Robert Beckebans
4a6af2d609 Applied new Astyle settings 2019-11-11 20:27:44 +01:00
Robert Beckebans
ab5b233e8e Fixed dynamic shadows on Vulkan. Enabled PBR GGX for interaction shaders 2019-11-11 20:07:33 +01:00
Robert Beckebans
57f502d167 Merged newest custom Vulkan allocator from vkDOOM3 2019-11-08 20:09:33 +01:00
Robert Beckebans
23414ee58d Merge vkDOOM3 stencil PSO creation 2019-11-08 18:12:37 +01:00
Robert Beckebans
c676a864c6 idImage::CopyFrameBuffer 2019-10-31 21:05:00 +01:00
Robert Beckebans
e281cceb94 Fixed some depth bias pipeline problems 2019-10-31 17:33:19 +01:00
Robert Beckebans
a9c2e316b6 Added Experiment to compile GLSL to SPIR-V using shaderc 2019-10-31 15:22:28 +01:00
Robert Beckebans
377562506a Vulkan version compiles again 2019-10-31 13:18:04 +01:00
Robert Beckebans
1e6064518f Fixed a few bugs with GPU Skinning and polygon offsets 2019-01-20 13:32:22 +01:00
Robert Beckebans
9241db812e First changes to fix GPU Skinning with Vulkan 2018-11-04 19:57:53 +01:00
Robert Beckebans
49eb54d1ad First time Vulkan can render a map without light interactions 2018-11-03 12:01:03 +01:00
Robert Beckebans
2f8413b2ee The main menu renders with Vulkan 2018-11-02 22:13:15 +01:00
Robert Beckebans
33c7d06871 Renderdoc can finally capture a frame rendered with Vulkan 2018-11-02 16:53:36 +01:00
Robert Beckebans
1e4b171b8a Implemented r_drawFlickerBox with Vulkan 2018-11-02 11:00:05 +01:00
Robert Beckebans
526138de89 Reset Descriptor Sets from last frame 2018-11-02 10:38:46 +01:00
Robert Beckebans
e324b8a1fd Fixed vkGLSL binding counting 2018-11-02 10:17:53 +01:00
Robert Beckebans
472596a548 DrawElements with Vulkan 2018-11-01 18:12:15 +01:00
Robert Beckebans
18a6bf8c6a Set Glslang compile options to reduce compiling overhead 2018-11-01 13:33:24 +01:00
Robert Beckebans
899a283f8b Create Vulkan Pipelines on deman if the render state changes 2018-11-01 12:50:40 +01:00
Robert Beckebans
11ebd3641b Fixed Vulkan Swapchain error messages 2018-11-01 12:14:21 +01:00
Robert Beckebans
706c153675 Use GLSlang lib directly to compile GLSL to SPIR-V 2018-10-28 15:46:14 +01:00
Robert Beckebans
0441fff277 Added RenderProgs_VK.cpp for Vulkan specific GLSL/SPIR-V handling 2018-10-28 13:22:36 +01:00
Robert Beckebans
5483a186d3 First time the renderloop doesn't crash 2018-10-08 12:08:24 +02:00
Robert Beckebans
0ef3fcfe92 Fixed a bug in the Vulkan Swapchain 2018-10-07 17:58:32 +02:00
Robert Beckebans
98a13a2424 Generate vkGLSL if Vulkan is running otherwise GLSL 4.50 2018-10-07 16:42:28 +02:00
Robert Beckebans
4edf8b1c3b Added AMD's Vulkan Memory Allocator library 2018-10-06 17:55:32 +02:00
Robert Beckebans
a8ae629fcf Merged more renderer backend code from vkneo 2018-10-06 17:21:49 +02:00
Robert Beckebans
f180da6f63 Merged more Vulkan code from vkneo 2018-10-05 21:43:55 +02:00
Robert Beckebans
af02ccb9dc Scan GPUs 2018-10-04 00:59:16 +02:00
Robert Beckebans
a7d5c16e0a Vulkan CreateInstance Hello World 2018-10-04 00:30:20 +02:00
Robert Beckebans
a917b8c258 Stubbed out all OpenGL code 2018-10-03 23:40:35 +02:00
Robert Beckebans
3d9f9b75db Deleted almost all OpenGL code from _VK backend files 2018-10-03 21:14:28 +02:00
Robert Beckebans
095c68ca5b Moving towards vkneo. Started to stub out OpenGL if Vulkan enabled 2018-10-01 19:07:12 +02:00