Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Shader

Hierarchy

Index

Constructors

constructor

  • new Shader(gl: WebGLRenderingContext, type: number, sourceCode?: string): Shader

Properties

destroyed

destroyed: boolean = false

gl

gl: WebGLRenderingContext

index

index: number

resourceReference

resourceReference: WebGLShader

Optional sourceCode

sourceCode: string

type

type: number

validPromise

validPromise: Promise<GLResource<WebGLShader>>

Accessors

metadata

  • get metadata(): object

valid

  • get valid(): boolean
  • set valid(val: boolean): void

Methods

destroy

  • destroy(): void

setMetadata

  • setMetadata(key: string, value: any): void

update

  • update(source: string): void

Generated using TypeDoc