Skip to content

Commit

Permalink
do not change HookInitPromotedExtension signature
Browse files Browse the repository at this point in the history
  • Loading branch information
qbojj committed Jun 25, 2024
1 parent 897eda8 commit c5b0e76
Show file tree
Hide file tree
Showing 4 changed files with 113 additions and 115 deletions.
4 changes: 2 additions & 2 deletions renderdoc/driver/vulkan/vk_dispatchtables.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ void InitInstanceExtensionTables(VkInstance instance, InstanceDeviceInfo *info)
}

#undef HookInitPromotedExtension
#define HookInitPromotedExtension(cond, version, func, suffix) \
#define HookInitPromotedExtension(cond, func, suffix) \
if(cond) \
{ \
InstanceGPA(func); \
Expand Down Expand Up @@ -140,7 +140,7 @@ void InitDeviceExtensionTables(VkDevice device, InstanceDeviceInfo *info)
}

#undef HookInitPromotedExtension
#define HookInitPromotedExtension(cond, version, func, suffix) \
#define HookInitPromotedExtension(cond, func, suffix) \
if(cond) \
{ \
DeviceGPA(func); \
Expand Down
12 changes: 11 additions & 1 deletion renderdoc/driver/vulkan/vk_dispatchtables.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

// layer includes

#include <cstdint>
#if ENABLED(RDOC_WIN32)
// undefined clashing windows #defines
#undef CreateEvent
Expand All @@ -37,10 +38,19 @@

void InitReplayTables(void *vulkanModule);

// bitmask of extension enabled status
enum ExtensionStatusFlagBits {
NotEnabled = 0,
ExplicitEnabled = 1 << 0,
PromotionEnabled = 1 << 1,
};

typedef uint8_t ExtensionStatusFlags;

struct InstanceDeviceInfo
{
#undef DeclExt
#define DeclExt(name) bool ext_##name = false;
#define DeclExt(name) ExtensionStatusFlags ext_##name = ExtensionStatusFlagBits::NotEnabled;

bool brokenGetDeviceProcAddr = false;

Expand Down
Loading

0 comments on commit c5b0e76

Please sign in to comment.