Commit e5c232eb authored by Giovanni Mascellani's avatar Giovanni Mascellani Committed by Alexandre Julliard

dxgi: Consider vk_format a frontend field.

This is an oversight in eec9c3a2: vk_format specifies the format used for the frontend resources. The backend images could use a different format, depending on what the swapchain supports. Also, introduce the terms "frontend" and "backend" for the two sides of the swapchain, which are probably easier to understand.
parent e1cdc487
......@@ -1024,21 +1024,22 @@ struct d3d12_swapchain
VkDevice vk_device;
VkPhysicalDevice vk_physical_device;
/* D3D12 side of the swapchain: these objects are visible to the
* IDXGISwapChain client, so they must never be recreated, except
* when ResizeBuffers*() is called. */
/* D3D12 side of the swapchain (frontend): these objects are
* visible to the IDXGISwapChain client, so they must never be
* recreated, except when ResizeBuffers*() is called. */
unsigned int buffer_count;
VkDeviceMemory vk_memory;
VkImage vk_images[DXGI_MAX_SWAP_CHAIN_BUFFERS];
ID3D12Resource *buffers[DXGI_MAX_SWAP_CHAIN_BUFFERS];
unsigned int current_buffer_index;
VkFormat vk_format;
/* Vulkan side of the swapchain: these objects are also destroyed
* and recreated when the Vulkan swapchain becomes out of date or
* when the synchronization interval is changed; this operation
* should be transparent to the IDXGISwapChain client (except for
* timings: recreating the Vulkan swapchain creates a noticeable
* delay, unfortunately). */
/* Vulkan side of the swapchain (backend): these objects are also
* destroyed and recreated when the Vulkan swapchain becomes out
* of date or when the synchronization interval is changed; this
* operation should be transparent to the IDXGISwapChain client
* (except for timings: recreating the Vulkan swapchain creates a
* noticeable delay, unfortunately). */
VkSwapchainKHR vk_swapchain;
VkCommandPool vk_cmd_pool;
VkImage vk_swapchain_images[DXGI_MAX_SWAP_CHAIN_BUFFERS];
......@@ -1047,7 +1048,6 @@ struct d3d12_swapchain
unsigned int vk_swapchain_width;
unsigned int vk_swapchain_height;
VkPresentModeKHR present_mode;
VkFormat vk_format;
uint32_t vk_image_index;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment