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

# Interface GPUShaderModule

The **`GPUShaderModule`** interface of the WebGPU API represents an internal shader module object, a container for WGSL shader code that can be submitted to the GPU for execution by a pipeline. Available only in secure contexts.

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

interface GPUShaderModule {  
    [label](#label): string;  
    [getCompilationInfo](#getcompilationinfo-1)(): Promise<[GPUCompilationInfo](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.GPUCompilationInfo/)\>;  
}

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

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

##### Index

### Properties[](#properties)

[label](#label)

### Methods[](#methods)

[getCompilationInfo](#getcompilationinfo)

## Properties[](#properties-1)

### label[](#label)

label: string

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

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

## Methods[](#methods-1)

### getCompilationInfo[](#getcompilationinfo)

-   getCompilationInfo(): Promise<[GPUCompilationInfo](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.GPUCompilationInfo/)\>[](#getcompilationinfo-1)
    
    The **`getCompilationInfo()`** method of the GPUShaderModule interface returns a Promise that fulfills with a GPUCompilationInfo object containing messages generated during the GPUShaderModule's compilation.
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule/getCompilationInfo)
    
    #### Returns Promise<[GPUCompilationInfo](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.GPUCompilationInfo/)\>
