Commit Graph

54 Commits

Author SHA1 Message Date
Artem Kharytoniuk e918bf846b DX12: r_showimages. 2017-12-17 21:24:59 +01:00
Artem Kharytoniuk 40af5ae62b DX12: hyperspace, r_clear, minor renames. 2017-12-16 21:16:41 +01:00
Artem Kharytoniuk 90ff26426a DX12: clear attachments. 2017-12-15 23:16:27 +01:00
Artem Kharytoniuk 69fc682c95 DX12: mipmaps. 2017-12-09 21:32:20 +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 9b01830559 DX12: initial rendering code, just clear the render target. 2017-10-21 22:50:40 +02: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 6079758830 Replaced spaces with tabs (Q3 code style). 2017-05-27 23:36:45 +03:00
Artem Kharytoniuk 83d8d96e76 Support for r_texturebits=16. Reworked image upload code. 2017-05-27 22:56:02 +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 0f3febc632 Introduced vk_bind_geometry/vk_shade_geometry functions. 2017-05-25 21:45:31 +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 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 724dd15526 Hyperspace. 2017-05-21 23:22:40 +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 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 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 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 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 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 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 f2f0cea494 Staging buffer memory allocation.
Also removed the last piece of demo project code!
2017-04-24 16:35:46 +03:00
Artem Kharytoniuk f823930d83 Demo project files removal and cleanup. 2017-04-22 01:16:32 +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 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 eac342cdd9 Store vertex attributes in SOA style: continuous region of vertex buffer per attribute.
Removed structures that specified different vertex format.
2017-04-14 19:58:06 +03:00
Artem Kharytoniuk 047be0bd46 Code reorganization and cleanup. 2017-04-14 13:43:04 +03:00
Artem Kharytoniuk 8c5fc8f674 New pipeline and set layouts design.
Pipeline layout consists of two identical descriptor sets.
Each descriptor set defines single descriptor of combined image sampler type.
2017-04-13 19:37:11 +03:00
Artem Kharytoniuk fb74befd75 Use push contants to specify mvp transform. 2017-04-13 18:03:12 +03:00
Artem Kharytoniuk c208817246 Rename. 2017-04-12 18:31:29 +03:00
Artem Kharytoniuk 11791b47a3 Correct framebuffer's attachments clearing when multiple views are rendered. 2017-04-12 18:25:20 +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 6d50cb783c Proper images selection, so animation images work now. 2017-04-07 16:47:21 +03:00
Artem Kharytoniuk 0962288d03 Cleanup: removed unused GL_DECAL texture env mode. 2017-04-03 16:00:00 +03:00
Artem Kharytoniuk 6cd89f37ac Working on UI drawing. 2017-03-28 16:50:16 +03:00
Artem Kharytoniuk 61647d8827 Cleanup. 2017-03-27 23:29:50 +03:00
Artem Kharytoniuk 54ab26edb3 Cinematic images update. 2017-03-27 17:20:21 +03:00