Commit Graph

144 Commits

Author SHA1 Message Date
Artem Kharytoniuk aab2b2945f DX12: depth bias. 2017-12-11 23:34:34 +01:00
Artem Kharytoniuk 5725d9843c DX12: Samplers. 2017-12-10 15:26:49 +01:00
Artem Kharytoniuk 518417ad87 DX12: color modulation and multitexture support. 2017-12-09 22:11:33 +01:00
Artem Kharytoniuk 69fc682c95 DX12: mipmaps. 2017-12-09 21:32:20 +01:00
Artem Kharytoniuk ed86e89da2 DX12: finished pipeline creation code. 2017-12-09 20:43:00 +01:00
Artem Kharytoniuk 81c579529a DX12: shaders compilation pipeline. 2017-12-09 14:48:31 +01:00
Artem Kharytoniuk aa9fdefde9 DX12: Removed unused code, renames. 2017-12-09 13:27:18 +01:00
Artem Kharytoniuk 212dc81e2e DX12: depth buffer support. 2017-12-09 10:53:34 +01:00
Artem Kharytoniuk 7f597965fb DX12: pipelines creation (WIP). 2017-12-09 01:48:21 +01:00
Artem Kharytoniuk d148127fca DX12: mvp transform. 2017-12-06 21:54:49 +01:00
Artem Kharytoniuk b835efea2b DX12: Initial setup that can render some broken geometry. 2017-12-05 22:09:14 +01:00
Artem Kharytoniuk c70309c539 DX12: First texture. 2017-11-18 00:46:16 +01:00
Artem Kharytoniuk a32a863d83 DX12: first triangle. 2017-10-22 20:08:54 +02:00
Artem Kharytoniuk 9b01830559 DX12: initial rendering code, just clear the render target. 2017-10-21 22:50:40 +02:00
Artem Kharytoniuk 5434627172 More DX12 initialization code, 2017-10-21 21:08:25 +02:00
Artem Kharytoniuk 22d5bdd053 Added initial D3D12 code. 2017-10-11 11:24:55 +03:00
Artem Kharytoniuk 089104f677 Fixed Vulkan issue when attachment size does not match framebuffer size.
The main part of the fix is to specify app's DPI awareness. It is done by specifying Windows DPI awareness in manifest file.
Additionally the test was added to ensure that selected r_mode does not exceed current desktop size.
2017-10-07 18:02:36 +03:00
Artem Kharytoniuk 364453310f Fixed error in shader compilation script (inconsistent behavior in the latest update of visual studio). 2017-09-26 18:22:23 +03:00
Artem Kharytoniuk 4f8ad96127 Fixed image layout transition: use pipeline stage mask that is valid for all possible access types. 2017-09-20 22:58:05 +03:00
Artem Kharytoniuk 67bc847715 Removed extern declarations from vk.h that are used only by vk.cpp. 2017-06-07 11:13:09 +03:00
Artem Kharytoniuk 87852c1575 Improved gfxinfo output. 2017-05-29 17:03:25 +03:00
Artem Kharytoniuk b6192ae7ba Minor changes. 2017-05-29 14:55:59 +03:00
Artem Kharytoniuk 7b3917119f Renames: Vk_Resources -> Vk_World, glActive- > gl_active.
Added comments to clarify purpose of Vk_Instance, Vk_World structures.
2017-05-29 14:22:51 +03:00
Artem Kharytoniuk bee5d0a5ea More cleanup. 2017-05-29 12:47:38 +03:00
Artem Kharytoniuk 7bf5958eb7 Code cleanup. 2017-05-28 23:31:36 +03:00
Artem Kharytoniuk d82b2e6d5f Vulkan SDK update (1.0.49.0). 2017-05-28 15:13:30 +03:00
Artem Kharytoniuk cd8a3bb9fa Added vulkan validation layers config. 2017-05-28 13:18:54 +03:00
Artem Kharytoniuk 8764c86290 Fixed incorrect color initialization for skybox rendering. 2017-05-28 01:18:53 +03:00
Artem Kharytoniuk 02e075e0f5 Fixed bug with insufficient buffer size to store image data (we should use scaled image dimensions, not original ones). 2017-05-28 01:13:00 +03:00
Artem Kharytoniuk 6079758830 Replaced spaces with tabs (Q3 code style). 2017-05-27 23:36:45 +03:00
Artem Kharytoniuk 077f519ac6 Levelshots. 2017-05-27 23:14:16 +03:00
Artem Kharytoniuk 83d8d96e76 Support for r_texturebits=16. Reworked image upload code. 2017-05-27 22:56:02 +03:00
Artem Kharytoniuk a57c8382b1 r_lightmap functionality. 2017-05-26 14:34:34 +03:00
Artem Kharytoniuk 2ed689cc30 Updated project structure:
moved visual-studio folder one level up,
  updated relative paths in vs project files.
  removed 3rd party folder, put corresponding headers directly into renderer's source code.
