// D3D-24 on a GPU: SetMarker/BeginEvent/EndEvent on command lists and queues become VK_EXT_debug_utils labels, // and private data (SetPrivateData, SetPrivateDataInterface, SetName) works on every object of the Vulkan device. // The device is built behind the Xbox-ABI proxy, as in d3d12_vulkan_device_test, on a vkGetInstanceProcAddr that // records every label call before forwarding it to the driver, so the test sees exactly what reached Vulkan. // Without VK_EXT_debug_utils the label part is skipped; the no-extension path (markers are no-ops) and private // data always run. No shaders or game data. Set LEONIDA_VK_VALIDATION=1 to run under VK_LAYER_KHRONOS_validation; // any validation error fails the test. #include "vk_test_device.h" #include "../shims/d3d12_com.h" #include "../shims/d3d12_xs_device.h" #include #include #include #include #define EXPECT(condition) do { \ if (!(condition)) { std::fprintf(stderr, "line %d: %s\n", __LINE__, #condition); return 1; } \ } while (0) namespace { template struct Ref { T* p = nullptr; ~Ref() { reset(); } void reset() { if (p) p->Release(); p = nullptr; } T* operator->() const { return p; } }; // Every label call the layer made, in order: "cmd insert