Skip to content

Commit

Permalink
igl | tests | Redo EnsureValidation test
Browse files Browse the repository at this point in the history
Reviewed By: rameshviswanathan

Differential Revision: D67545706

fbshipit-source-id: 4b0004d514b134a11151c03c56d317c4d636fe0f
  • Loading branch information
corporateshark authored and facebook-github-bot committed Dec 23, 2024
1 parent ef5360a commit 46a383a
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 46a383a

Please sign in to comment.