2017-05-26 13:02:09 +03:00
Artem Kharytoniuk 0cc338ba62 Removed vk_enabled()/gl_enabled().
Just use corresponding expressions directly during APIs initialization, in other places use glActive/vk.active.
2017-05-26 12:15:51 +03:00
Artem Kharytoniuk 3af17877e9 Fixed r_showtris in mirror. 2017-05-25 21:50:55 +03:00
Artem Kharytoniuk 0f3febc632 Introduced vk_bind_geometry/vk_shade_geometry functions. 2017-05-25 21:45:31 +03:00
Artem Kharytoniuk c9ef31f358 Removed vk_log_file related logging. 2017-05-24 20:33:45 +03:00
Artem Kharytoniuk 2d261bb346 Reverted change with clamp_to_border texture addressing mode and use clamp_to_edge.
clamp_to_border produces artifacts in some cases (for example, when we rotate texture coordinates).
2017-05-24 19:45:26 +03:00
Artem Kharytoniuk a9431c5314 Fixed stencil shadows incorrect rendering in some scenarious. It's due to bug in render pass creation code (changeable variable cannot be used in renderpass description). 2017-05-24 19:32:33 +03:00
Artem Kharytoniuk d03e1ae56a Restored previously deleted r_clear debug feature. 2017-05-24 19:13:15 +03:00
Artem Kharytoniuk 68723c7076 r_showImages functionality.
Additionally replaced VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE with VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER.
This matches more closely GL_CLAMP mode used by the OpenGL backend.
2017-05-24 14:12:01 +03:00
Artem Kharytoniuk f5b0d1e51d Removed unused cvars. 2017-05-24 12:13:38 +03:00
Artem Kharytoniuk b8b5e93c31 Fixed r_nobind. 2017-05-23 18:49:28 +03:00
Artem Kharytoniuk 90fe3b6fd2 Fixed bug in OpenGL renderer that r_debugSurface did not work when cg_shadows == 2. 2017-05-23 14:30:38 +03:00
Artem Kharytoniuk f68cc05242 R_DebugGraphics vulkan implementation (r_debugSurfaces = 1).
Improvements in code related to depth range selection and modelview transformations.
2017-05-23 14:16:32 +03:00
Artem Kharytoniuk f208e60b78 Print vendor name in GfxInfo_f. 2017-05-22 13:00:10 +03:00
Artem Kharytoniuk 724dd15526 Hyperspace. 2017-05-21 23:22:40 +03:00
Artem Kharytoniuk 12368a634f Vulkan pipelines creation time statistics. 2017-05-21 13:19:41 +03:00
Artem Kharytoniuk b6fb89caaa Fixed bug with invalid initialization of tr.shadowShader (it was broken in the first commit on april 10).
Disable stencil test after we done with shadow volumes rendering.
2017-05-18 22:35:19 +03:00