[][src]Module gaclen::graphics::device

The device uses GPU to execute rendering and computing commands.

In order to get an image using a Device one needs to:

  1. Create it.
  2. Create a render-pass.
  3. Create a data-buffer.
  4. Start a frame.
  5. Draw using a pass.
  6. Finish the frame.

Note that during the middle of the frame the device switches to DrawingDevice struct, which represents 'middle of frame' state.

Structs

Device

A device responsible for hardware-accelerated computations.

DrawingDevice

A device that is in the middle of drawing a frame.

Enums

DeviceCreationError

Error during device creation.

FrameFinishError

Error finishing the frame.

PresentMode

The way presenting a swapchain is accomplished.