MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-ValidationLayers / TEST_F

Function TEST_F

tests/unit/video_encode.cpp:19–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17class NegativeVideoEncode : public VkVideoLayerTest {};
18
19TEST_F(NegativeVideoEncode, EncodeQualityLevelPropsUnsupportedProfile) {
20 TEST_DESCRIPTION("vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR - unsupported profile");
21
22 RETURN_IF_SKIP(Init());
23
24 auto config = GetConfigEncodeInvalid();
25 if (!config) {
26 GTEST_SKIP() << "Test requires encode support";
27 }
28
29 auto quality_level_info = vku::InitStruct<VkPhysicalDeviceVideoEncodeQualityLevelInfoKHR>();
30 quality_level_info.pVideoProfile = config.Profile();
31
32 m_errorMonitor->SetDesiredError("VUID-VkPhysicalDeviceVideoEncodeQualityLevelInfoKHR-pVideoProfile-08259");
33 vk::GetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR(Gpu(), &quality_level_info, config.EncodeQualityLevelProps());
34 m_errorMonitor->VerifyFound();
35}
36
37TEST_F(NegativeVideoEncode, EncodeQualityLevelPropsProfileNotEncode) {
38 TEST_DESCRIPTION("vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR - profile is not an encode profile");

Callers

nothing calls this directly

Tested by

no test coverage detected