Flutter Engine
The Flutter Engine
Functions
GrVkSampler.cpp File Reference
#include "src/gpu/ganesh/vk/GrVkSampler.h"
#include "src/gpu/ganesh/vk/GrVkGpu.h"
#include "src/gpu/ganesh/vk/GrVkSamplerYcbcrConversion.h"

Go to the source code of this file.

Functions

static VkSamplerAddressMode wrap_mode_to_vk_sampler_address (GrSamplerState::WrapMode wrapMode)
 
static VkSamplerMipmapMode mipmap_mode_to_vk_sampler_mipmap_mode (GrSamplerState::MipmapMode mm)
 

Function Documentation

◆ mipmap_mode_to_vk_sampler_mipmap_mode()

static VkSamplerMipmapMode mipmap_mode_to_vk_sampler_mipmap_mode ( GrSamplerState::MipmapMode  mm)
static

Definition at line 27 of file GrVkSampler.cpp.

27 {
28 switch (mm) {
29 // There is no disable mode. We use max level to disable mip mapping.
30 // It may make more sense to use NEAREST for kNone but Chrome pixel tests seam dependent
31 // on subtle rendering differences introduced by switching this.
35 }
37}
#define SkUNREACHABLE
Definition: SkAssert.h:135
@ VK_SAMPLER_MIPMAP_MODE_NEAREST
Definition: vulkan_core.h:2119
@ VK_SAMPLER_MIPMAP_MODE_LINEAR
Definition: vulkan_core.h:2120

◆ wrap_mode_to_vk_sampler_address()

static VkSamplerAddressMode wrap_mode_to_vk_sampler_address ( GrSamplerState::WrapMode  wrapMode)
static