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

GFX设备。

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

是否是2次幂大小。

Protected _mipLevel

_mipLevel: number = 1

纹理mip层级数。

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(): any

Abstract initialize

Abstract resize

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

    Parameters

    • width: number

      纹理宽度。

    • height: number

      纹理高度。

    Returns any

Generated using TypeDoc