MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / find_mipmap_mode

Function find_mipmap_mode

framework/gltf_loader.cpp:76–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74};
75
76inline VkSamplerMipmapMode find_mipmap_mode(int min_filter)
77{
78 switch (min_filter)
79 {
80 case TINYGLTF_TEXTURE_FILTER_NEAREST_MIPMAP_NEAREST:
81 case TINYGLTF_TEXTURE_FILTER_LINEAR_MIPMAP_NEAREST:
82 return VK_SAMPLER_MIPMAP_MODE_NEAREST;
83 case TINYGLTF_TEXTURE_FILTER_NEAREST_MIPMAP_LINEAR:
84 case TINYGLTF_TEXTURE_FILTER_LINEAR_MIPMAP_LINEAR:
85 return VK_SAMPLER_MIPMAP_MODE_LINEAR;
86 default:
87 return VK_SAMPLER_MIPMAP_MODE_LINEAR;
88 }
89};
90
91inline VkFilter find_mag_filter(int mag_filter)
92{

Callers 1

parse_samplerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected