Skip to content

Commit 4a83d2a

Browse files
committed
video: add comment for why the assert exists
1 parent a64de74 commit 4a83d2a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/nbl/video/CVulkanPhysicalDevice.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1622,6 +1622,7 @@ core::smart_refctd_ptr<ILogicalDevice> CVulkanPhysicalDevice::createLogicalDevic
16221622
if (!enableExtensionIfAvailable(VK_EXT_GRAPHICS_PIPELINE_LIBRARY_EXTENSION_NAME, &graphicsPipelineLibraryFeatures)) {
16231623
return nullptr;
16241624
}
1625+
// It's okay to assert because Vulkan impl isn't allowed to return that an extension is present/supported while the requirement prerequisite dependant is not
16251626
assert(pipelineLibraryEnabled);
16261627
graphicsPipelineLibraryFeatures.graphicsPipelineLibrary = true;
16271628
}

0 commit comments

Comments
 (0)