Skip to content

KBE3D / KBCore / Cesium / CompressedTextureBuffer

类: CompressedTextureBuffer

Describes a compressed texture and contains a compressed texture buffer.

参数

The pixel format of the compressed texture.

参数

The pixel datatype of the compressed texture.

参数

The width of the texture.

参数

The height of the texture.

参数

The compressed texture buffer.

属性

internalFormat

readonly internalFormat: PixelFormat

The format of the compressed texture.


pixelDatatype

readonly pixelDatatype: PixelDatatype

The datatype of the compressed texture.


width

readonly width: number

The width of the texture.


height

readonly height: number

The height of the texture.


bufferView

readonly bufferView: Uint8Array

The compressed texture buffer.


arrayBufferView

readonly arrayBufferView: Uint8Array

The compressed texture buffer. Alias for bufferView.

方法

clone()

static clone(object: CompressedTextureBuffer): CompressedTextureBuffer

Creates a shallow clone of a compressed texture buffer.

参数

object

CompressedTextureBuffer

The compressed texture buffer to be cloned.

返回

CompressedTextureBuffer

A shallow clone of the compressed texture buffer.


clone()

clone(): CompressedTextureBuffer

Creates a shallow clone of this compressed texture buffer.

返回

CompressedTextureBuffer

A shallow clone of the compressed texture buffer.

构造函数

构造函数

new CompressedTextureBuffer(internalFormat: PixelFormat, pixelDatatype: PixelDatatype, width: number, height: number, buffer: Uint8Array): CompressedTextureBuffer

参数

internalFormat

PixelFormat

pixelDatatype

PixelDatatype

width

number

height

number

buffer

Uint8Array

返回

CompressedTextureBuffer

KBE3D @3.0.0 Copyright © 2024-present KBE3D