Skip to content

Commit

Permalink
igl | tests | Ensure Vulkan Validation Layers are enabled in tests
Browse files Browse the repository at this point in the history
Reviewed By: mmaurer

Differential Revision: D67364105

fbshipit-source-id: dc67edcb1daa483c3c847f301eccb44cbcb242db
  • Loading branch information
corporateshark authored and facebook-github-bot committed Dec 18, 2024
1 parent bfb90d2 commit 126513e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/igl/tests/vulkan/Device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,15 @@ TEST_F(DeviceVulkanTest, CurrentThreadIdTest) {
ctx.ensureCurrentContextThread();
}

TEST_F(DeviceVulkanTest, EnsureValidation) {
#if !defined(IGL_DISABLE_VALIDATION)
igl::vulkan::VulkanContext& ctx =
static_cast<igl::vulkan::Device*>(iglDev_.get())->getVulkanContext();

ASSERT_TRUE(ctx.areValidationLayersEnabled());
#endif // !defined(IGL_DISABLE_VALIDATION)
}

TEST_F(DeviceVulkanTest, UpdateGlslangResource) {
const igl::vulkan::VulkanContext& ctx =
static_cast<const igl::vulkan::Device*>(iglDev_.get())->getVulkanContext();
Expand Down

0 comments on commit 126513e

Please sign in to comment.