| 19 | class NegativeSampler : public VkLayerTest {}; |
| 20 | |
| 21 | TEST_F(NegativeSampler, MirrorClampToEdgeNotEnabled) { |
| 22 | TEST_DESCRIPTION("Validation should catch using CLAMP_TO_EDGE addressing mode if the extension is not enabled."); |
| 23 | |
| 24 | SetTargetApiVersion(VK_API_VERSION_1_0); |
| 25 | RETURN_IF_SKIP(Init()); |
| 26 | |
| 27 | VkSamplerCreateInfo sampler_info = SafeSaneSamplerCreateInfo(); |
| 28 | // Set the modes to cause the error |
| 29 | sampler_info.addressModeU = VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE; |
| 30 | // Prior to 1.2 we get the implicit VU |
| 31 | CreateSamplerTest(sampler_info, "VUID-VkSamplerCreateInfo-addressModeU-parameter"); |
| 32 | } |
| 33 | |
| 34 | TEST_F(NegativeSampler, MirrorClampToEdgeNotEnabled12) { |
| 35 | TEST_DESCRIPTION("Validation using CLAMP_TO_EDGE for Vulkan 1.2 without the samplerMirrorClampToEdge feature enabled."); |
nothing calls this directly
no test coverage detected