Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Texture

Index

Constructors

constructor

Properties

Private _bytesPerRow

_bytesPerRow: number = 0

Private _data

_data: ArrayBufferView = null

Private _depth

_depth: number = 0

Private _format

_format: TEXTURE_FORMAT = TEXTURE_FORMAT.NONE

Private _height

_height: number = 0

Private _isRenderable

_isRenderable: boolean = false

Private _name

_name: string = null

Private _resource

_resource: GPUTexture = null

Private _resourceView

_resourceView: GPUTextureView = null

Private _width

_width: number = 0

Methods

create

  • create(renderer: Renderer, descriptor: GPUTextureDescriptor): void
  • Create the GPU resource of the sampler

    Parameters

    • renderer: Renderer

      Renderer instance

    • descriptor: GPUTextureDescriptor

      The descriptor used to create the texture

    Returns void

destroy

  • destroy(): void

getBytesPerRow

getData

  • getData(): ArrayBufferView

getDepth

  • getDepth(): number

getFormat

getHeight

  • getHeight(): number

getName

  • getName(): string

getResource

  • getResource(): GPUTexture

getResourceView

  • getResourceView(): GPUTextureView

getWidth

  • getWidth(): number

isRenderable

  • isRenderable(): boolean

setName

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

    Parameters

    • value: string

      The new texture name

    Returns void

Generated using TypeDoc