Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GFXTexture

GFX 纹理。

Hierarchy

Index

Constructors

constructor

Properties

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 _layerCount

_layerCount: number = 1

Protected _levelCount

_levelCount: number = 1

Protected _samples

_samples: GFXSampleCount = GFXSampleCount.X1

Protected _size

_size: number = 0

Protected _type

_type: GFXTextureType = GFXTextureType.TEX2D

Protected _usage

_usage: GFXTextureUsage = GFXTextureUsageBit.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
  • 重置纹理大小。

    Parameters

    • width: number

      The new width.

    • height: number

      The new height.

    Returns void

Generated using TypeDoc