Skip to content

Commit

Permalink
tests: Skip test if descriptor set alloc fails
Browse files Browse the repository at this point in the history
  • Loading branch information
ziga-lunarg authored and spencer-lunarg committed Dec 17, 2024
1 parent bebbbba commit 8eae803
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/unit/ycbcr_positive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,9 @@ TEST_F(PositiveYcbcr, ImageLayout) {
m_device, {
{0, VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, 1, VK_SHADER_STAGE_FRAGMENT_BIT, &sampler.handle()},
});
if (!descriptor_set.set_) {
GTEST_SKIP() << "Can't allocate descriptor with immutable sampler";
}

const vkt::PipelineLayout pipeline_layout(*m_device, {&descriptor_set.layout_});
descriptor_set.WriteDescriptorImageInfo(0, view.handle(), sampler.handle());
Expand Down

0 comments on commit 8eae803

Please sign in to comment.