wgpu-hs-0.1.0.0: WGPU
Safe HaskellNone
LanguageHaskell2010

WGPU.Internal.Surface

Description

Device-specific surfaces.

Synopsis

Types

data Surface Source #

Handle to a presentable surface.

A Surface presents a platform-specific surface (eg. a window) on to which rendered images may be presented. A Surface can be created for a GLFW window using createGLFWSurface.

Constructors

Surface 

Instances

Instances details
Eq Surface Source # 
Instance details

Defined in WGPU.Internal.Surface

Methods

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

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

Show Surface Source # 
Instance details

Defined in WGPU.Internal.Surface

ToRaw Surface WGPUSurface Source # 
Instance details

Defined in WGPU.Internal.Surface

Functions

createGLFWSurface Source #

Arguments

:: Instance

API instance.

-> Window

GLFW window for which the surface will be created.

-> IO Surface

IO action to create the surface.

Create a WGPU Surface for a GLFW Window.

This function is not part of the wgpu-native API, but is part of the Haskell API until the native WGPU API has a better story around windowing.