Skip to content

Commit

Permalink
docs(renderer): add some documentation about the renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
ruggero-visintin committed Dec 4, 2023
1 parent 3063960 commit 7a7f77b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/renderer/Renderer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
import { RenderCommand } from './RenderCommand';

/**
* The renderer is responsible for collecting renderCommands and
* execute them in the right order based on the information they carry on.
*
* Furthermore it also abstracts away the complexity of how the gfx device work under the hood
* from the renderSystem
*/
export class Renderer {
private _commandBuffer: RenderCommand[] = [];

Expand Down

0 comments on commit 7a7f77b

Please sign in to comment.