mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 15:48:58 +00:00
Preserve physical window aliases across remaps, order console list values, and replay bounded indirect graphics with captured draw state. Coordinate pipeline lifetime, texture refresh and queue teardown. Add synthetic CPU and GPU coverage for the integrated paths. Co-authored-by: Plaaasma <47513553+Plaaasma@users.noreply.github.com> Co-authored-by: ivanepsilondelta <264061546+ivanepsilondelta@users.noreply.github.com>
22 lines
1.0 KiB
C++
22 lines
1.0 KiB
C++
// Device creation policy for bounded D3D12 indexed-indirect draws. No work per draw.
|
|
#pragma once
|
|
|
|
#include <vulkan/vulkan.h>
|
|
|
|
namespace leonida {
|
|
|
|
inline bool can_enable_robust_index_view(VkPhysicalDevice device, PFN_vkGetPhysicalDeviceProperties2 properties,
|
|
bool sized_indirect, bool robust_access, bool storage_update_after_bind) {
|
|
if (!sized_indirect || !robust_access) return false;
|
|
if (!storage_update_after_bind) return true;
|
|
// VUID-VkDeviceCreateInfo-robustBufferAccess-10247: preserve bindless rather than disabling
|
|
// descriptorBindingStorageBufferUpdateAfterBind on a device that cannot combine the two.
|
|
if (!properties) return false;
|
|
VkPhysicalDeviceVulkan12Properties indexed{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_PROPERTIES};
|
|
VkPhysicalDeviceProperties2 query{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2, &indexed};
|
|
properties(device, &query);
|
|
return indexed.robustBufferAccessUpdateAfterBind == VK_TRUE;
|
|
}
|
|
|
|
} // namespace leonida
|