Skip to main content

Module traits

Module traits 

Source
Expand description

Defines the core architectural traits for the rendering subsystem.

This module contains the fundamental contracts that decouple the engine’s rendering logic from any specific graphics backend.

  • GraphicsDevice: The main interface for creating and managing GPU resources.
  • [CommandRecorder]: An interface for recording GPU commands.
  • RenderSystem: A high-level trait representing the entire rendering pipeline.
  • GraphicsBackendSelector: A trait for selecting the appropriate graphics backend.
  • GpuProfiler: An interface for performance profiling on the GPU.

Structs§

FrameTargets
Targets acquired by RenderSystem::begin_frame for the current frame.

Traits§

CommandEncoder
A trait for an object that records a sequence of GPU commands.
ComputePass
A trait representing an active compute pass, used for recording dispatch commands.
GpuProfiler
A trait for GPU performance profilers that use timestamp queries.
GraphicsBackendSelector
A trait for a system that discovers and selects a suitable graphics backend.
GraphicsDevice
Defines the abstract interface for a graphics device.
PipelineSystem
Backend that compiles shaders and builds/caches bind-group layouts and render pipelines on demand. See the module docs.
RenderPass
A trait representing an active render pass, used for recording drawing commands.
RenderSystem
A high-level trait representing the entire rendering subsystem.