Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GFXTexture

GFX 纹理。

Hierarchy

Index

Constructors

constructor

Properties

Protected _arrayLayer

_arrayLayer: number = 1

Protected _buffer

_buffer: ArrayBuffer | null = null

Protected _depth

_depth: number = 1

Protected _device

_device: GFXDevice

Protected _flags

_flags: GFXTextureFlags = GFXTextureFlagBit.NONE

Protected _format

_format: GFXFormat = GFXFormat.UNKNOWN

Protected _gfxType

_gfxType: GFXObjectType = GFXObjectType.UNKNOWN

Protected _height

_height: number = 0

Protected _isPowerOf2

_isPowerOf2: boolean = false

Protected _mipLevel

_mipLevel: number = 1

Protected _samples

_samples: GFXSampleCount = GFXSampleCount.X1

Protected _size

_size: number = 0

Protected _status

_status: GFXStatus = GFXStatus.UNREADY

Protected _type

_type: GFXTextureType = GFXTextureType.TEX2D

Protected _usage

_usage: GFXTextureUsage = GFXTextureUsageBit.NONE

Protected _width

_width: number = 0

Accessors

arrayLayer

  • get arrayLayer(): number

buffer

  • get buffer(): ArrayBuffer | null

depth

  • get depth(): number

flags

format

gfxType

height

  • get height(): number

mipLevel

  • get mipLevel(): number

samples

size

  • get size(): number

status

type

usage

width

  • get width(): number

Methods

Abstract destroy

  • destroy(): void

Abstract initialize

Abstract resize

  • resize(width: number, height: number): void
  • 重置纹理大小。

    Parameters

    • width: number

      The new width.

    • height: number

      The new height.

    Returns void

Generated using TypeDoc