Skip to content

Commit fecef95

Browse files
committed
mantle: add support for extended_dynamic_state3 functions loading
1 parent 46721c2 commit fecef95

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

src/mantle/vulkan_loader.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,4 +244,12 @@ void vulkanLoaderDeviceInit(
244244
LOAD_VULKAN_DEV_FN(vkd, device, vkGetDescriptorSetLayoutBindingOffsetEXT);
245245
LOAD_VULKAN_DEV_FN(vkd, device, vkGetDescriptorSetLayoutSizeEXT);
246246
#endif
247+
248+
#ifdef VK_EXT_extended_dynamic_state3
249+
LOAD_VULKAN_DEV_FN(vkd, device, vkCmdSetPolygonModeEXT);
250+
LOAD_VULKAN_DEV_FN(vkd, device, vkCmdSetColorBlendEnableEXT);
251+
LOAD_VULKAN_DEV_FN(vkd, device, vkCmdSetColorBlendEquationEXT);
252+
LOAD_VULKAN_DEV_FN(vkd, device, vkCmdSetSampleMaskEXT);
253+
LOAD_VULKAN_DEV_FN(vkd, device, vkCmdSetRasterizationSamplesEXT);
254+
#endif
247255
}

src/mantle/vulkan_loader.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,14 @@ typedef struct _VULKAN_DEVICE {
225225
VULKAN_FN(vkGetDescriptorSetLayoutBindingOffsetEXT);
226226
VULKAN_FN(vkGetDescriptorSetLayoutSizeEXT);
227227
#endif
228+
229+
#ifdef VK_EXT_extended_dynamic_state3
230+
VULKAN_FN(vkCmdSetPolygonModeEXT);
231+
VULKAN_FN(vkCmdSetColorBlendEnableEXT);
232+
VULKAN_FN(vkCmdSetColorBlendEquationEXT);
233+
VULKAN_FN(vkCmdSetSampleMaskEXT);
234+
VULKAN_FN(vkCmdSetRasterizationSamplesEXT);
235+
#endif
228236
} VULKAN_DEVICE;
229237

230238
extern VULKAN_LIBRARY vkl;

0 commit comments

Comments
 (0)