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

Function TEST_F

tests/unit/sampler.cpp:21–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19class NegativeSampler : public VkLayerTest {};
20
21TEST_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
34TEST_F(NegativeSampler, MirrorClampToEdgeNotEnabled12) {
35 TEST_DESCRIPTION("Validation using CLAMP_TO_EDGE for Vulkan 1.2 without the samplerMirrorClampToEdge feature enabled.");

Callers

nothing calls this directly

Calls 15

NearestSmallerFunction · 0.85
NearestGreaterFunction · 0.85
CreateSamplerFunction · 0.85
DestroySamplerFunction · 0.85
CmdBindPipelineFunction · 0.85
CmdBindDescriptorSetsFunction · 0.85
CmdDrawFunction · 0.85
IsImageFormatSupportedFunction · 0.85
UpdateDescriptorSetsFunction · 0.85

Tested by

no test coverage detected