Crate gfx_phase [] [src]

High-level rendering concepts for Gfx. Allow user code to work with materials, entities, and techniques, instead of batches.

Modules

sort

A container for the standard sorting methods.

Structs

Object

A rendering object, encapsulating the batch and additional info needed for sorting. It is only exposed for this matter and accessed by immutable references by the user.

Phase

Phase is doing batch construction, accumulation, and memorization, based on a given technique.

Traits

AbstractPhase

An abstract rendering phase.

Material

Abstract material.

Technique

Technique is basically a Fn(Entity) -> Option<TechResult>. It processes a material, checks for the compatibility, adds a mesh to produce a shader program with associated data (state, parameters).

ToDepth

View information that can be transformed into depth.

Type Definitions

CachedPhase

A render phase that caches created render objects.

FlushError

Potential error occuring during rendering.

OrderFun

Ordering function.

TechResult

Resulting type of the technique compilation.