[][src]Crate gfx_hal

Low-level graphics abstraction for Rust. Mostly operates on data, not types. Designed for use by libraries and higher-level abstractions only.

Modules

adapter

Physical devices and adapters.

buffer

Memory buffers.

command

Command buffers.

device

Logical device

format

Universal format specification. Applicable to textures, views, and vertex buffers.

image

Image related structures.

memory

Types to describe the properties of memory allocated for gfx resources.

pass

RenderPass handling.

pool

Command pools

prelude

Prelude module re-exports all the traits necessary to use gfx-hal.

pso

Raw Pipeline State Objects

query

Queries are commands that can be submitted to a command buffer to record statistics or other useful values as the command buffer is running. They are often intended for profiling or other introspection, providing a mechanism for the command buffer to record data about its operation as it is running.

queue

Command queues.

range

Generic range type abstraction that allows ranges to be handled a little more generically.

window

Windowing system interoperability

Macros

spec_const_list

Macro for specifying list of specialization constatns for EntryPoint.

Structs

Features

Features that the device supports. These only include features of the core interface and not API extensions.

Limits

Resource limits of a particular graphics device.

MemoryTypeId

A strongly-typed index to a particular MemoryType.

UnsupportedBackend

Error creating an instance of a backend on the platform that doesn't support this backend.

Enums

IndexType

An enum describing the type of an index value in a slice's index buffer

Traits

Backend

The Backend trait wraps together all the types needed for a graphics backend. Each backend module, such as OpenGL or Metal, will implement this trait with its own concrete types.

Instance

An instantiated backend.

Type Definitions

DrawCount

Indirect draw calls count.

IndexCount

Draw number of indices.

InstanceCount

Draw number of instances.

VertexCount

Draw vertex count.

VertexOffset

Draw vertex base offset.

WorkGroupCount

Number of work groups.