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

# Interface GPUTextureDescriptor

interface GPUTextureDescriptor {  
    [dimension](#dimension)?: [GPUTextureDimension](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.GPUTextureDimension/);  
    [format](#format): [GPUTextureFormat](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.GPUTextureFormat/);  
    [label](#label)?: string;  
    [mipLevelCount](#miplevelcount)?: number;  
    [sampleCount](#samplecount)?: number;  
    [size](#size): [GPUExtent3D](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.GPUExtent3D/);  
    [usage](#usage): number;  
    [viewFormats](#viewformats)?: [GPUTextureFormat](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.GPUTextureFormat/)\[\];  
}

#### Hierarchy ([View Summary](https://docs.maptiler.com/sdk-js/api-reference/hierarchy/#Externals.GPUTextureDescriptor))

-   [GPUObjectDescriptorBase](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.GPUObjectDescriptorBase/)
    -   GPUTextureDescriptor

##### Index

### Properties[](#properties)

[dimension?](#dimension) [format](#format) [label?](#label) [mipLevelCount?](#miplevelcount) [sampleCount?](#samplecount) [size](#size) [usage](#usage) [viewFormats?](#viewformats)

## Properties[](#properties-1)

### `Optional`dimension[](#dimension)

dimension?: [GPUTextureDimension](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.GPUTextureDimension/)

### format[](#format)

format: [GPUTextureFormat](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.GPUTextureFormat/)

### `Optional`label[](#label)

label?: string

Inherited from [GPUObjectDescriptorBase](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.GPUObjectDescriptorBase/).[label](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.GPUObjectDescriptorBase/#label)

### `Optional`mipLevelCount[](#miplevelcount)

mipLevelCount?: number

### `Optional`sampleCount[](#samplecount)

sampleCount?: number

### size[](#size)

size: [GPUExtent3D](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.GPUExtent3D/)

### usage[](#usage)

usage: number

### `Optional`viewFormats[](#viewformats)

viewFormats?: [GPUTextureFormat](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.GPUTextureFormat/)\[\]
