Expand description
Re-exports§
pub use anyhow;
Macros§
- create_
programs - This macro allows efficient batch creation of programs by compiling and linking in parallel.
Structs§
- Attribute
- In a
Program-deriving struct, a field of typeAttribute<T>indicates that the vertex shader has an attribute with the type compatible withT. - Buffer
- Wraps a WebGL buffer.
- Context
- A wrapper for a WebGL rendering context.
- Error
- The
Errortype, a wrapper around a dynamic error type. - Indices
- Stores the indices of a buffer.
- Program
Data - An internal type used to hold program-specific resources.
There must be exactly one field in a
Program-deriving struct holdingProgramDataas the value. - Uniform
- In a
Program-deriving struct, a field of typeUniform<T>indicates that the vertex shader has a uniform with the type compatible withT.
Enums§
- Buffer
Data Usage - The
usageparameter passed tobufferData. - Render
Primitive Type - The type of rendering primitive.
Traits§
- Attr
Struct - The trait implemented by attribute structs.
- Attribute
Type - Types that can be used as an attribute argument type.
- Program
- Represents WebGL programs.
- Uniform
Type - Types that can be used as a uniform argument type.
Type Aliases§
- Result
Result<T, Error>
Derive Macros§
- Program
- Derives a user-friendly wrapper for
WebGlProgramfrom a struct.