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

# Interface GPUDepthStencilState

interface GPUDepthStencilState {  
    [depthBias](#depthbias)?: number;  
    [depthBiasClamp](#depthbiasclamp)?: number;  
    [depthBiasSlopeScale](#depthbiasslopescale)?: number;  
    [depthCompare](#depthcompare)?: [GPUCompareFunction](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.GPUCompareFunction/);  
    [depthWriteEnabled](#depthwriteenabled)?: boolean;  
    [format](#format): [GPUTextureFormat](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.GPUTextureFormat/);  
    [stencilBack](#stencilback)?: [GPUStencilFaceState](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.GPUStencilFaceState/);  
    [stencilFront](#stencilfront)?: [GPUStencilFaceState](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.GPUStencilFaceState/);  
    [stencilReadMask](#stencilreadmask)?: number;  
    [stencilWriteMask](#stencilwritemask)?: number;  
}

##### Index

### Properties[](#properties)

[depthBias?](#depthbias) [depthBiasClamp?](#depthbiasclamp) [depthBiasSlopeScale?](#depthbiasslopescale) [depthCompare?](#depthcompare) [depthWriteEnabled?](#depthwriteenabled) [format](#format) [stencilBack?](#stencilback) [stencilFront?](#stencilfront) [stencilReadMask?](#stencilreadmask) [stencilWriteMask?](#stencilwritemask)

## Properties[](#properties-1)

### `Optional`depthBias[](#depthbias)

depthBias?: number

### `Optional`depthBiasClamp[](#depthbiasclamp)

depthBiasClamp?: number

### `Optional`depthBiasSlopeScale[](#depthbiasslopescale)

depthBiasSlopeScale?: number

### `Optional`depthCompare[](#depthcompare)

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

### `Optional`depthWriteEnabled[](#depthwriteenabled)

depthWriteEnabled?: boolean

### format[](#format)

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

### `Optional`stencilBack[](#stencilback)

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

### `Optional`stencilFront[](#stencilfront)

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

### `Optional`stencilReadMask[](#stencilreadmask)

stencilReadMask?: number

### `Optional`stencilWriteMask[](#stencilwritemask)

stencilWriteMask?: number
