fix Android Vulkan instrumentation tests (#4091)

This commit is contained in:
Adrian Cojocaru
2026-02-11 13:35:08 +02:00
committed by GitHub
parent d54f84a8d6
commit dd48946987
7 changed files with 18 additions and 24 deletions

View File

@@ -19,7 +19,7 @@
#define VMA_DYNAMIC_VULKAN_FUNCTIONS 0
#include "vk_mem_alloc.h"
#ifndef NDEBUG
#if !defined(NDEBUG) && !defined(__ANDROID__)
#define ENABLE_VULKAN_VALIDATION
// #define ENABLE_VULKAN_GPU_ASSISTED_VALIDATION
// #define ENABLE_VMA_DEBUG
@@ -61,7 +61,7 @@ public:
if (!debugUtilsEnabled) return;
const uint64_t handle = reinterpret_cast<uint64_t>(static_cast<typename T::CType>(object));
device->setDebugUtilsObjectNameEXT(vk::DebugUtilsObjectNameInfoEXT()
.setObjectType(object.objectType)
.setObjectType(T::objectType)
.setObjectHandle(handle)
.setPObjectName(name.c_str()),
dispatcher);