class Sampler

Defined at line 17 of file ../../src/ui/lib/escher/vk/sampler.h

Wraps an vk::Sampler object, and exposes the extension data used to construct

it, so that the same extension data can be used in other contexts (e.g., when

creating vk::ImageView objects).

Public Members

static const ResourceTypeInfo kTypeInfo

Public Methods

const ResourceTypeInfo & type_info ()

Defined at line 20 of file ../../src/ui/lib/escher/vk/sampler.h

const vk::Sampler & vk ()

Defined at line 26 of file ../../src/ui/lib/escher/vk/sampler.h

bool is_immutable ()

If this sampler is immutable, it can only be used with a descriptor

set/pipeline that has been pre-configured with this sampler.

Defined at line 30 of file ../../src/ui/lib/escher/vk/sampler.h

void * GetExtensionData ()

If this sampler has extension data, then any ImageViews that use this

sampler must be initialized with the same extension data.

Defined at line 34 of file ../../src/ui/lib/escher/vk/sampler.h

void Sampler (ResourceRecycler * resource_recycler, vk::Format format, vk::Filter filter, ColorSpace color_space, bool use_unnormalized_coordinates)

Defined at line 71 of file ../../src/ui/lib/escher/vk/sampler.cc

void ~Sampler ()

Defined at line 164 of file ../../src/ui/lib/escher/vk/sampler.cc