wgpu-hs-0.1.0.0: WGPU
Safe HaskellNone
LanguageHaskell2010

WGPU.Internal.Pipeline

Description

 
Synopsis

Types

data VertexAttribute Source #

Vertex inputs (attributes) to shaders.

Constructors

VertexAttribute 

Fields

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

Instances details
Eq InputStepMode Source # 
Instance details

Defined in WGPU.Internal.Pipeline

Show InputStepMode Source # 
Instance details

Defined in WGPU.Internal.Pipeline

ToRaw InputStepMode WGPUInputStepMode Source #

Convert an InputStepMode to its raw value.

Instance details

Defined in WGPU.Internal.Pipeline

data VertexBufferLayout Source #

Describes how a vertex buffer is interpreted.

Constructors

VertexBufferLayout 

Fields

data VertexState Source #

Describes the vertex process in a render pipeline.

Constructors

VertexState 

Fields

Instances

Instances details
Eq VertexState Source # 
Instance details

Defined in WGPU.Internal.Pipeline

Show VertexState Source # 
Instance details

Defined in WGPU.Internal.Pipeline

ToRaw VertexState WGPUVertexState Source # 
Instance details

Defined in WGPU.Internal.Pipeline

data IndexFormat Source #

Format of indices used within a pipeline.

Constructors

IndexFormatUint16

Indices are 16-bit unsigned integers (Word16)

IndexFormatUint32

Indices are 32-bit unsigned integers (Word32)

Instances

Instances details
Eq IndexFormat Source # 
Instance details

Defined in WGPU.Internal.Pipeline

Show IndexFormat Source # 
Instance details

Defined in WGPU.Internal.Pipeline

ToRaw IndexFormat WGPUIndexFormat Source #

Convert an IndexFormat to its raw value.

Instance details

Defined in WGPU.Internal.Pipeline

data FrontFace 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.

Instances

Instances details
Eq FrontFace Source # 
Instance details

Defined in WGPU.Internal.Pipeline

Show FrontFace Source # 
Instance details

Defined in WGPU.Internal.Pipeline

Default FrontFace Source # 
Instance details

Defined in WGPU.Internal.Pipeline

Methods

def :: FrontFace #

ToRaw FrontFace WGPUFrontFace Source #

Convert a FrontFace to its raw value.

Instance details

Defined in WGPU.Internal.Pipeline

data CullMode Source #

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.

Instances

Instances details
Eq CullMode Source # 
Instance details

Defined in WGPU.Internal.Pipeline

Show CullMode Source # 
Instance details

Defined in WGPU.Internal.Pipeline

Default CullMode Source # 
Instance details

Defined in WGPU.Internal.Pipeline

Methods

def :: CullMode #

ToRaw CullMode WGPUCullMode Source #

Convert a CullMode to its raw value.

Instance details

Defined in WGPU.Internal.Pipeline

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

data StencilState Source #

State of the stencil operation (fixed pipeline stage).

Constructors

StencilState 

Fields

Instances

Instances details
Eq StencilState Source # 
Instance details

Defined in WGPU.Internal.Pipeline

Show StencilState Source # 
Instance details

Defined in WGPU.Internal.Pipeline

data DepthBiasState Source #

Describes the biasing setting for the depth target.

Constructors

DepthBiasState 

Fields

data DepthStencilState Source #

Describes the depth / stencil state of a render pipeline.

Constructors

DepthStencilState 

Fields

data MultisampleState Source #

Describes the multi-sampling state of a render pipeline.

Constructors

MultisampleState 

Fields

  • count :: Word32

    Number of samples calculated per pixel (for MSAA). For non-multisampled textures, this should be 1.

  • mask :: Word32

    Bitmask that restricts the samples of a pixel modified by this pipeline. All samples can be enabled by using 0XFFFFFFFF (ie. zero complement).

  • alphaToCoverageEnabled :: Bool

    When enabled, produces another sample mask per pixel based on the alpha output value, and that is AND-ed with the sample mask and the primitive coverage to restrict the set of samples affected by a primitive.

data BlendComponent Source #

Describes the blend component of a pipeline.

Constructors

BlendComponent 

Fields

data BlendState Source #

Describes the blend state of a render pipeline.

Constructors

BlendState 

Fields

Instances

Instances details
Eq BlendState Source # 
Instance details

Defined in WGPU.Internal.Pipeline

Show BlendState Source # 
Instance details

Defined in WGPU.Internal.Pipeline

ToRaw BlendState WGPUBlendState Source # 
Instance details

Defined in WGPU.Internal.Pipeline

data ColorWriteMask Source #

Describes which color channels are written.

Constructors

ColorWriteMask 

Fields

data ColorTargetState Source #

Describes the color state of a render pipeline.

Constructors

ColorTargetState 

Fields

data FragmentState Source #

Describes the fragment processing in a render pipeline.

Constructors

FragmentState 

Fields

data RenderPipelineDescriptor Source #

Describes a render (graphics) pipeline.

Constructors

RenderPipelineDescriptor 

Fields

Functions

createPipelineLayout Source #

Arguments

:: Device

The device for which the pipeline layout will be created.

-> PipelineLayoutDescriptor

Descriptor of the pipeline.

-> IO PipelineLayout 

Create a pipeline layout.

colorWriteMaskAll :: ColorWriteMask Source #

A ColorWriteMask that writes all colors and the alpha value.