MCPcopy Create free account
hub / github.com/comaps/comaps / GetVulkanSamplerAddressMode

Function GetVulkanSamplerAddressMode

libs/drape/vulkan/vulkan_object_manager.cpp:23–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21uint32_t constexpr kMaxDescriptorsSetCount = 256 * kMaxInflightFrames;
22
23VkSamplerAddressMode GetVulkanSamplerAddressMode(TextureWrapping wrapping)
24{
25 switch (wrapping)
26 {
27 case TextureWrapping::ClampToEdge: return VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE;
28 case TextureWrapping::Repeat: return VK_SAMPLER_ADDRESS_MODE_REPEAT;
29 }
30 UNREACHABLE();
31}
32
33VkFilter GetVulkanFilter(TextureFilter filter)
34{

Callers 1

GetSamplerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected