Commit Graph

16 Commits

Author SHA1 Message Date
Artem Kharytoniuk 1e74933a47 Clean up. 2017-04-24 18:49:53 +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 ab32f499f8 Fixed r_fastsky and preparation to fix the rest of sky rendering. 2017-04-18 13:40:28 +03:00
Artem Kharytoniuk c208817246 Rename. 2017-04-12 18:31:29 +03:00
Artem Kharytoniuk 6afd32f4d2 Clean up: moved command_pool/command_buffer handles to Vulkan_Instance. 2017-04-11 14:30:47 +03:00
Artem Kharytoniuk eca35b6050 Clean up: introduced Vulkan_Instance, Vulkan_Resources structures.
Vulkan_Instance contains variables related to persistent vulkan resources like instance, device, queue, swapchain, etc.
Vulkan_Instance is re-iniitalized only during window creation.

Vulkan_Resources contains data specific to current game context, i.e. current level.
Vulkan_Resources can be re-loaded during level change, level exit, etc.
2017-04-11 14:05:38 +03:00
Artem Kharytoniuk 8a4cce66ed Started work on removing vulkan demo code.
Cinematics update.
Clean up.
2017-04-10 11:11:17 +03:00
Artem Kharytoniuk 121afa2231 Create pipelines based on GLS_XXX state. 2017-04-06 17:26:22 +03:00
Artem Kharytoniuk a02cb3ee10 Cleanup: removed r_ignoreFastPath and fast pass code.
This optimization is not important nowdays. Also fast pass was disabled by default in original code.
This change simplifies rendering code since now we have only two shader stage processing functions: generic and sky.
2017-04-03 16:54:14 +03:00
Artem Kharytoniuk 27038dde48 Cleanup: removed effectively unused textureBundle_t::vertexLightmap variable. 2017-04-03 12:49:48 +03:00
Artem Kharytoniuk e9b972d562 New cvars: r_renderAPI , r_renderAPICompareWindow.
r_renderAPI specifies rendering API to use (0 - opengl, 1 - vulkan).
r_renderAPICompareWindow shows additional window which does the same rendering as the main windows but uses different graphics API.
The idea is to use r_renderAPICompareWindow for debugging to be sure that both APIs render identical/similar pictures.
2017-03-30 17:39:48 +03:00
Artem Kharytoniuk dd372cad1b Cleanup. 2017-03-30 09:59:33 +03:00
Artem Kharytoniuk 61647d8827 Cleanup. 2017-03-27 23:29:50 +03:00
Artem Kharytoniuk fa40b3b8ce Old features cleanup: GL_ARB_multitexture is not optional anymore, always use qglDrawElements for rendering. 2017-03-20 20:35:48 +02:00
Artem Kharytoniuk 1b78b53bea Simplification and cleanup of windows opengl initialization.
Removed r_colorbits, use desktop color depth as default value. Nevertheless if there are issues when looking
for corresponding pixel format it is still posible to obtain pixel format with color depth that is different
from desktop color.
No changes to game modules, which means that game UI can still set r_colorbits but it has no effect.
2017-03-20 10:31:02 +02:00
Artem Kharytoniuk 389bbf32c2 Rename: source -> src. 2017-03-17 15:28:25 +02:00