Crate willow

Source
Expand description

GitHub actions crates.io crates.io docs.rs GitHub GitHub

Willow is a library for using the WebGL API in WebAssembly projects. It generates type-safe wrappers for WebAssembly programs using a macro syntax.

Re-exports§

Macros§

  • This macro allows efficient batch creation of programs by compiling and linking in parallel.

Structs§

  • In a Program-deriving struct, a field of type Attribute<T> indicates that the vertex shader has an attribute with the type compatible with T.
  • Wraps a WebGL buffer.
  • A wrapper for a WebGL rendering context.
  • The Error type, a wrapper around a dynamic error type.
  • Stores the indices of a buffer.
  • An internal type used to hold program-specific resources. There must be exactly one field in a Program-deriving struct holding ProgramData as the value.
  • In a Program-deriving struct, a field of type Uniform<T> indicates that the vertex shader has a uniform with the type compatible with T.

Enums§

Traits§

  • The trait implemented by attribute structs.
  • Types that can be used as an attribute argument type.
  • Represents WebGL programs.
  • Types that can be used as a uniform argument type.

Type Aliases§

Derive Macros§

  • Derives a user-friendly wrapper for WebGlProgram from a struct.