mirror of
https://github.com/ptitSeb/box86.git
synced 2024-11-27 08:50:28 +00:00
Added some more Vulkan wrapped functions and aligned structures
This commit is contained in:
parent
4b7a3046ce
commit
521dae4695
@ -326,6 +326,8 @@ typedef enum VkStructureType {
|
||||
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_DENSITY_MAP_PROPERTIES_EXT = 1000218001,
|
||||
VK_STRUCTURE_TYPE_RENDER_PASS_FRAGMENT_DENSITY_MAP_CREATE_INFO_EXT = 1000218002,
|
||||
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SCALAR_BLOCK_LAYOUT_FEATURES_EXT = 1000221000,
|
||||
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SUBGROUP_SIZE_CONTROL_PROPERTIES = 1000225000,
|
||||
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_CORE_PROPERTIES_2_AMD = 1000227000,
|
||||
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MEMORY_BUDGET_PROPERTIES_EXT = 1000237000,
|
||||
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MEMORY_PRIORITY_FEATURES_EXT = 1000238000,
|
||||
VK_STRUCTURE_TYPE_MEMORY_PRIORITY_ALLOCATE_INFO_EXT = 1000238001,
|
||||
@ -336,15 +338,23 @@ typedef enum VkStructureType {
|
||||
VK_STRUCTURE_TYPE_VALIDATION_FEATURES_EXT = 1000247000,
|
||||
VK_STRUCTURE_TYPE_SURFACE_CAPABILITIES_FULL_SCREEN_EXCLUSIVE_EXT = 1000255002,
|
||||
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BUFFER_DEVICE_ADDRESS_FEATURES = 1000257000,
|
||||
VK_STRUCTURE_TYPE_DEVICE_MEMORY_OPAQUE_CAPTURE_ADDRESS_INFO = 1000257004,
|
||||
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_QUERY_RESET_FEATURES = 1000261000,
|
||||
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTENDED_DYNAMIC_STATE_FEATURES_EXT = 1000267000,
|
||||
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DEMOTE_TO_HELPER_INVOCATION_FEATURES_EXT = 1000276000,
|
||||
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TEXEL_BUFFER_ALIGNMENT_PROPERTIES = 1000281001,
|
||||
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ROBUSTNESS_2_FEATURES_EXT = 1000286000,
|
||||
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ROBUSTNESS_2_PROPERTIES_EXT = 1000286001,
|
||||
VK_STRUCTURE_TYPE_SAMPLER_CUSTOM_BORDER_COLOR_CREATE_INFO_EXT = 1000287000,
|
||||
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CUSTOM_BORDER_COLOR_PROPERTIES_EXT = 1000287001,
|
||||
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CUSTOM_BORDER_COLOR_FEATURES_EXT = 1000287002,
|
||||
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_4444_FORMATS_FEATURES_EXT = 1000340000,
|
||||
VK_STRUCTURE_TYPE_COPY_BUFFER_INFO_2 = 1000337000,
|
||||
VK_STRUCTURE_TYPE_COPY_IMAGE_INFO_2 = 1000337001,
|
||||
VK_STRUCTURE_TYPE_COPY_BUFFER_TO_IMAGE_INFO_2 = 1000337002,
|
||||
VK_STRUCTURE_TYPE_COPY_IMAGE_TO_BUFFER_INFO_2 = 1000337003,
|
||||
VK_STRUCTURE_TYPE_BLIT_IMAGE_INFO_2 = 1000337004,
|
||||
VK_STRUCTURE_TYPE_RESOLVE_IMAGE_INFO_2 = 1000337005,
|
||||
VK_STRUCTURE_TYPE_DEBUG_REPORT_CREATE_INFO_EXT = VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT,
|
||||
VK_STRUCTURE_TYPE_RENDER_PASS_MULTIVIEW_CREATE_INFO_KHR = VK_STRUCTURE_TYPE_RENDER_PASS_MULTIVIEW_CREATE_INFO,
|
||||
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_FEATURES_KHR = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_FEATURES,
|
||||
@ -551,6 +561,15 @@ typedef struct my_VkComputePipelineCreateInfo_x86_t {
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TIMELINE_SEMAPHORE_PROPERTIES: \
|
||||
case VK_STRUCTURE_TYPE_TIMELINE_SEMAPHORE_SUBMIT_INFO: \
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BUFFER_DEVICE_ADDRESS_FEATURES: \
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SCALAR_BLOCK_LAYOUT_FEATURES_EXT: \
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_CORE_PROPERTIES_2_AMD: \
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_CORE_PROPERTIES_AMD: \
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SUBGROUP_SIZE_CONTROL_PROPERTIES: \
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLER_FILTER_MINMAX_PROPERTIES_EXT: \
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_INLINE_UNIFORM_BLOCK_PROPERTIES_EXT: \
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DESCRIPTOR_INDEXING_PROPERTIES_EXT: \
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PUSH_DESCRIPTOR_PROPERTIES_KHR: \
|
||||
case VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_BINDING_FLAGS_CREATE_INFO_EXT: \
|
||||
|
||||
#define CH(C, B, A) \
|
||||
case C: \
|
||||
@ -585,6 +604,17 @@ typedef struct my_VkComputePipelineCreateInfo_x86_t {
|
||||
CH(VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TRANSFORM_FEEDBACK_PROPERTIES_EXT, "upuuUuuuiiii", A) \
|
||||
CH(VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ROBUSTNESS_2_PROPERTIES_EXT, "upUU", A) \
|
||||
CH(VK_STRUCTURE_TYPE_SEMAPHORE_TYPE_CREATE_INFO, "upiU", A) \
|
||||
CH(VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_MEMORY_HOST_PROPERTIES_EXT, "upU", A) \
|
||||
CH(VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TEXEL_BUFFER_ALIGNMENT_PROPERTIES, "upUuUu", A)\
|
||||
CH(VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_3_PROPERTIES, "upuU", A) \
|
||||
CH(VK_STRUCTURE_TYPE_COPY_BUFFER_INFO_2, "upUUup", A) \
|
||||
CH(VK_STRUCTURE_TYPE_BLIT_IMAGE_INFO_2, "upUiUiupi", A) \
|
||||
CH(VK_STRUCTURE_TYPE_COPY_IMAGE_INFO_2, "upUiUiup", A) \
|
||||
CH(VK_STRUCTURE_TYPE_COPY_BUFFER_TO_IMAGE_INFO_2, "upUUiupp", A) \
|
||||
CH(VK_STRUCTURE_TYPE_COPY_IMAGE_TO_BUFFER_INFO_2, "upUiUup", A) \
|
||||
CH(VK_STRUCTURE_TYPE_RESOLVE_IMAGE_INFO_2, "upUiUiup", A) \
|
||||
CH(VK_STRUCTURE_TYPE_BUFFER_DEVICE_ADDRESS_INFO_EXT, "upU", A) \
|
||||
CH(VK_STRUCTURE_TYPE_DEVICE_MEMORY_OPAQUE_CAPTURE_ADDRESS_INFO, "upU", A) \
|
||||
case VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO: \
|
||||
B##VkComputePipelineCreateInfo(src, &dst); \
|
||||
break; \
|
||||
|
@ -211,10 +211,21 @@ GO(vkCmdNextSubpass2, vFpPP)
|
||||
GOM(vkCreateRenderPass2, iFEpPpp)
|
||||
GO(vkCmdDrawIndexedIndirectCount, vFpUUUUuu)
|
||||
GO(vkCmdDrawIndirectCount, vFpUUUUuu)
|
||||
GO(vkGetBufferDeviceAddress, UFpp)
|
||||
GO(vkGetBufferOpaqueCaptureAddress, UFpp)
|
||||
GO(vkGetDeviceMemoryOpaqueCaptureAddress, UFpp)
|
||||
GO(vkGetSemaphoreCounterValue, iFpUp)
|
||||
GO(vkSignalSemaphore, iFpP)
|
||||
GO(vkWaitSemaphores, iFpPU)
|
||||
|
||||
// VK_VERSION_1_3
|
||||
GO(vkCmdBlitImage2, vFpP)
|
||||
GO(vkCmdCopyBuffer2, vFpP)
|
||||
GO(vkCmdCopyBufferToImage2, vFpP)
|
||||
GO(vkCmdCopyImage2, vFpP)
|
||||
GO(vkCmdCopyImageToBuffer2, vFpP)
|
||||
GO(vkCmdResolveImage2, vFpP)
|
||||
|
||||
// VK_EXT_debug_report
|
||||
GOM(vkCreateDebugReportCallbackEXT, iFEpppp)
|
||||
GO(vkDebugReportMessageEXT, vFpiiULipp)
|
||||
@ -509,3 +520,19 @@ GO(vkGetRandROutputDisplayEXT, iFppLp)
|
||||
GO(vkGetSemaphoreCounterValueKHR, iFpUp)
|
||||
GO(vkSignalSemaphoreKHR, iFpP)
|
||||
GO(vkWaitSemaphoresKHR, iFpPU)
|
||||
|
||||
// VK_KHR_copy_commands2
|
||||
GO(vkCmdBlitImage2KHR, vFpP)
|
||||
GO(vkCmdCopyBuffer2KHR, vFpP)
|
||||
GO(vkCmdCopyBufferToImage2KHR, vFpP)
|
||||
GO(vkCmdCopyImage2KHR, vFpP)
|
||||
GO(vkCmdCopyImageToBuffer2KHR, vFpP)
|
||||
GO(vkCmdResolveImage2KHR, vFpP)
|
||||
|
||||
// VK_KHR_buffer_device_address
|
||||
GO(vkGetBufferDeviceAddressKHR, UFpp)
|
||||
GO(vkGetBufferOpaqueCaptureAddressKHR, UFpp)
|
||||
GO(vkGetDeviceMemoryOpaqueCaptureAddressKHR, UFpp)
|
||||
|
||||
// VK_EXT_buffer_device_address
|
||||
GO(vkGetBufferDeviceAddressEXT, UFpp)
|
||||
|
Loading…
Reference in New Issue
Block a user