Skip to content

Commit

Permalink
Test shader_canvas.ts documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoDaniel committed Feb 18, 2021
1 parent a949046 commit ce09556
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions core/shader_canvas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,16 @@ const dependsOn = [
NewModules,
];

/**
* Class for the `<shader-canvas>` tags.
* @extends ./new_modules/create_part.ts:CanHaveParts
*/
export class ShaderCanvas extends CanHaveParts {
/** To something */

/** ShaderCanvas class is used to define a custom element with the
* "shader-canvas" name.
*/
static tag = "shader-canvas";
static createProgram(render: InitializerFunction): ShaderProgram {
return (new (class implements ShaderProgram {
Expand Down

0 comments on commit ce09556

Please sign in to comment.