Module common

Source
Expand description

Common utilities used throughout the crate.

Structs§

PerMaterialArchetypeInterface
Interface which has all per-material-archetype data: the object output buffer and the gpu material buffer.
PerObjectDataAbi
The input structure that the culling shaders/functions output and drawing shaders read.
Samplers
Container holding a variety of samplers.
WholeFrameInterfaces
Interfaces which are used throughout the whole frame.

Enums§

Sorting
An object sorting order.

Statics§

CPU_VERTEX_BUFFERS
Vertex buffer layouts used when CpuDriven.
GPU_VERTEX_BUFFERS
Vertex buffer layouts used when GpuDriven.

Functions§

profile_safe_shader
When CpuDriven, creates a checked wgsl shader, when CpuDriven creates a passthrough SPIRV shader.
sort_objects
Takes a set of objects and possibly sorts them if a sorting is provided.