Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Texture

GFX texture.

Hierarchy

Index

Constructors

constructor

Properties

Protected _buffer

_buffer: ArrayBuffer | null = null

Protected _depth

_depth: number = 1

Protected _device

_device: Device

Protected _flags

_flags: TextureFlags = TextureFlagBit.NONE

Protected _format

_format: Format = Format.UNKNOWN

Protected _gfxType

_gfxType: ObjectType = ObjectType.UNKNOWN

Protected _height

_height: number = 0

Protected _isPowerOf2

_isPowerOf2: boolean = false

Protected _layerCount

_layerCount: number = 1

Protected _levelCount

_levelCount: number = 1

Protected _samples

_samples: SampleCount = SampleCount.X1

Protected _size

_size: number = 0

Protected _type

_type: TextureType = TextureType.TEX2D

Protected _usage

_usage: TextureUsage = TextureUsageBit.NONE

Protected _width

_width: number = 0

Accessors

buffer

  • get buffer(): ArrayBuffer | null

depth

  • get depth(): number

flags

format

gfxType

height

  • get height(): number

layerCount

  • get layerCount(): number

levelCount

  • get levelCount(): number

samples

size

  • get size(): number

type

usage

width

  • get width(): number

Methods

Abstract destroy

  • destroy(): void

Abstract initialize

Abstract resize

  • resize(width: number, height: number): void

Generated using TypeDoc