Commit Graph

  • 77a48f6d07 Return backbuffer format and use it to switch BGRA/RGBA where needed baldurk 2015-09-08 17:19:21 +02:00
  • 98fa972265 Just use swapchain image format directly baldurk 2015-09-08 17:15:10 +02:00
  • e97a259ac9 Proper texture display via shader & draw baldurk 2015-09-08 16:52:31 +02:00
  • e2cf3e7455 A number of tidyups to states and objects for proper checkerboard draw baldurk 2015-09-08 14:37:22 +02:00
  • 1fff507bd3 Add checkerboard files to vcxproj baldurk 2015-09-08 14:10:01 +02:00
  • 9e43d99ccf Start doing proper draws instead of image copies, for now checkerboard baldurk 2015-12-31 22:26:39 +01:00
  • 2b67894bdb Temporarily disable thumbnails and pixel context baldurk 2015-09-08 11:58:30 +02:00
  • 6f9ec675a9 Add MakeResourceFormat for VkFormat baldurk 2015-09-06 11:26:00 +02:00
  • a14fdb04aa Make vulkan pipeline state available for replay baldurk 2015-09-05 01:37:14 +02:00
  • b3164943a5 Add a struct that stores all the creation info for objects for later use baldurk 2015-09-04 16:51:09 +02:00
  • 32c43726c0 Rename some variables to clarify them baldurk 2015-09-04 16:03:24 +02:00
  • 1e175fd858 Store coarse objects in VulkanPipelineState baldurk 2015-09-03 21:52:13 +02:00
  • aed0d23ca6 Handle render pass properties in state vector baldurk 2015-09-03 21:40:51 +02:00
  • cd4f180e61 Free buffer created for pixel picking baldurk 2015-09-03 20:53:27 +02:00
  • 4321141aee Bounds check on PickPixel baldurk 2015-09-03 20:48:19 +02:00
  • 0e1162553d Convert a couple of asserts to silent prints baldurk 2015-09-03 20:48:11 +02:00
  • 05e4cc994c Fetch fake backbuffer extents so image copy is correctly sized baldurk 2015-09-03 20:15:55 +02:00
  • 20a281360f Fix differing window pointers between platforms baldurk 2015-09-03 17:18:31 +02:00
  • 0079a1f54e Set image usage bits on swapchain image baldurk 2015-09-03 15:30:33 +02:00
  • 96de708f1a Change dll name baldurk 2015-09-03 15:28:53 +02:00
  • 80838eb216 Set platform in surface description correctly baldurk 2015-09-03 14:01:49 +02:00
  • 73ef2a883e Some missed elements to serialise in buffer and image create info baldurk 2015-09-03 14:00:39 +02:00
  • 0d23bdc7a0 Serialise VkPhysicalDeviceFeatures that somehow got missed baldurk 2015-09-03 13:14:35 +02:00
  • c8fdcb0351 Fix for multiple physical devices being enumerated baldurk 2015-09-03 13:06:18 +02:00
  • b3dcc06859 Temporary ultra hack windows vulkan hooks baldurk 2015-09-03 12:33:34 +02:00
  • d9d90097ad Start tracking current state baldurk 2015-09-03 11:48:29 +02:00
  • 332c5e4289 Implement a rather hacky PickPixel implementation baldurk 2015-09-02 18:51:38 +02:00
  • 32f26ce864 Add vkCmdClearColorAttachment as a possible drawcall baldurk 2015-09-02 16:47:14 +02:00
  • d7566dd5fc Initial support for partially replaying command buffers baldurk 2015-09-02 16:41:50 +02:00
  • 0f391cb926 Fix up EIDs a little being off-by-one, and track first/last EIDs baldurk 2015-09-02 14:04:54 +02:00
  • e0c1563a45 Properly assign EIDs/draw IDs to cmd buffers under queue submits baldurk 2015-09-02 13:30:30 +02:00
  • 1599875803 Ensure ordering that cmd buffers are disjoint, and first in capture data baldurk 2015-09-02 12:56:42 +02:00
  • 6926cba989 Add command buffers under queue submit (eventIDs muddled atm) baldurk 2015-09-02 12:41:02 +02:00
  • 051470e616 Add drawcalls under a vkBeginCommandBuffer baldurk 2015-09-02 11:56:05 +02:00
  • e4db8252fd Disable swapchain resizing as it crashes currently baldurk 2015-09-02 11:55:36 +02:00
  • b416b8c0f9 Fix for linux build and use SerialiseComplexArray where possible baldurk 2015-09-02 11:41:09 +02:00
  • ac0e87ce6a categorise VKTODO into low/med/high in rough priority order baldurk 2015-08-31 22:33:16 +02:00
  • 5e627f6a81 Compile fixes for windows baldurk 2015-08-31 17:06:32 +02:00
  • 6697ce2d95 device memory initial state support. Don't intercept non-frame maps baldurk 2015-08-31 16:39:48 +02:00
  • 00a2a7e3ae Remove log statement baldurk 2015-08-31 15:23:49 +02:00
  • 9d630e05c2 Add hopefully proper frame reference marking. Also cmd buffers in-frame baldurk 2015-08-31 15:20:29 +02:00
  • 3a9096749c Add utility MarkResourceFrameReferenced taking VkResource param baldurk 2015-08-31 14:33:18 +02:00
  • bf0e12a497 Move most objects to their own resource records, ditch m_DeviceRecord baldurk 2015-08-31 14:06:29 +02:00
  • 20942a7a5f Remove old half-converted functions. They'll bitrot so better to rewrite baldurk 2015-08-31 13:48:55 +02:00
  • 1a214c3dd1 change auto-framecap frame number baldurk 2015-08-31 13:29:51 +02:00
  • 26c0a4d2bf Store instance parameters in VkInitParams baldurk 2015-08-31 13:29:43 +02:00
  • eb57f46940 Don't need to add actual record as parent, just baked commands baldurk 2015-08-31 13:15:29 +02:00
  • 49ce06d72a Only record maps the first couple of times, or when capturing baldurk 2015-08-31 13:00:55 +02:00
  • e901e91cfa Make sure context-type chunks are only recorded when capturing baldurk 2015-08-31 13:00:31 +02:00
  • 63a486ad2d remove todo that's no longer relevant baldurk 2015-08-31 11:23:23 +02:00
  • 77fd0635c6 remove VKTODO that's been done baldurk 2015-08-31 11:18:25 +02:00
  • cfe960fb9a Better name for serialised element in optional object baldurk 2015-08-31 11:13:10 +02:00
  • ff4b346a3a Serialise specialization info baldurk 2015-08-31 11:13:00 +02:00
  • 801f31d79c Select current physical device at capture time as well baldurk 2015-08-30 22:59:10 +02:00
  • 4e32103b53 As temp hack, clear backbuffer to magent before replaying baldurk 2015-08-30 22:54:19 +02:00
  • cbe7a2ad8e Ensure 1:1 BindOutputWindow to FlipOutputWindow, for now baldurk 2015-08-30 22:44:30 +02:00
  • 1af4b74fe9 Super duper simple D3D11 pipe state returned, just for testing baldurk 2015-08-30 22:43:19 +02:00
  • 2962764bac Make sure to correctly identify the physical device to use baldurk 2015-08-30 22:43:02 +02:00
  • 1fd451e907 Remove locked tabs because they're irritating while they're just a test baldurk 2015-08-30 22:42:42 +02:00
  • 6eef0e0649 Pass screen index (so you can guess 0), fix Qt to display baldurk 2015-08-30 22:18:47 +02:00
  • 2c34df1e64 implement vkCmdBindVertexBuffers and vkFreeDescriptorSets baldurk 2015-08-30 22:09:23 +02:00
  • 1b6c7d6c65 Properly init dbg callback on replay baldurk 2015-08-30 21:35:40 +02:00
  • 67584e37d8 Serialise image/buffer usage baldurk 2015-08-30 21:33:33 +02:00
  • a85929db0c Try copying from fake backbuffer in replay baldurk 2015-08-30 21:06:19 +02:00
  • ab7a5b6c68 Set specialization info to NULL for now baldurk 2015-08-30 21:06:01 +02:00
  • 95cbb76cc2 Implement WSI on replay code. Use xcb instead of xlib. baldurk 2015-08-30 19:36:39 +02:00
  • 6a6273e591 Temporarily make renderdoccmd use xcb, as xlib isn't supported by ICD baldurk 2015-08-30 19:36:16 +02:00
  • 406e06d943 ultra hack to propogate WSI extensions on replay baldurk 2015-08-30 19:09:44 +02:00
  • d99f32cd08 Add extra debug print baldurk 2015-08-30 18:26:42 +02:00
  • dadf0a969f Add semaphore functions to hooking baldurk 2015-08-30 18:26:21 +02:00
  • cf27397e5c Pass begin info properly to vkBeginCommandBuffer baldurk 2015-08-30 18:06:41 +02:00
  • cdc6a66bea Set fake back buffer image info by live ID, and set memory used baldurk 2015-08-30 18:06:27 +02:00
  • ba58a53684 Temporary hack - don't create GLXWindow outside and pass in baldurk 2015-08-30 17:57:05 +02:00
  • d1d01c2401 Set window as window. Duhhh baldurk 2015-08-30 17:55:49 +02:00
  • 84472deeb2 Use m_SwapChainInfo[] to get backbuffer image at end of frame baldurk 2015-08-30 17:40:00 +02:00
  • 5a6b65e215 Make sure vkCmdPipelineBarrier is passed array of pointers baldurk 2015-08-30 17:32:27 +02:00
  • 2b4762c3c5 Register the memory and image created for fake swap images baldurk 2015-08-30 17:32:12 +02:00
  • 12b0de281d make sure to fully initialis eserialised image memory barrier structs baldurk 2015-08-30 17:31:35 +02:00
  • 0ea599359d Give vkBeginCommandBuffer a begin info struct baldurk 2015-08-30 17:31:18 +02:00
  • 780c2e59bc create command pool & command buffer for our own uses baldurk 2015-08-30 17:31:05 +02:00
  • c80c3d0118 CreateInitialContents is needed for serialisation matching baldurk 2015-08-30 17:03:39 +02:00
  • 254f6cc7e1 Make sure to bind image memory for fake backbuffers baldurk 2015-08-30 16:52:48 +02:00
  • 7146f59b71 Set arrays to NULL if their serialised count is 0 baldurk 2015-08-30 16:49:10 +02:00
  • 67432fbde6 attachment bind info isn't POD, can't serialise as POD array baldurk 2015-08-30 16:48:56 +02:00
  • a27e319fac NULL out optional objects if they're not present baldurk 2015-08-30 16:48:24 +02:00
  • 38c2803389 SerialiseObject must use MakeRes to get type info baldurk 2015-08-30 16:48:05 +02:00
  • c31fad9570 shaders add parents on shadermodules, pipelines on shaders & cache baldurk 2015-08-30 16:19:58 +02:00
  • eac80ae429 set resolveAttachments to NULL in case there are no resolves baldurk 2015-08-30 16:19:29 +02:00
  • 53fe4bec2c Make sure to set arrays to NULL explicitly so they are allocated baldurk 2015-08-30 16:06:08 +02:00
  • ad5276b390 set immutable samplers array to NULL if there are none baldurk 2015-08-30 16:05:58 +02:00
  • 8cb5066422 serialise renderpass create info properly baldurk 2015-08-30 16:05:38 +02:00
  • 0c7eeac16d Try recording & applying image transitions baldurk 2015-08-30 15:40:19 +02:00
  • 31367ac379 Add some transition debug logging, and allow arraySize=0 to mean =1 baldurk 2015-08-30 15:39:37 +02:00
  • 30a504217b serialise out swapchain image info and create fake images on replay baldurk 2015-08-30 15:09:00 +02:00
  • da75a145a0 serialise missing sType/pNext baldurk 2015-08-30 15:08:30 +02:00
  • 9edc9bb167 Add util function to identify depth stencil formats baldurk 2015-08-30 14:54:21 +02:00
  • b3766dfebf Hook Get*MemoryRequirements functions baldurk 2015-08-30 14:54:08 +02:00
  • 228babc714 process pipeline barrier chunk baldurk 2015-08-30 14:04:58 +02:00
  • 6d2beec3ef handle WSI enum baldurk 2015-08-30 14:04:48 +02:00
  • f8a44d0b12 Handle create swap chain and get swap chain info chunks baldurk 2015-08-30 13:53:38 +02:00