Module managers

Source
Expand description

Managers for various type of resources.

Structs§

CameraManager
Manages the camera’s location and projection settings.
DirectionalLightManager
Manages directional lights and their associated shadow maps.
GpuCullingInput
Cpu side input to gpu-based culling
GpuVertexRanges
The skeleton and mes vertex ranges, in a format that’s suitable to be sent to the GPU.
InternalDirectionalLight
Internal representation of a directional light.
InternalMaterial
Internal representation of a material.
InternalMesh
Internal representation of a mesh.
InternalObject
Internal representation of a Object.
InternalSkeleton
Internal representation of a Skeleton
InternalTexture
Internal representation of a Texture.
MaterialKeyPair
Key which determine’s an object’s archetype.
MaterialManager
Manages materials and their associated BindGroups in CPU modes.
MeshBuffers
Set of megabuffers used by the mesh manager.
MeshManager
Manages vertex and instance buffers. All buffers are sub-allocated from megabuffers.
ObjectManager
Manages objects. That’s it. ¯\_(ツ)_/¯
ShadowCoordinates
The location of a shadow map in the shadow atlas.
SkeletonManager
Manages skeletons.
TextureManager
Manages textures and associated bindless bind groups
TextureManagerReadyOutput
Output of readying up a TextureManager.

Constants§

INDEX_SIZE
Size of a single index.
MAX_TEXTURE_COUNT
Largest amount of supported textures per type
STARTING_2D_TEXTURES
When using the GpuDriven profile, we start the 2D texture manager with a bind group with this many textures.
STARTING_CUBE_TEXTURES
When using the GpuDriven profile, we start the Cubemap texture manager with a bind group with this many textures.
STARTING_INDICES
Pre-allocated index count in the index megabuffer.
STARTING_VERTICES
Pre-allocated vertex count in the vertex megabuffers.
VERTEX_COLOR_SIZE
Size of a single vertex color.
VERTEX_COLOR_SLOT
Vertex buffer slot for colors
VERTEX_JOINT_INDEX_SIZE
Size of a joint index vector
VERTEX_JOINT_INDEX_SLOT
Vertex buffer slot for joint indices
VERTEX_JOINT_WEIGHT_SIZE
Size of a joint weight vector
VERTEX_JOINT_WEIGHT_SLOT
Vertex buffer slot for joint weights
VERTEX_NORMAL_SIZE
Size of a single vertex normal.
VERTEX_NORMAL_SLOT
Vertex buffer slot for normals
VERTEX_OBJECT_INDEX_SLOT
Vertex buffer slot for object indices Note that this slot is only used in the GpuDriven profile.
VERTEX_POSITION_SIZE
Size of a single vertex position.
VERTEX_POSITION_SLOT
Vertex buffer slot for positions
VERTEX_TANGENT_SIZE
Size of a single vertex tangent.
VERTEX_TANGENT_SLOT
Vertex buffer slot for tangents
VERTEX_UV0_SLOT
Vertex buffer slot for uv0
VERTEX_UV1_SLOT
Vertex buffer slot for uv1
VERTEX_UV_SIZE
Size of a single vertex texture coordinate.