# CompressedTextureBuffer

#### new Cesium.CompressedTextureBuffer(internalFormat, pixelDatatype, width, height, buffer)
engine/Source/Core/CompressedTextureBuffer.js 14

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
engine/Source/Core/CompressedTextureBuffer.js 90

The compressed texture buffer. Alias for bufferView.

#### readonly bufferView : Uint8Array
engine/Source/Core/CompressedTextureBuffer.js 79

The compressed texture buffer.

#### readonly height : number
engine/Source/Core/CompressedTextureBuffer.js 68

The height of the texture.

#### readonly internalFormat : PixelFormat
engine/Source/Core/CompressedTextureBuffer.js 35

The format of the compressed texture.

#### readonly pixelDatatype : PixelDatatype
engine/Source/Core/CompressedTextureBuffer.js 46

The datatype of the compressed texture.

#### readonly width : number
engine/Source/Core/CompressedTextureBuffer.js 57

The width of the texture.

### Methods

#### static Cesium.CompressedTextureBuffer.clone(object) → CompressedTextureBuffer
engine/Source/Core/CompressedTextureBuffer.js 103

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.

#### clone() → CompressedTextureBuffer
engine/Source/Core/CompressedTextureBuffer.js 122

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.