Skip to content

Commit

Permalink
Fixed incorrect pNext value for VkPhysicalDeviceFeatures2 struct
Browse files Browse the repository at this point in the history
  • Loading branch information
ravi688 committed Feb 15, 2024
1 parent a188d24 commit f3e4341
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/PlayVk/PlayVk.h
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ PVK_LINKAGE bool __pvkIsPhysicalDeviceSuitable(VkPhysicalDevice device, VkSurfac
conversionFeatures.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLER_YCBCR_CONVERSION_FEATURES;
conversionFeatures.samplerYcbcrConversion = requirements->samplerYcbcrConversion ? VK_TRUE : VK_FALSE;
VkPhysicalDeviceFeatures2 requiredFeatures2 = { };
requiredFeatures2.pNext = &conversionFeatures;
requiredFeatures2.pNext = requirements->samplerYcbcrConversion ? &conversionFeatures : NULL;
requiredFeatures2.features.geometryShader = (requirements->shaders & PVK_SHADER_TYPE_GEOMETRY) ? VK_TRUE : VK_FALSE;
requiredFeatures2.features.tessellationShader = (requirements->shaders & PVK_SHADER_TYPE_TESSELLATION) ? VK_TRUE : VK_FALSE;

Expand Down

0 comments on commit f3e4341

Please sign in to comment.