English中文

CompressedTextureBuffer

new Cesium.CompressedTextureBuffer(internalFormat, pixelDatatype, width, height, buffer)

描述压缩纹理并包含压缩纹理缓冲区。 Describes a compressed texture and contains a compressed texture buffer.
名称 Name 类型 Type 说明 Description
internalFormat PixelFormat 压缩纹理的像素格式。 The pixel format of the compressed texture.
pixelDatatype PixelDatatype 压缩纹理的像素数据类型。 The pixel datatype of the compressed texture.
width number 纹理的宽度。 The width of the texture.
height number 纹理的高度。 The height of the texture.
buffer Uint8Array 压缩纹理缓冲区。 The compressed texture buffer.

成员 Members

readonly arrayBufferView : Uint8Array

压缩纹理缓冲区。 bufferView 的别名。 The compressed texture buffer. Alias for bufferView.

readonly bufferView : Uint8Array

压缩纹理缓冲区。 The compressed texture buffer.
纹理的高度。 The height of the texture.
压缩纹理的格式。 The format of the compressed texture.
压缩纹理的数据类型。 The datatype of the compressed texture.
纹理的宽度。 The width of the texture.

方法 Methods

static Cesium.CompressedTextureBuffer.clone(object)CompressedTextureBuffer

创建压缩纹理缓冲区的浅克隆。 Creates a shallow clone of a compressed texture buffer.
名称 Name 类型 Type 说明 Description
object CompressedTextureBuffer 要克隆的压缩纹理缓冲区。 The compressed texture buffer to be cloned.
返回: Returns:
压缩纹理缓冲区的浅克隆。 A shallow clone of the compressed texture buffer.
创建此压缩纹理缓冲区的浅克隆。 Creates a shallow clone of this compressed texture buffer.
返回: Returns:
压缩纹理缓冲区的浅克隆。 A shallow clone of the compressed texture buffer.
需要帮助吗?获得答案的最快方法是从社区和团队那里获得答案 Need help? The fastest way to get answers is from the community and team on the Cesium Forum.