Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Shader

Index

Constructors

constructor

Properties

Private _code

_code: ShaderCodeType = null

Private _name

_name: string = null

Private _resource

_resource: GPUShaderModule = null

Private _stage

_stage: SHADER_STAGE = SHADER_STAGE.NONE

Methods

create

  • create(renderer: Renderer, descriptor: GPUShaderModuleDescriptor): void
  • Create the GPU resource of the shader

    Parameters

    • renderer: Renderer

      Renderer instance

    • descriptor: GPUShaderModuleDescriptor

      The descriptor used to create the shader

    Returns void

destroy

  • destroy(): void

getCode

getName

  • getName(): string

getResource

  • getResource(): GPUShaderModule

getStage

setName

  • setName(value: string): void
  • Update the shader name

    Parameters

    • value: string

      The new shader name

    Returns void

Generated using TypeDoc