vkd3d
1.14
The vkd3d 3D Graphics Library
|
A chained structure containing the parameters to create a D3D12 resource backed by a Vulkan image. More...
#include <vkd3d.h>
Data Fields | |
enum vkd3d_structure_type | type |
Must be set to VKD3D_STRUCTURE_TYPE_IMAGE_RESOURCE_CREATE_INFO. More... | |
const void * | next |
Optional pointer to a structure containing further parameters. More... | |
VkImage | vk_image |
The Vulkan image that backs the resource. More... | |
D3D12_RESOURCE_DESC | desc |
The resource description. More... | |
unsigned int | flags |
A combination of zero or more flags. More... | |
D3D12_RESOURCE_STATES | present_state |
This field specifies how to handle resource state D3D12_RESOURCE_STATE_PRESENT for the resource. More... | |
A chained structure containing the parameters to create a D3D12 resource backed by a Vulkan image.
D3D12_RESOURCE_DESC vkd3d_image_resource_create_info::desc |
The resource description.
unsigned int vkd3d_image_resource_create_info::flags |
A combination of zero or more flags.
The valid flags are VKD3D_RESOURCE_INITIAL_STATE_TRANSITION and VKD3D_RESOURCE_PRESENT_STATE_TRANSITION.
const void* vkd3d_image_resource_create_info::next |
Optional pointer to a structure containing further parameters.
D3D12_RESOURCE_STATES vkd3d_image_resource_create_info::present_state |
This field specifies how to handle resource state D3D12_RESOURCE_STATE_PRESENT for the resource.
Notice that on D3D12 there is no difference between D3D12_RESOURCE_STATE_COMMON and D3D12_RESOURCE_STATE_PRESENT (they have the same value), while on Vulkan two different layouts are used (VK_IMAGE_LAYOUT_GENERAL and VK_IMAGE_LAYOUT_PRESENT_SRC_KHR).
enum vkd3d_structure_type vkd3d_image_resource_create_info::type |
Must be set to VKD3D_STRUCTURE_TYPE_IMAGE_RESOURCE_CREATE_INFO.
VkImage vkd3d_image_resource_create_info::vk_image |
The Vulkan image that backs the resource.