Skip to content

Commit bf6708d

Browse files
Improve feature chain initialization.
1 parent 731c50c commit bf6708d

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

lib/API/VK/Device.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1273,11 +1273,9 @@ class VulkanDevice : public offloadtest::Device {
12731273
MeshFeatures.multiviewMeshShader = 0;
12741274
MeshFeatures.primitiveFragmentShadingRateMeshShader = 0;
12751275
MeshFeatures.meshShaderQueries = 0;
1276-
#ifdef VK_VERSION_1_4
1277-
Features14.pNext = &MeshFeatures;
1278-
#else
1279-
Features13.pNext = &MeshFeatures;
1280-
#endif
1276+
1277+
MeshFeatures.pNext = Features.pNext;
1278+
Features.pNext = &MeshFeatures;
12811279
}
12821280

12831281
DeviceInfo.enabledExtensionCount =

0 commit comments

Comments
 (0)