Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
sampler_descriptor_unittests.cc
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
7
8namespace impeller {
9namespace testing {
10
11TEST(SamplerDescriptorTest, ToKeyIncludesAllFields) {
15
16 b.min_filter = MinMagFilter::kLinear;
19
20 b.mag_filter = MinMagFilter::kLinear;
23
24 b.mip_filter = MipFilter::kLinear;
27
28 b.width_address_mode = SamplerAddressMode::kRepeat;
31
32 b.height_address_mode = SamplerAddressMode::kRepeat;
35
36 b.depth_address_mode = SamplerAddressMode::kRepeat;
39
40 b.max_anisotropy = 16;
42 b.max_anisotropy = 1;
44}
45
46} // namespace testing
47} // namespace impeller
TEST(FrameTimingsRecorderTest, RecordVsync)
@ kLinear
Sample from the two nearest mip levels and linearly interpolate.
static uint64_t ToKey(const SamplerDescriptor &d)