wgpu-hs-0.4.0.0: WGPU
Safe HaskellNone
LanguageHaskell2010

WGPU.Internal.Sampler

Description

 
Synopsis

Types

newtype Sampler Source #

Handle to a Sampler.

A Sampler defines how a pipeline will sample from a TextureView. Samplers define image filters (include anisotropy) and address (wrapping) modes, among other things.

Constructors

Sampler 

Instances

Instances details
Eq Sampler Source # 
Instance details

Defined in WGPU.Internal.Sampler

Methods

(==) :: Sampler -> Sampler -> Bool #

(/=) :: Sampler -> Sampler -> Bool #

Show Sampler Source # 
Instance details

Defined in WGPU.Internal.Sampler

ToRaw Sampler WGPUSampler Source # 
Instance details

Defined in WGPU.Internal.Sampler

data AddressMode Source #

How edges should be handled in texture addressing.

Instances

Instances details
Eq AddressMode Source # 
Instance details

Defined in WGPU.Internal.Sampler

Show AddressMode Source # 
Instance details

Defined in WGPU.Internal.Sampler

ToRaw AddressMode WGPUAddressMode Source # 
Instance details

Defined in WGPU.Internal.Sampler

data FilterMode Source #

Texel mixing mode when sampling between texels.

Instances

Instances details
Eq FilterMode Source # 
Instance details

Defined in WGPU.Internal.Sampler

Show FilterMode Source # 
Instance details

Defined in WGPU.Internal.Sampler

ToRaw FilterMode WGPUFilterMode Source # 
Instance details

Defined in WGPU.Internal.Sampler

Functions

createSampler Source #

Arguments

:: MonadIO m 
=> Device

Device for which to create the sampler.

-> SamplerDescriptor

Description of the sampler to create.

-> m Sampler

Action to create the sampler.

Create a Sampler.