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

# Interface GPUCanvasConfiguration

interface GPUCanvasConfiguration {  
    [alphaMode](#alphamode)?: [GPUCanvasAlphaMode](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.GPUCanvasAlphaMode/);  
    [colorSpace](#colorspace)?: [PredefinedColorSpace](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.PredefinedColorSpace/);  
    [device](#device): [GPUDevice](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.GPUDevice/);  
    [format](#format): [GPUTextureFormat](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.GPUTextureFormat/);  
    [toneMapping](#tonemapping)?: [GPUCanvasToneMapping](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.GPUCanvasToneMapping/);  
    [usage](#usage)?: number;  
    [viewFormats](#viewformats)?: [GPUTextureFormat](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.GPUTextureFormat/)\[\];  
}

##### Index

### Properties[](#properties)

[alphaMode?](#alphamode) [colorSpace?](#colorspace) [device](#device) [format](#format) [toneMapping?](#tonemapping) [usage?](#usage) [viewFormats?](#viewformats)

## Properties[](#properties-1)

### `Optional`alphaMode[](#alphamode)

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

### `Optional`colorSpace[](#colorspace)

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

### device[](#device)

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

### format[](#format)

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

### `Optional`toneMapping[](#tonemapping)

toneMapping?: [GPUCanvasToneMapping](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.GPUCanvasToneMapping/)

### `Optional`usage[](#usage)

usage?: number

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

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