Commit Graph

187 Commits

Author SHA1 Message Date
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
Artem Kharytoniuk
1d38f1774f Removed light flares code.
Corresponding code was disabled in original codebase (AddDlightFlares call ), so decision is do not support it.
2017-05-18 21:24:54 +03:00
Artem Kharytoniuk
e72ab2dbff Enabled fillModeNonSolid feature. 2017-05-18 17:03:53 +03:00
Artem Kharytoniuk
aa518c8da8 Debug normals rendering (r_shownormals = 1). 2017-05-18 16:53:06 +03:00
Artem Kharytoniuk
4f6a5f3236 Forgot to add file to previous commit. 2017-05-18 13:58:47 +03:00
Artem Kharytoniuk
30ad54bfbe Debug triangles rendering (r_showtris = 1). 2017-05-18 13:57:47 +03:00
Artem Kharytoniuk
0f1849da24 Stencil shadows (cg_shadows = 2). 2017-05-17 22:23:43 +03:00
Artem Kharytoniuk
9df7be0314 - In case mailbox present mode is not available try to use immediate mode (we do not want to restrict fps by the monitor update frequency). If both modes are not available then fallback to fifo mode.
- Fixed bug with incorrect vkDestroyInstance function pointer initialization.
- Fixed bug that program called SwapBuffers in vulkan mode.
2017-05-13 22:10:28 +03:00
Artem Kharytoniuk
24fa5f20ab Removed r_measureOverdraw development cvar.
Corresponding functionality does not map well to Vulkan API since depth/stencil formats are considered opaque.
2017-05-12 13:57:14 +03:00
Artem Kharytoniuk
42d0a81c22 Fix: vk_end_frame was not called when disconnecting during active game. 2017-05-11 15:24:29 +03:00
Artem Kharytoniuk
deed74d08c Ensure that writes to geometry buffers are visible to device after render pass begins. 2017-05-11 13:05:52 +03:00
Artem Kharytoniuk
ff38799381 CL_DemoFilename : Fixed crash due to buffer overflow bug.
fileName arg points to a buffer of size MAX_QPATH. Original code used MAX_OSPATH instead.
2017-05-10 19:58:42 +03:00
Artem Kharytoniuk
a99e89ce40 VS config update. 2017-05-10 14:47:01 +03:00
Artem Kharytoniuk
626cc415d9 Fixed crash with NULL current_descriptor_sets.
After we create image we consider it becomes bound to current tmu, so we should update current_descriptor_sets in vk_create_image.
2017-05-09 23:35:43 +03:00
Artem Kharytoniuk
4b18f5b2ad Screenshots. 2017-05-09 21:40:20 +03:00
Artem Kharytoniuk
91fb54bc81 Dynamic loading of vulkan dll. 2017-05-08 16:44:13 +03:00
Artem Kharytoniuk
4214e10c8a Update GfxInfo_f to print vulkan related information. 2017-05-05 17:28:58 +03:00
Artem Kharytoniuk
7800172337 Rename: r_renderAPICompareWindow -> r_twinMode. 2017-05-05 15:48:29 +03:00
Artem Kharytoniuk
37120cc892 Removed glw_win.h. 2017-05-05 14:06:20 +03:00
Artem Kharytoniuk
5a5b0b4d2b Vulkan platform specific code reorganization. 2017-05-05 13:55:55 +03:00
Artem Kharytoniuk
8ad279e5b9 Functionality to make proper behavior of r_renderAPI: disables current API, enables selected API. 2017-05-03 19:08:54 +03:00
Artem Kharytoniuk
2f75ace0c9 Clean up. 2017-05-02 10:52:05 +03:00
Artem Kharytoniuk
1d78b91051 Fixed incorrect model positioning in model selection menu.
In general scissor and viewport  rectangles are different: scissor should be inside renderable area, viewport has no such restriction.
2017-05-01 23:35:04 +03:00
Artem Kharytoniuk
9dd144766e Dynamic lights. 2017-04-29 15:44:26 +03:00
Artem Kharytoniuk
8f51dbbc78 Clean up: removed altivec path from dynamic lighting code. 2017-04-29 14:55:34 +03:00
Artem Kharytoniuk
c50a0f4484 Fog. 2017-04-29 14:44:20 +03:00
Artem Kharytoniuk
e3ff14bda1 Fixed bug in SurfIsOffscreen.
This function is called by the frontend but it uses backend functionality to tesselate geometry.
It didn't clean up genereated tess data so backend received unnecessary,
geometry to render. It wasn't visible since viewport dimensions defaulted to zero values still
vulkan validation layer detected invalid vkCmdSetViewport parameters.
2017-04-28 21:10:42 +03:00
Artem Kharytoniuk
73e2be0447 Mirrors and portals. 2017-04-28 19:13:24 +03:00
Artem Kharytoniuk
ae98b8b9ed Texture filtering. 2017-04-27 14:53:37 +03:00
Artem Kharytoniuk
4d33fcf925 Texture addressing mode selection (repeat or clamp). 2017-04-27 12:20:06 +03:00
Artem Kharytoniuk
327ebe2daf videoMap support. 2017-04-26 23:49:55 +03:00
Artem Kharytoniuk
d66d7c4363 Image view creation code cleanup. 2017-04-26 19:32:58 +03:00
Artem Kharytoniuk
a8fc2da718 Mipmaps. 2017-04-26 19:08:27 +03:00
Artem Kharytoniuk
d110d15a06 Image creation functions update. 2017-04-24 22:30:15 +03:00
Artem Kharytoniuk
1e74933a47 Clean up. 2017-04-24 18:49:53 +03:00
Artem Kharytoniuk
e73ff2f88e Minor cleanup. 2017-04-24 17:08:51 +03:00
Artem Kharytoniuk
f2f0cea494 Staging buffer memory allocation.
Also removed the last piece of demo project code!
2017-04-24 16:35:46 +03:00
Artem Kharytoniuk
8f15de3cdc Memory allocation for geometry data.
Single allocation is made and from it I suballocate two buffers: for vertex and index data correspondingly.
2017-04-24 15:11:43 +03:00
Artem Kharytoniuk
6dab078992 Image memory allocator.
Started process of removing demo project's allocator code.
2017-04-24 10:35:19 +03:00
Artem Kharytoniuk
f823930d83 Demo project files removal and cleanup. 2017-04-22 01:16:32 +03:00
Artem Kharytoniuk
2dacfbb44f Cleanup: removed Shader_Module, Defer_Action helpers. 2017-04-20 13:57:49 +03:00
Artem Kharytoniuk
e3f41dd276 Demo project files removal and cleanup. 2017-04-20 12:57:46 +03:00
Artem Kharytoniuk
6df80b5783 Vk_Image structure to hold vulkan image's related resources. 2017-04-20 11:51:52 +03:00
Artem Kharytoniuk
140bec0188 Fixed ZFar plane bug. 2017-04-19 19:02:42 +03:00
Artem Kharytoniuk
07f4d33492 Skybox rendering. 2017-04-19 18:44:21 +03:00
Artem Kharytoniuk
ab32f499f8 Fixed r_fastsky and preparation to fix the rest of sky rendering. 2017-04-18 13:40:28 +03:00
Artem Kharytoniuk
a5d410fd9f Cleanup. 2017-04-16 21:26:47 +03:00
Artem Kharytoniuk
054816df49 Adjusted depth range for weapon rendering (matches opengl version). 2017-04-16 21:25:22 +03:00
Artem Kharytoniuk
d1ae59d70a Removed unused code. 2017-04-14 21:06:06 +03:00