File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -3927,8 +3927,18 @@ static void demo_init_vk_swapchain(struct demo *demo) {
3927
3927
VkResult U_ASSERT_ONLY err ;
3928
3928
3929
3929
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
+ };
3930
3940
3931
- // Iterate over each queue to learn whether it supports presenting:
3941
+ // Iterate over each queue to learn whether it supports presenting:
3932
3942
VkBool32 * supportsPresent = (VkBool32 * )malloc (demo -> queue_family_count * sizeof (VkBool32 ));
3933
3943
for (uint32_t i = 0 ; i < demo -> queue_family_count ; i ++ ) {
3934
3944
vkGetPhysicalDeviceSurfaceSupportKHR (demo -> gpu , i , demo -> surface , & supportsPresent [i ]);
You can’t perform that action at this time.
0 commit comments