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
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