Skip to content

Commit bba1f5c

Browse files
committed
Update cube.c
1 parent 79ea7ec commit bba1f5c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

cube/cube.c

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3927,8 +3927,18 @@ static void demo_init_vk_swapchain(struct demo *demo) {
39273927
VkResult U_ASSERT_ONLY err;
39283928

39293929
demo_create_surface(demo);
3930+
VkPhysicalDeviceProtectedMemoryProperties pro_mem_props = {
3931+
.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROTECTED_MEMORY_PROPERTIES,
3932+
.pNext = NULL,
3933+
};
3934+
3935+
VkPhysicalDeviceProtectedMemoryFeatures pro_mem_feas = {
3936+
.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROTECTED_MEMORY_FEATURES,
3937+
.pNext = NULL,
3938+
.protectedMemory = VK_TRUE,
3939+
};
39303940

3931-
// Iterate over each queue to learn whether it supports presenting:
3941+
// Iterate over each queue to learn whether it supports presenting:
39323942
VkBool32 *supportsPresent = (VkBool32 *)malloc(demo->queue_family_count * sizeof(VkBool32));
39333943
for (uint32_t i = 0; i < demo->queue_family_count; i++) {
39343944
vkGetPhysicalDeviceSurfaceSupportKHR(demo->gpu, i, demo->surface, &supportsPresent[i]);

0 commit comments

Comments
 (0)