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