Crate adi_gpu

Source
Expand description

Interface with the GPU to render graphics or do fast calculations.

Modules§

afi
Aldaron’s Format Interface

Macros§

dmat2
Double-precision 2x2 matrix macro constructor.
dmat3
Double-precision 3x3 matrix macro constructor.
dmat4
Double-precision 4x4 matrix macro constructor.
dquat
Double-precision quaternion macro constructor.
dvec2
Double-precision 2D vector macro constructor.
dvec3
Double-precision 3D vector macro constructor.
dvec4
Double-precision 4D vector macro constructor.
mat2
Single-precision 2x2 matrix macro constructor.
mat3
Single-precision 3x3 matrix macro constructor.
mat4
Single-precision 4x4 matrix macro constructor.
quat
Single-precision quaternion macro constructor.
vec2
Single-precision 2D vector macro constructor.
vec3
Single-precision 3D vector macro constructor.
vec4
Single-precision 4D vector macro constructor.

Structs§

DMat2
Double-precision 2x2 column major matrix.
DMat3
Double-precision 2x2 column major matrix.
DMat4
Double-precision 2x2 column major matrix.
DQuat
Double-precision quaternion.
DTrs
Double-precision translation + rotation + non-uniform scale transform.
DVec2
Double-precision 2D vector.
DVec3
Double-precision 3D vector.
DVec4
Double-precision 4D vector.
Gradient
A list of colors to be paired with vertices.
Mat2
Single-precision 2x2 column major matrix.
Mat3
Single-precision 2x2 column major matrix.
Mat4
Single-precision 2x2 column major matrix.
Model
A list of vertices that make a shape.
Quat
Single-precision quaternion.
Shape
A renderable object that exists on the Display.
TexCoords
A list of texture coordinates to be paired with vertices.
Texture
A Texture
Transform
A transformation matrix.
Trs
Single-precision translation + rotation + non-uniform scale transform.
VFrame
A Video Frame (1/24 of a second)
Vec2
Single-precision 2D vector.
Vec3
Single-precision 3D vector.
Vec4
Single-precision 4D vector.
Window
A graphics window on a computer, linked to a rendering API.

Enums§

Input
Input to the window, that’s put into the input queue, when an event has occurred.
ShapeHandle
Handle for shape.
WindowConnection
Connection is listed first, then window.

Constants§

PI
Archimedes’ constant (π)

Traits§

Display
A trait for a Display
Point

Functions§

get_shape
Get the index of a shape
new_display
Create a new Vulkan / OpenGL Display.
new_shape
Create a new shape
projection
Generate a projection matrix.
zsort
Sort by distance. nr => true if Near Sort, nr => false if Far Sort