Crate willow[][src]

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.

Macros

create_programs

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

Structs

Attribute
Buffer
Context

A wrapper for a WebGL rendering context.

ProgramData

An internal type used to hold program-specific resources.

Uniform

Enums

BufferDataUsage

The usage parameter passed to bufferData.

RenderPrimitiveType

The type of rendering primitive.

Traits

AttrStruct

The trait implemented by attribute structs

AttributeType

Types that can be used as an attribute argument type.

Program

Represents WebGL programs.

UniformType

Types that can be used as a uniform argument type.

Derive Macros

Program

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