| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
WGPU.Internal.Pipeline
Description
Synopsis
- newtype PipelineLayout = PipelineLayout {}
- data PipelineLayoutDescriptor = PipelineLayoutDescriptor {}
- data VertexFormat
- = VertexFormatUint8x2
- | VertexFormatUint8x4
- | VertexFormatSint8x2
- | VertexFormatSint8x4
- | VertexFormatUnorm8x2
- | VertexFormatUnorm8x4
- | VertexFormatSnorm8x2
- | VertexFormatSnorm8x4
- | VertexFormatUint16x2
- | VertexFormatUint16x4
- | VertexFormatSint16x2
- | VertexFormatSint16x4
- | VertexFormatUnorm16x2
- | VertexFormatUnorm16x4
- | VertexFormatSnorm16x2
- | VertexFormatSnorm16x4
- | VertexFormatFloat16x2
- | VertexFormatFloat16x4
- | VertexFormatFloat32
- | VertexFormatFloat32x2
- | VertexFormatFloat32x3
- | VertexFormatFloat32x4
- | VertexFormatUint32
- | VertexFormatUint32x2
- | VertexFormatUint32x3
- | VertexFormatUint32x4
- | VertexFormatSint32
- | VertexFormatSint32x2
- | VertexFormatSint32x3
- | VertexFormatSint32x4
- data VertexAttribute = VertexAttribute {}
- data InputStepMode
- data VertexBufferLayout = VertexBufferLayout {
- arrayStride :: !Word64
- stepMode :: !InputStepMode
- attributes :: !(Vector VertexAttribute)
- data VertexState = VertexState {}
- data PrimitiveTopology
- data FrontFace
- data CullMode
- data PrimitiveState = PrimitiveState {
- topology :: !PrimitiveTopology
- stripIndexFormat :: !(SMaybe IndexFormat)
- frontFace :: !FrontFace
- cullMode :: !CullMode
- data StencilOperation
- data StencilFaceState = StencilFaceState {}
- data StencilState = StencilState {
- front :: !StencilFaceState
- back :: !StencilFaceState
- readMask :: !Word8
- writeMask :: !Word8
- data DepthBiasState = DepthBiasState {}
- data DepthStencilState = DepthStencilState {}
- data MultisampleState = MultisampleState {}
- data BlendFactor
- data BlendOperation
- data BlendComponent = BlendComponent {}
- data BlendState = BlendState {}
- data ColorWriteMask = ColorWriteMask {}
- data ColorTargetState = ColorTargetState {}
- data FragmentState = FragmentState {}
- data RenderPipelineDescriptor = RenderPipelineDescriptor {}
- createPipelineLayout :: MonadIO m => Device -> PipelineLayoutDescriptor -> m PipelineLayout
- createRenderPipeline :: MonadIO m => Device -> RenderPipelineDescriptor -> m RenderPipeline
- colorWriteMaskAll :: ColorWriteMask
Types
newtype PipelineLayout Source #
Constructors
| PipelineLayout | |
Fields | |
Instances
| Eq PipelineLayout Source # | |
Defined in WGPU.Internal.Pipeline Methods (==) :: PipelineLayout -> PipelineLayout -> Bool # (/=) :: PipelineLayout -> PipelineLayout -> Bool # | |
| Show PipelineLayout Source # | |
Defined in WGPU.Internal.Pipeline Methods showsPrec :: Int -> PipelineLayout -> ShowS # show :: PipelineLayout -> String # showList :: [PipelineLayout] -> ShowS # | |
| ToRaw PipelineLayout WGPUPipelineLayout Source # | |
Defined in WGPU.Internal.Pipeline Methods raw :: PipelineLayout -> ContT r IO WGPUPipelineLayout Source # | |
data PipelineLayoutDescriptor Source #
Describes a pipeline layout.
Constructors
| PipelineLayoutDescriptor | |
Fields
| |
Instances
| Eq PipelineLayoutDescriptor Source # | |
Defined in WGPU.Internal.Pipeline Methods (==) :: PipelineLayoutDescriptor -> PipelineLayoutDescriptor -> Bool # (/=) :: PipelineLayoutDescriptor -> PipelineLayoutDescriptor -> Bool # | |
| Show PipelineLayoutDescriptor Source # | |
Defined in WGPU.Internal.Pipeline Methods showsPrec :: Int -> PipelineLayoutDescriptor -> ShowS # show :: PipelineLayoutDescriptor -> String # showList :: [PipelineLayoutDescriptor] -> ShowS # | |
| ToRaw PipelineLayoutDescriptor WGPUPipelineLayoutDescriptor Source # | |
Defined in WGPU.Internal.Pipeline Methods raw :: PipelineLayoutDescriptor -> ContT r IO WGPUPipelineLayoutDescriptor Source # | |
data VertexFormat Source #
Vertex format for a vertex attribute.
Constructors
Instances
| Eq VertexFormat Source # | |
Defined in WGPU.Internal.Pipeline | |
| Show VertexFormat Source # | |
Defined in WGPU.Internal.Pipeline Methods showsPrec :: Int -> VertexFormat -> ShowS # show :: VertexFormat -> String # showList :: [VertexFormat] -> ShowS # | |
| ToRaw VertexFormat WGPUVertexFormat Source # | Convert a |
Defined in WGPU.Internal.Pipeline Methods raw :: VertexFormat -> ContT r IO WGPUVertexFormat Source # | |
data VertexAttribute Source #
Vertex inputs (attributes) to shaders.
Constructors
| VertexAttribute | |
Fields
| |
Instances
| Eq VertexAttribute Source # | |
Defined in WGPU.Internal.Pipeline Methods (==) :: VertexAttribute -> VertexAttribute -> Bool # (/=) :: VertexAttribute -> VertexAttribute -> Bool # | |
| Show VertexAttribute Source # | |
Defined in WGPU.Internal.Pipeline Methods showsPrec :: Int -> VertexAttribute -> ShowS # show :: VertexAttribute -> String # showList :: [VertexAttribute] -> ShowS # | |
| ToRaw VertexAttribute WGPUVertexAttribute Source # | |
Defined in WGPU.Internal.Pipeline Methods raw :: VertexAttribute -> ContT r IO WGPUVertexAttribute Source # | |
data InputStepMode Source #
Determines when vertex data is advanced.
Constructors
| InputStepModeVertex | Input data is advanced every vertex. |
| InputStepModeInstance | Input data is advanced every instance. |
Instances
| Eq InputStepMode Source # | |
Defined in WGPU.Internal.Pipeline Methods (==) :: InputStepMode -> InputStepMode -> Bool # (/=) :: InputStepMode -> InputStepMode -> Bool # | |
| Show InputStepMode Source # | |
Defined in WGPU.Internal.Pipeline Methods showsPrec :: Int -> InputStepMode -> ShowS # show :: InputStepMode -> String # showList :: [InputStepMode] -> ShowS # | |
| ToRaw InputStepMode WGPUInputStepMode Source # | Convert an |
Defined in WGPU.Internal.Pipeline Methods raw :: InputStepMode -> ContT r IO WGPUInputStepMode Source # | |
data VertexBufferLayout Source #
Describes how a vertex buffer is interpreted.
Constructors
| VertexBufferLayout | |
Fields
| |
Instances
| Eq VertexBufferLayout Source # | |
Defined in WGPU.Internal.Pipeline Methods (==) :: VertexBufferLayout -> VertexBufferLayout -> Bool # (/=) :: VertexBufferLayout -> VertexBufferLayout -> Bool # | |
| Show VertexBufferLayout Source # | |
Defined in WGPU.Internal.Pipeline Methods showsPrec :: Int -> VertexBufferLayout -> ShowS # show :: VertexBufferLayout -> String # showList :: [VertexBufferLayout] -> ShowS # | |
| ToRaw VertexBufferLayout WGPUVertexBufferLayout Source # | |
Defined in WGPU.Internal.Pipeline Methods raw :: VertexBufferLayout -> ContT r IO WGPUVertexBufferLayout Source # | |
data VertexState Source #
Describes the vertex process in a render pipeline.
Constructors
| VertexState | |
Fields
| |
Instances
| Eq VertexState Source # | |
Defined in WGPU.Internal.Pipeline | |
| Show VertexState Source # | |
Defined in WGPU.Internal.Pipeline Methods showsPrec :: Int -> VertexState -> ShowS # show :: VertexState -> String # showList :: [VertexState] -> ShowS # | |
| ToRaw VertexState WGPUVertexState Source # | |
Defined in WGPU.Internal.Pipeline Methods raw :: VertexState -> ContT r IO WGPUVertexState Source # | |
data PrimitiveTopology Source #
Primitive type out of which an input mesh is composed.
Constructors
| PrimitiveTopologyPointList | |
| PrimitiveTopologyLineList | |
| PrimitiveTopologyLineStrip | |
| PrimitiveTopologyTriangleList | |
| PrimitiveTopologyTriangleStrip |
Instances
| Eq PrimitiveTopology Source # | |
Defined in WGPU.Internal.Pipeline Methods (==) :: PrimitiveTopology -> PrimitiveTopology -> Bool # (/=) :: PrimitiveTopology -> PrimitiveTopology -> Bool # | |
| Show PrimitiveTopology Source # | |
Defined in WGPU.Internal.Pipeline Methods showsPrec :: Int -> PrimitiveTopology -> ShowS # show :: PrimitiveTopology -> String # showList :: [PrimitiveTopology] -> ShowS # | |
| Default PrimitiveTopology Source # | |
Defined in WGPU.Internal.Pipeline Methods | |
| ToRaw PrimitiveTopology WGPUPrimitiveTopology Source # | Convert a |
Defined in WGPU.Internal.Pipeline Methods raw :: PrimitiveTopology -> ContT r IO WGPUPrimitiveTopology Source # | |
Winding order which classifies the "front" face.
Constructors
| FrontFaceCCW | Triangles with counter-clockwise vertices are the front face. |
| FrontFaceCW | Triangles with clockwise vertices are the front face. |
Whether to cull the face of a vertex.
Constructors
| CullModeFront | Cull the front face. |
| CullModeBack | Cull the back face. |
| CullModeNone | Do not cull either face. |
data PrimitiveState Source #
Describes the state of primitive assembly and rasterization in a render pipeline.
Differences between this and the Rust API:
- no clamp_depth member
- no polygon_mode member
- no conservative member
Constructors
| PrimitiveState | |
Fields
| |
Instances
| Eq PrimitiveState Source # | |
Defined in WGPU.Internal.Pipeline Methods (==) :: PrimitiveState -> PrimitiveState -> Bool # (/=) :: PrimitiveState -> PrimitiveState -> Bool # | |
| Show PrimitiveState Source # | |
Defined in WGPU.Internal.Pipeline Methods showsPrec :: Int -> PrimitiveState -> ShowS # show :: PrimitiveState -> String # showList :: [PrimitiveState] -> ShowS # | |
| Default PrimitiveState Source # | |
Defined in WGPU.Internal.Pipeline Methods def :: PrimitiveState # | |
| ToRaw PrimitiveState WGPUPrimitiveState Source # | |
Defined in WGPU.Internal.Pipeline Methods raw :: PrimitiveState -> ContT r IO WGPUPrimitiveState Source # | |
data StencilOperation Source #
Operation to perform on a stencil value.
Constructors
Instances
| Eq StencilOperation Source # | |
Defined in WGPU.Internal.Pipeline Methods (==) :: StencilOperation -> StencilOperation -> Bool # (/=) :: StencilOperation -> StencilOperation -> Bool # | |
| Show StencilOperation Source # | |
Defined in WGPU.Internal.Pipeline Methods showsPrec :: Int -> StencilOperation -> ShowS # show :: StencilOperation -> String # showList :: [StencilOperation] -> ShowS # | |
| ToRaw StencilOperation WGPUStencilOperation Source # | Convert a |
Defined in WGPU.Internal.Pipeline Methods raw :: StencilOperation -> ContT r IO WGPUStencilOperation Source # | |
data StencilFaceState Source #
Describes stencil state in a render pipeline.
Constructors
| StencilFaceState | |
Fields | |
Instances
| Eq StencilFaceState Source # | |
Defined in WGPU.Internal.Pipeline Methods (==) :: StencilFaceState -> StencilFaceState -> Bool # (/=) :: StencilFaceState -> StencilFaceState -> Bool # | |
| Show StencilFaceState Source # | |
Defined in WGPU.Internal.Pipeline Methods showsPrec :: Int -> StencilFaceState -> ShowS # show :: StencilFaceState -> String # showList :: [StencilFaceState] -> ShowS # | |
| ToRaw StencilFaceState WGPUStencilFaceState Source # | |
Defined in WGPU.Internal.Pipeline Methods raw :: StencilFaceState -> ContT r IO WGPUStencilFaceState Source # | |
data StencilState Source #
State of the stencil operation (fixed pipeline stage).
Constructors
| StencilState | |
Fields
| |
Instances
| Eq StencilState Source # | |
Defined in WGPU.Internal.Pipeline | |
| Show StencilState Source # | |
Defined in WGPU.Internal.Pipeline Methods showsPrec :: Int -> StencilState -> ShowS # show :: StencilState -> String # showList :: [StencilState] -> ShowS # | |
data DepthBiasState Source #
Describes the biasing setting for the depth target.
Constructors
| DepthBiasState | |
Instances
| Eq DepthBiasState Source # | |
Defined in WGPU.Internal.Pipeline Methods (==) :: DepthBiasState -> DepthBiasState -> Bool # (/=) :: DepthBiasState -> DepthBiasState -> Bool # | |
| Show DepthBiasState Source # | |
Defined in WGPU.Internal.Pipeline Methods showsPrec :: Int -> DepthBiasState -> ShowS # show :: DepthBiasState -> String # showList :: [DepthBiasState] -> ShowS # | |
data DepthStencilState Source #
Describes the depth / stencil state of a render pipeline.
Constructors
| DepthStencilState | |
Fields
| |
Instances
| Eq DepthStencilState Source # | |
Defined in WGPU.Internal.Pipeline Methods (==) :: DepthStencilState -> DepthStencilState -> Bool # (/=) :: DepthStencilState -> DepthStencilState -> Bool # | |
| Show DepthStencilState Source # | |
Defined in WGPU.Internal.Pipeline Methods showsPrec :: Int -> DepthStencilState -> ShowS # show :: DepthStencilState -> String # showList :: [DepthStencilState] -> ShowS # | |
| ToRaw DepthStencilState WGPUDepthStencilState Source # | |
Defined in WGPU.Internal.Pipeline Methods raw :: DepthStencilState -> ContT r IO WGPUDepthStencilState Source # | |
data MultisampleState Source #
Describes the multi-sampling state of a render pipeline.
Constructors
| MultisampleState | |
Fields
| |
Instances
| Eq MultisampleState Source # | |
Defined in WGPU.Internal.Pipeline Methods (==) :: MultisampleState -> MultisampleState -> Bool # (/=) :: MultisampleState -> MultisampleState -> Bool # | |
| Show MultisampleState Source # | |
Defined in WGPU.Internal.Pipeline Methods showsPrec :: Int -> MultisampleState -> ShowS # show :: MultisampleState -> String # showList :: [MultisampleState] -> ShowS # | |
| ToRaw MultisampleState WGPUMultisampleState Source # | |
Defined in WGPU.Internal.Pipeline Methods raw :: MultisampleState -> ContT r IO WGPUMultisampleState Source # | |
data BlendFactor Source #
Alpha blend factor.
Constructors
Instances
| Eq BlendFactor Source # | |
Defined in WGPU.Internal.Pipeline | |
| Show BlendFactor Source # | |
Defined in WGPU.Internal.Pipeline Methods showsPrec :: Int -> BlendFactor -> ShowS # show :: BlendFactor -> String # showList :: [BlendFactor] -> ShowS # | |
| ToRaw BlendFactor WGPUBlendFactor Source # | Convert a |
Defined in WGPU.Internal.Pipeline Methods raw :: BlendFactor -> ContT r IO WGPUBlendFactor Source # | |
data BlendOperation Source #
Alpha blending operation.
Constructors
| BlendOperationAdd | |
| BlendOperationSubtract | |
| BlendOperationReverseSubtract | |
| BlendOperationMin | |
| BlendOperationMax |
Instances
| Eq BlendOperation Source # | |
Defined in WGPU.Internal.Pipeline Methods (==) :: BlendOperation -> BlendOperation -> Bool # (/=) :: BlendOperation -> BlendOperation -> Bool # | |
| Show BlendOperation Source # | |
Defined in WGPU.Internal.Pipeline Methods showsPrec :: Int -> BlendOperation -> ShowS # show :: BlendOperation -> String # showList :: [BlendOperation] -> ShowS # | |
| ToRaw BlendOperation WGPUBlendOperation Source # | Convert a |
Defined in WGPU.Internal.Pipeline Methods raw :: BlendOperation -> ContT r IO WGPUBlendOperation Source # | |
data BlendComponent Source #
Describes the blend component of a pipeline.
Constructors
| BlendComponent | |
Fields
| |
Instances
| Eq BlendComponent Source # | |
Defined in WGPU.Internal.Pipeline Methods (==) :: BlendComponent -> BlendComponent -> Bool # (/=) :: BlendComponent -> BlendComponent -> Bool # | |
| Show BlendComponent Source # | |
Defined in WGPU.Internal.Pipeline Methods showsPrec :: Int -> BlendComponent -> ShowS # show :: BlendComponent -> String # showList :: [BlendComponent] -> ShowS # | |
| Default BlendComponent Source # | |
Defined in WGPU.Internal.Pipeline Methods def :: BlendComponent # | |
| ToRaw BlendComponent WGPUBlendComponent Source # | |
Defined in WGPU.Internal.Pipeline Methods raw :: BlendComponent -> ContT r IO WGPUBlendComponent Source # | |
data BlendState Source #
Describes the blend state of a render pipeline.
Constructors
| BlendState | |
Fields
| |
Instances
| Eq BlendState Source # | |
Defined in WGPU.Internal.Pipeline | |
| Show BlendState Source # | |
Defined in WGPU.Internal.Pipeline Methods showsPrec :: Int -> BlendState -> ShowS # show :: BlendState -> String # showList :: [BlendState] -> ShowS # | |
| ToRaw BlendState WGPUBlendState Source # | |
Defined in WGPU.Internal.Pipeline Methods raw :: BlendState -> ContT r IO WGPUBlendState Source # | |
data ColorWriteMask Source #
Describes which color channels are written.
Constructors
| ColorWriteMask | |
Instances
| Eq ColorWriteMask Source # | |
Defined in WGPU.Internal.Pipeline Methods (==) :: ColorWriteMask -> ColorWriteMask -> Bool # (/=) :: ColorWriteMask -> ColorWriteMask -> Bool # | |
| Show ColorWriteMask Source # | |
Defined in WGPU.Internal.Pipeline Methods showsPrec :: Int -> ColorWriteMask -> ShowS # show :: ColorWriteMask -> String # showList :: [ColorWriteMask] -> ShowS # | |
| ToRaw ColorWriteMask WGPUColorWriteMask Source # | |
Defined in WGPU.Internal.Pipeline Methods raw :: ColorWriteMask -> ContT r IO WGPUColorWriteMask Source # | |
data ColorTargetState Source #
Describes the color state of a render pipeline.
Constructors
| ColorTargetState | |
Fields
| |
Instances
| Eq ColorTargetState Source # | |
Defined in WGPU.Internal.Pipeline Methods (==) :: ColorTargetState -> ColorTargetState -> Bool # (/=) :: ColorTargetState -> ColorTargetState -> Bool # | |
| Show ColorTargetState Source # | |
Defined in WGPU.Internal.Pipeline Methods showsPrec :: Int -> ColorTargetState -> ShowS # show :: ColorTargetState -> String # showList :: [ColorTargetState] -> ShowS # | |
| ToRaw ColorTargetState WGPUColorTargetState Source # | |
Defined in WGPU.Internal.Pipeline Methods raw :: ColorTargetState -> ContT r IO WGPUColorTargetState Source # | |
data FragmentState Source #
Describes the fragment processing in a render pipeline.
Constructors
| FragmentState | |
Fields
| |
Instances
| Eq FragmentState Source # | |
Defined in WGPU.Internal.Pipeline Methods (==) :: FragmentState -> FragmentState -> Bool # (/=) :: FragmentState -> FragmentState -> Bool # | |
| Show FragmentState Source # | |
Defined in WGPU.Internal.Pipeline Methods showsPrec :: Int -> FragmentState -> ShowS # show :: FragmentState -> String # showList :: [FragmentState] -> ShowS # | |
| ToRaw FragmentState WGPUFragmentState Source # | |
Defined in WGPU.Internal.Pipeline Methods raw :: FragmentState -> ContT r IO WGPUFragmentState Source # | |
data RenderPipelineDescriptor Source #
Describes a render (graphics) pipeline.
Constructors
| RenderPipelineDescriptor | |
Fields
| |
Instances
| Eq RenderPipelineDescriptor Source # | |
Defined in WGPU.Internal.Pipeline Methods (==) :: RenderPipelineDescriptor -> RenderPipelineDescriptor -> Bool # (/=) :: RenderPipelineDescriptor -> RenderPipelineDescriptor -> Bool # | |
| Show RenderPipelineDescriptor Source # | |
Defined in WGPU.Internal.Pipeline Methods showsPrec :: Int -> RenderPipelineDescriptor -> ShowS # show :: RenderPipelineDescriptor -> String # showList :: [RenderPipelineDescriptor] -> ShowS # | |
| ToRaw RenderPipelineDescriptor WGPURenderPipelineDescriptor Source # | |
Defined in WGPU.Internal.Pipeline Methods raw :: RenderPipelineDescriptor -> ContT r IO WGPURenderPipelineDescriptor Source # | |
Functions
Arguments
| :: MonadIO m | |
| => Device | The device for which the pipeline layout will be created. |
| -> PipelineLayoutDescriptor | Descriptor of the pipeline. |
| -> m PipelineLayout |
Create a pipeline layout.
createRenderPipeline :: MonadIO m => Device -> RenderPipelineDescriptor -> m RenderPipeline Source #
colorWriteMaskAll :: ColorWriteMask Source #
A ColorWriteMask that writes all colors and the alpha value.