---
title: "WEBGL_compressed_texture_astc | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Interface WEBGL\_compressed\_texture\_astc

The **`WEBGL_compressed_texture_astc`** extension is part of the WebGL API and exposes Adaptive Scalable Texture Compression (ASTC) compressed texture formats to WebGL.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_astc)

interface WEBGL\_compressed\_texture\_astc {  
    [COMPRESSED\_RGBA\_ASTC\_10x10\_KHR](#compressed_rgba_astc_10x10_khr): 37819;  
    [COMPRESSED\_RGBA\_ASTC\_10x5\_KHR](#compressed_rgba_astc_10x5_khr): 37816;  
    [COMPRESSED\_RGBA\_ASTC\_10x6\_KHR](#compressed_rgba_astc_10x6_khr): 37817;  
    [COMPRESSED\_RGBA\_ASTC\_10x8\_KHR](#compressed_rgba_astc_10x8_khr): 37818;  
    [COMPRESSED\_RGBA\_ASTC\_12x10\_KHR](#compressed_rgba_astc_12x10_khr): 37820;  
    [COMPRESSED\_RGBA\_ASTC\_12x12\_KHR](#compressed_rgba_astc_12x12_khr): 37821;  
    [COMPRESSED\_RGBA\_ASTC\_4x4\_KHR](#compressed_rgba_astc_4x4_khr): 37808;  
    [COMPRESSED\_RGBA\_ASTC\_5x4\_KHR](#compressed_rgba_astc_5x4_khr): 37809;  
    [COMPRESSED\_RGBA\_ASTC\_5x5\_KHR](#compressed_rgba_astc_5x5_khr): 37810;  
    [COMPRESSED\_RGBA\_ASTC\_6x5\_KHR](#compressed_rgba_astc_6x5_khr): 37811;  
    [COMPRESSED\_RGBA\_ASTC\_6x6\_KHR](#compressed_rgba_astc_6x6_khr): 37812;  
    [COMPRESSED\_RGBA\_ASTC\_8x5\_KHR](#compressed_rgba_astc_8x5_khr): 37813;  
    [COMPRESSED\_RGBA\_ASTC\_8x6\_KHR](#compressed_rgba_astc_8x6_khr): 37814;  
    [COMPRESSED\_RGBA\_ASTC\_8x8\_KHR](#compressed_rgba_astc_8x8_khr): 37815;  
    [COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_10x10\_KHR](#compressed_srgb8_alpha8_astc_10x10_khr): 37851;  
    [COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_10x5\_KHR](#compressed_srgb8_alpha8_astc_10x5_khr): 37848;  
    [COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_10x6\_KHR](#compressed_srgb8_alpha8_astc_10x6_khr): 37849;  
    [COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_10x8\_KHR](#compressed_srgb8_alpha8_astc_10x8_khr): 37850;  
    [COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_12x10\_KHR](#compressed_srgb8_alpha8_astc_12x10_khr): 37852;  
    [COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_12x12\_KHR](#compressed_srgb8_alpha8_astc_12x12_khr): 37853;  
    [COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_4x4\_KHR](#compressed_srgb8_alpha8_astc_4x4_khr): 37840;  
    [COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_5x4\_KHR](#compressed_srgb8_alpha8_astc_5x4_khr): 37841;  
    [COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_5x5\_KHR](#compressed_srgb8_alpha8_astc_5x5_khr): 37842;  
    [COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_6x5\_KHR](#compressed_srgb8_alpha8_astc_6x5_khr): 37843;  
    [COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_6x6\_KHR](#compressed_srgb8_alpha8_astc_6x6_khr): 37844;  
    [COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_8x5\_KHR](#compressed_srgb8_alpha8_astc_8x5_khr): 37845;  
    [COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_8x6\_KHR](#compressed_srgb8_alpha8_astc_8x6_khr): 37846;  
    [COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_8x8\_KHR](#compressed_srgb8_alpha8_astc_8x8_khr): 37847;  
    [getSupportedProfiles](#getsupportedprofiles-1)(): string\[\];  
}

##### Index

### Properties[](#properties)

[COMPRESSED\_RGBA\_ASTC\_10x10\_KHR](#compressed_rgba_astc_10x10_khr) [COMPRESSED\_RGBA\_ASTC\_10x5\_KHR](#compressed_rgba_astc_10x5_khr) [COMPRESSED\_RGBA\_ASTC\_10x6\_KHR](#compressed_rgba_astc_10x6_khr) [COMPRESSED\_RGBA\_ASTC\_10x8\_KHR](#compressed_rgba_astc_10x8_khr) [COMPRESSED\_RGBA\_ASTC\_12x10\_KHR](#compressed_rgba_astc_12x10_khr) [COMPRESSED\_RGBA\_ASTC\_12x12\_KHR](#compressed_rgba_astc_12x12_khr) [COMPRESSED\_RGBA\_ASTC\_4x4\_KHR](#compressed_rgba_astc_4x4_khr) [COMPRESSED\_RGBA\_ASTC\_5x4\_KHR](#compressed_rgba_astc_5x4_khr) [COMPRESSED\_RGBA\_ASTC\_5x5\_KHR](#compressed_rgba_astc_5x5_khr) [COMPRESSED\_RGBA\_ASTC\_6x5\_KHR](#compressed_rgba_astc_6x5_khr) [COMPRESSED\_RGBA\_ASTC\_6x6\_KHR](#compressed_rgba_astc_6x6_khr) [COMPRESSED\_RGBA\_ASTC\_8x5\_KHR](#compressed_rgba_astc_8x5_khr) [COMPRESSED\_RGBA\_ASTC\_8x6\_KHR](#compressed_rgba_astc_8x6_khr) [COMPRESSED\_RGBA\_ASTC\_8x8\_KHR](#compressed_rgba_astc_8x8_khr) [COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_10x10\_KHR](#compressed_srgb8_alpha8_astc_10x10_khr) [COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_10x5\_KHR](#compressed_srgb8_alpha8_astc_10x5_khr) [COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_10x6\_KHR](#compressed_srgb8_alpha8_astc_10x6_khr) [COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_10x8\_KHR](#compressed_srgb8_alpha8_astc_10x8_khr) [COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_12x10\_KHR](#compressed_srgb8_alpha8_astc_12x10_khr) [COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_12x12\_KHR](#compressed_srgb8_alpha8_astc_12x12_khr) [COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_4x4\_KHR](#compressed_srgb8_alpha8_astc_4x4_khr) [COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_5x4\_KHR](#compressed_srgb8_alpha8_astc_5x4_khr) [COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_5x5\_KHR](#compressed_srgb8_alpha8_astc_5x5_khr) [COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_6x5\_KHR](#compressed_srgb8_alpha8_astc_6x5_khr) [COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_6x6\_KHR](#compressed_srgb8_alpha8_astc_6x6_khr) [COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_8x5\_KHR](#compressed_srgb8_alpha8_astc_8x5_khr) [COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_8x6\_KHR](#compressed_srgb8_alpha8_astc_8x6_khr) [COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_8x8\_KHR](#compressed_srgb8_alpha8_astc_8x8_khr)

### Methods[](#methods)

[getSupportedProfiles](#getsupportedprofiles)

## Properties[](#properties-1)

### `Readonly`COMPRESSED\_RGBA\_ASTC\_10x10\_KHR[](#compressed_rgba_astc_10x10_khr)

COMPRESSED\_RGBA\_ASTC\_10x10\_KHR: 37819

### `Readonly`COMPRESSED\_RGBA\_ASTC\_10x5\_KHR[](#compressed_rgba_astc_10x5_khr)

COMPRESSED\_RGBA\_ASTC\_10x5\_KHR: 37816

### `Readonly`COMPRESSED\_RGBA\_ASTC\_10x6\_KHR[](#compressed_rgba_astc_10x6_khr)

COMPRESSED\_RGBA\_ASTC\_10x6\_KHR: 37817

### `Readonly`COMPRESSED\_RGBA\_ASTC\_10x8\_KHR[](#compressed_rgba_astc_10x8_khr)

COMPRESSED\_RGBA\_ASTC\_10x8\_KHR: 37818

### `Readonly`COMPRESSED\_RGBA\_ASTC\_12x10\_KHR[](#compressed_rgba_astc_12x10_khr)

COMPRESSED\_RGBA\_ASTC\_12x10\_KHR: 37820

### `Readonly`COMPRESSED\_RGBA\_ASTC\_12x12\_KHR[](#compressed_rgba_astc_12x12_khr)

COMPRESSED\_RGBA\_ASTC\_12x12\_KHR: 37821

### `Readonly`COMPRESSED\_RGBA\_ASTC\_4x4\_KHR[](#compressed_rgba_astc_4x4_khr)

COMPRESSED\_RGBA\_ASTC\_4x4\_KHR: 37808

### `Readonly`COMPRESSED\_RGBA\_ASTC\_5x4\_KHR[](#compressed_rgba_astc_5x4_khr)

COMPRESSED\_RGBA\_ASTC\_5x4\_KHR: 37809

### `Readonly`COMPRESSED\_RGBA\_ASTC\_5x5\_KHR[](#compressed_rgba_astc_5x5_khr)

COMPRESSED\_RGBA\_ASTC\_5x5\_KHR: 37810

### `Readonly`COMPRESSED\_RGBA\_ASTC\_6x5\_KHR[](#compressed_rgba_astc_6x5_khr)

COMPRESSED\_RGBA\_ASTC\_6x5\_KHR: 37811

### `Readonly`COMPRESSED\_RGBA\_ASTC\_6x6\_KHR[](#compressed_rgba_astc_6x6_khr)

COMPRESSED\_RGBA\_ASTC\_6x6\_KHR: 37812

### `Readonly`COMPRESSED\_RGBA\_ASTC\_8x5\_KHR[](#compressed_rgba_astc_8x5_khr)

COMPRESSED\_RGBA\_ASTC\_8x5\_KHR: 37813

### `Readonly`COMPRESSED\_RGBA\_ASTC\_8x6\_KHR[](#compressed_rgba_astc_8x6_khr)

COMPRESSED\_RGBA\_ASTC\_8x6\_KHR: 37814

### `Readonly`COMPRESSED\_RGBA\_ASTC\_8x8\_KHR[](#compressed_rgba_astc_8x8_khr)

COMPRESSED\_RGBA\_ASTC\_8x8\_KHR: 37815

### `Readonly`COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_10x10\_KHR[](#compressed_srgb8_alpha8_astc_10x10_khr)

COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_10x10\_KHR: 37851

### `Readonly`COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_10x5\_KHR[](#compressed_srgb8_alpha8_astc_10x5_khr)

COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_10x5\_KHR: 37848

### `Readonly`COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_10x6\_KHR[](#compressed_srgb8_alpha8_astc_10x6_khr)

COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_10x6\_KHR: 37849

### `Readonly`COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_10x8\_KHR[](#compressed_srgb8_alpha8_astc_10x8_khr)

COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_10x8\_KHR: 37850

### `Readonly`COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_12x10\_KHR[](#compressed_srgb8_alpha8_astc_12x10_khr)

COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_12x10\_KHR: 37852

### `Readonly`COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_12x12\_KHR[](#compressed_srgb8_alpha8_astc_12x12_khr)

COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_12x12\_KHR: 37853

### `Readonly`COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_4x4\_KHR[](#compressed_srgb8_alpha8_astc_4x4_khr)

COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_4x4\_KHR: 37840

### `Readonly`COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_5x4\_KHR[](#compressed_srgb8_alpha8_astc_5x4_khr)

COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_5x4\_KHR: 37841

### `Readonly`COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_5x5\_KHR[](#compressed_srgb8_alpha8_astc_5x5_khr)

COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_5x5\_KHR: 37842

### `Readonly`COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_6x5\_KHR[](#compressed_srgb8_alpha8_astc_6x5_khr)

COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_6x5\_KHR: 37843

### `Readonly`COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_6x6\_KHR[](#compressed_srgb8_alpha8_astc_6x6_khr)

COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_6x6\_KHR: 37844

### `Readonly`COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_8x5\_KHR[](#compressed_srgb8_alpha8_astc_8x5_khr)

COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_8x5\_KHR: 37845

### `Readonly`COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_8x6\_KHR[](#compressed_srgb8_alpha8_astc_8x6_khr)

COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_8x6\_KHR: 37846

### `Readonly`COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_8x8\_KHR[](#compressed_srgb8_alpha8_astc_8x8_khr)

COMPRESSED\_SRGB8\_ALPHA8\_ASTC\_8x8\_KHR: 37847

## Methods[](#methods-1)

### getSupportedProfiles[](#getsupportedprofiles)

-   getSupportedProfiles(): string\[\][](#getsupportedprofiles-1)
    
    The **`WEBGL_compressed_texture_astc.getSupportedProfiles()`** method returns an array of strings containing the names of the ASTC profiles supported by the implementation.
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_astc/getSupportedProfiles)
    
    #### Returns string\[\]
