wgpu-hs-0.4.0.0: WGPU
Safe HaskellNone
LanguageHaskell2010

WGPU.Internal.Multipurpose

Contents

Description

This is a bit like a Types module. It exists to collect things which are somewhat generic and are used in more than one part of the API.

Synopsis

Types

data Texture Source #

Handle to a texture.

Constructors

Texture 

Instances

Instances details
Eq Texture Source # 
Instance details

Defined in WGPU.Internal.Multipurpose

Methods

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

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

Show Texture Source # 
Instance details

Defined in WGPU.Internal.Multipurpose

ToRaw Texture WGPUTexture Source # 
Instance details

Defined in WGPU.Internal.Multipurpose

data Origin3D Source #

Origin of a copy to/from a texture.

Constructors

Origin3D 

Fields

Instances

Instances details
Eq Origin3D Source # 
Instance details

Defined in WGPU.Internal.Multipurpose

Show Origin3D Source # 
Instance details

Defined in WGPU.Internal.Multipurpose

ToRaw Origin3D WGPUOrigin3D Source # 
Instance details

Defined in WGPU.Internal.Multipurpose

data Extent3D Source #

Extent of a texture or texture-related operation.

Instances

Instances details
Eq Extent3D Source # 
Instance details

Defined in WGPU.Internal.Multipurpose

Show Extent3D Source # 
Instance details

Defined in WGPU.Internal.Multipurpose

ToRaw Extent3D WGPUExtent3D Source # 
Instance details

Defined in WGPU.Internal.Multipurpose

data ImageCopyTexture Source #

View of a texture which can be used to copy tofrom a buffertexture.

data TextureDataLayout Source #

Layout of a texture in a buffer's memory.

Constructors

TextureDataLayout 

Fields

  • textureOffset :: !Word64

    Offset into the buffer that is the start of the texture. Must be a multiple of texture block size. For non-compressed textures, this is 1.

  • bytesPerRow :: !Word32

    Bytes per "row" in an image.

  • rowsPerImage :: !Word32

    Rows that make up a single image. Used if there are multiple images.

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.Multipurpose

Show IndexFormat Source # 
Instance details

Defined in WGPU.Internal.Multipurpose

ToRaw IndexFormat WGPUIndexFormat Source #

Convert an IndexFormat to its raw value.

Instance details

Defined in WGPU.Internal.Multipurpose