| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
WGPU.Internal.Sampler
Description
Synopsis
- newtype Sampler = Sampler {}
- data AddressMode
- data FilterMode
- data SamplerDescriptor = SamplerDescriptor {}
- createSampler :: MonadIO m => Device -> SamplerDescriptor -> m Sampler
Types
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 | |
Fields | |
data AddressMode Source #
How edges should be handled in texture addressing.
Instances
| Eq AddressMode Source # | |
Defined in WGPU.Internal.Sampler | |
| Show AddressMode Source # | |
Defined in WGPU.Internal.Sampler Methods showsPrec :: Int -> AddressMode -> ShowS # show :: AddressMode -> String # showList :: [AddressMode] -> ShowS # | |
| ToRaw AddressMode WGPUAddressMode Source # | |
Defined in WGPU.Internal.Sampler Methods raw :: AddressMode -> ContT r IO WGPUAddressMode Source # | |
data FilterMode Source #
Texel mixing mode when sampling between texels.
Constructors
| FilterModeNearest | |
| FilterModeLinear |
Instances
| Eq FilterMode Source # | |
Defined in WGPU.Internal.Sampler | |
| Show FilterMode Source # | |
Defined in WGPU.Internal.Sampler Methods showsPrec :: Int -> FilterMode -> ShowS # show :: FilterMode -> String # showList :: [FilterMode] -> ShowS # | |
| ToRaw FilterMode WGPUFilterMode Source # | |
Defined in WGPU.Internal.Sampler Methods raw :: FilterMode -> ContT r IO WGPUFilterMode Source # | |
data SamplerDescriptor Source #
Describes a Sampler.
Constructors
| SamplerDescriptor | |
Fields
| |
Instances
| Eq SamplerDescriptor Source # | |
Defined in WGPU.Internal.Sampler Methods (==) :: SamplerDescriptor -> SamplerDescriptor -> Bool # (/=) :: SamplerDescriptor -> SamplerDescriptor -> Bool # | |
| Show SamplerDescriptor Source # | |
Defined in WGPU.Internal.Sampler Methods showsPrec :: Int -> SamplerDescriptor -> ShowS # show :: SamplerDescriptor -> String # showList :: [SamplerDescriptor] -> ShowS # | |
| ToRaw SamplerDescriptor WGPUSamplerDescriptor Source # | |
Defined in WGPU.Internal.Sampler Methods raw :: SamplerDescriptor -> ContT r IO WGPUSamplerDescriptor Source # | |
Functions
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.