[][src]Crate gpu

GPU

An ergonomic GPU API.

Examples

Better examples will be provided in the future. For now, please check the tests.

Modules

backend

A module with all supported backends.

Structs

BackendContext

GPU Context representation.

Buffer

A Buffer representation.

ClearProgram

A program that clears colors, depth and stencil of a framebuffer.

ContextBuilder

A builder for Context.

FragmentShader

A fragment shader representation.

Framebuffer

A Framebuffer representation with optional color, depth and stencil attachments.

Program

A structure representing a GPU program.

RasterProgram

A program for rasterizing VertexArrayObjects in a target Framebuffer.

Renderbuffer

Renderbuffer representation.

Sampler

A Sampler is responsible for sampling values from a texture. It supports filtering and coordinates wrapping.

Shader

A shader representation.

Texture

A Texture representation.

Texture2D

A Texture2D representation.

Texture3D

A Texture3D representation.

TextureFormat

Texture format representation with color format and component format.

VertexArrayObject

VertexArrayObject representation.

VertexShader

A vertex shader representation.

Enums

ColorFormat

Kinds of ColorFormats.

ContextDisplay

Kinds of Context's displays.

ContextError

Error that can happen when manipulating an OpenGL context.

RasterGeometry

Kinds of raster geometries.

Type

Types used by the GPU.

Traits

HasContext

A trait defining the GPUContext interface.

Type Definitions

Context

The Context object.