[−][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:
- Create it.
- Create a render-pass.
- Create a data-buffer.
- Start a frame.
- Draw using a pass.
- 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. |