Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
impeller::SamplerDescriptor Struct Referencefinal

#include <sampler_descriptor.h>

Inheritance diagram for impeller::SamplerDescriptor:
impeller::Comparable< SamplerDescriptor > impeller::ComparableBase

Public Member Functions

 SamplerDescriptor ()
 
 SamplerDescriptor (std::string label, MinMagFilter min_filter, MinMagFilter mag_filter, MipFilter mip_filter)
 
std::size_t GetHash () const override
 
bool IsEqual (const SamplerDescriptor &o) const override
 
virtual std::size_t GetHash () const=0
 
virtual bool IsEqual (const SamplerDescriptor &other) const=0
 

Public Attributes

MinMagFilter min_filter = MinMagFilter::kNearest
 
MinMagFilter mag_filter = MinMagFilter::kNearest
 
MipFilter mip_filter = MipFilter::kNearest
 
SamplerAddressMode width_address_mode = SamplerAddressMode::kClampToEdge
 
SamplerAddressMode height_address_mode = SamplerAddressMode::kClampToEdge
 
SamplerAddressMode depth_address_mode = SamplerAddressMode::kClampToEdge
 
std::string label = "NN Clamp Sampler"
 

Detailed Description

Definition at line 15 of file sampler_descriptor.h.

Constructor & Destructor Documentation

◆ SamplerDescriptor() [1/2]

impeller::SamplerDescriptor::SamplerDescriptor ( )
default

◆ SamplerDescriptor() [2/2]

impeller::SamplerDescriptor::SamplerDescriptor ( std::string  label,
MinMagFilter  min_filter,
MinMagFilter  mag_filter,
MipFilter  mip_filter 
)

Member Function Documentation

◆ GetHash()

std::size_t impeller::SamplerDescriptor::GetHash ( ) const
inlineoverridevirtual

Implements impeller::Comparable< SamplerDescriptor >.

Definition at line 34 of file sampler_descriptor.h.

34 {
38 }
constexpr std::size_t HashCombine()
Definition: hash_combine.h:25
SamplerAddressMode depth_address_mode
SamplerAddressMode width_address_mode
SamplerAddressMode height_address_mode

◆ IsEqual()

bool impeller::SamplerDescriptor::IsEqual ( const SamplerDescriptor o) const
inlineoverridevirtual

Implements impeller::Comparable< SamplerDescriptor >.

Definition at line 41 of file sampler_descriptor.h.

41 {
42 return min_filter == o.min_filter && mag_filter == o.mag_filter &&
43 mip_filter == o.mip_filter &&
44 width_address_mode == o.width_address_mode &&
45 height_address_mode == o.height_address_mode &&
46 depth_address_mode == o.depth_address_mode;
47 }

Member Data Documentation

◆ depth_address_mode

SamplerAddressMode impeller::SamplerDescriptor::depth_address_mode = SamplerAddressMode::kClampToEdge

Definition at line 22 of file sampler_descriptor.h.

◆ height_address_mode

SamplerAddressMode impeller::SamplerDescriptor::height_address_mode = SamplerAddressMode::kClampToEdge

Definition at line 21 of file sampler_descriptor.h.

◆ label

std::string impeller::SamplerDescriptor::label = "NN Clamp Sampler"

Definition at line 24 of file sampler_descriptor.h.

◆ mag_filter

MinMagFilter impeller::SamplerDescriptor::mag_filter = MinMagFilter::kNearest

Definition at line 17 of file sampler_descriptor.h.

◆ min_filter

MinMagFilter impeller::SamplerDescriptor::min_filter = MinMagFilter::kNearest

Definition at line 16 of file sampler_descriptor.h.

◆ mip_filter

MipFilter impeller::SamplerDescriptor::mip_filter = MipFilter::kNearest

Definition at line 18 of file sampler_descriptor.h.

◆ width_address_mode

SamplerAddressMode impeller::SamplerDescriptor::width_address_mode = SamplerAddressMode::kClampToEdge

Definition at line 20 of file sampler_descriptor.h.


The documentation for this struct was generated from the following files: