Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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.
32 case GrSamplerState::MipmapMode::kNone: return VK_SAMPLER_MIPMAP_MODE_LINEAR;
33 case GrSamplerState::MipmapMode::kNearest: return VK_SAMPLER_MIPMAP_MODE_NEAREST;
34 case GrSamplerState::MipmapMode::kLinear: return VK_SAMPLER_MIPMAP_MODE_LINEAR;
35 }
37}
#define SkUNREACHABLE
Definition SkAssert.h:135
@ VK_SAMPLER_MIPMAP_MODE_NEAREST
@ VK_SAMPLER_MIPMAP_MODE_LINEAR

◆ wrap_mode_to_vk_sampler_address()

static VkSamplerAddressMode wrap_mode_to_vk_sampler_address ( GrSamplerState::WrapMode  wrapMode)
static