Manually guard vkCmdSetExclusiveScissorEnableNV

vkCmdSetExclusiveScissorEnableNV was added to an existing extension
in 1.3.241. Guard it against users with older headers.
This commit is contained in:
Charles Giessen 2023-12-28 16:13:29 -06:00 committed by Charles Giessen
parent 25dc27c31c
commit 8e23c8afda
2 changed files with 4 additions and 3 deletions

View File

@ -107,6 +107,7 @@ HEADER_VERSION_WORKAROUNDS = {
'vkGetLatencyTimingsNV': '271', # Changed API parameters 'vkGetLatencyTimingsNV': '271', # Changed API parameters
'vkCmdSetDiscardRectangleEnableEXT': '241', # new function in older extension 'vkCmdSetDiscardRectangleEnableEXT': '241', # new function in older extension
'vkCmdSetDiscardRectangleModeEXT': '241', # new function in older extension 'vkCmdSetDiscardRectangleModeEXT': '241', # new function in older extension
'vkCmdSetExclusiveScissorEnableNV': '241', # new function in older extension
} }
def get_macro_guard(reqs_collection, command_name): def get_macro_guard(reqs_collection, command_name):

View File

@ -1873,7 +1873,7 @@ struct DispatchTable {
#if (defined(VK_NV_scissor_exclusive)) #if (defined(VK_NV_scissor_exclusive))
fp_vkCmdSetExclusiveScissorNV = reinterpret_cast<PFN_vkCmdSetExclusiveScissorNV>(procAddr(device, "vkCmdSetExclusiveScissorNV")); fp_vkCmdSetExclusiveScissorNV = reinterpret_cast<PFN_vkCmdSetExclusiveScissorNV>(procAddr(device, "vkCmdSetExclusiveScissorNV"));
#endif #endif
#if (defined(VK_NV_scissor_exclusive)) #if ((defined(VK_NV_scissor_exclusive))) && VK_HEADER_VERSION >= 241
fp_vkCmdSetExclusiveScissorEnableNV = reinterpret_cast<PFN_vkCmdSetExclusiveScissorEnableNV>(procAddr(device, "vkCmdSetExclusiveScissorEnableNV")); fp_vkCmdSetExclusiveScissorEnableNV = reinterpret_cast<PFN_vkCmdSetExclusiveScissorEnableNV>(procAddr(device, "vkCmdSetExclusiveScissorEnableNV"));
#endif #endif
#if (defined(VK_NV_shading_rate_image)) #if (defined(VK_NV_shading_rate_image))
@ -3862,7 +3862,7 @@ struct DispatchTable {
fp_vkCmdSetExclusiveScissorNV(commandBuffer, firstExclusiveScissor, exclusiveScissorCount, pExclusiveScissors); fp_vkCmdSetExclusiveScissorNV(commandBuffer, firstExclusiveScissor, exclusiveScissorCount, pExclusiveScissors);
} }
#endif #endif
#if (defined(VK_NV_scissor_exclusive)) #if ((defined(VK_NV_scissor_exclusive))) && VK_HEADER_VERSION >= 241
void cmdSetExclusiveScissorEnableNV(VkCommandBuffer commandBuffer, uint32_t firstExclusiveScissor, uint32_t exclusiveScissorCount, const VkBool32* pExclusiveScissorEnables) const noexcept { void cmdSetExclusiveScissorEnableNV(VkCommandBuffer commandBuffer, uint32_t firstExclusiveScissor, uint32_t exclusiveScissorCount, const VkBool32* pExclusiveScissorEnables) const noexcept {
fp_vkCmdSetExclusiveScissorEnableNV(commandBuffer, firstExclusiveScissor, exclusiveScissorCount, pExclusiveScissorEnables); fp_vkCmdSetExclusiveScissorEnableNV(commandBuffer, firstExclusiveScissor, exclusiveScissorCount, pExclusiveScissorEnables);
} }
@ -6246,7 +6246,7 @@ struct DispatchTable {
#else #else
void * fp_vkCmdSetExclusiveScissorNV{}; void * fp_vkCmdSetExclusiveScissorNV{};
#endif #endif
#if (defined(VK_NV_scissor_exclusive)) #if ((defined(VK_NV_scissor_exclusive))) && VK_HEADER_VERSION >= 241
PFN_vkCmdSetExclusiveScissorEnableNV fp_vkCmdSetExclusiveScissorEnableNV = nullptr; PFN_vkCmdSetExclusiveScissorEnableNV fp_vkCmdSetExclusiveScissorEnableNV = nullptr;
#else #else
void * fp_vkCmdSetExclusiveScissorEnableNV{}; void * fp_vkCmdSetExclusiveScissorEnableNV{};