---
title: "StencilOperation: type in Runtime, TypeShade API reference"
description: "StencilOperation, a type in Runtime. WebGPU GPUStencilOperation: what a stencil test does to the value a pixel stores."
url: https://typeshade.dev/api/stenciloperation/
language: en
---

# `StencilOperation`

Type in Runtime

WebGPU GPUStencilOperation: what a stencil test does to the value a pixel stores.

`import type { StencilOperation } from 'typeshade/runtime'`

The signature, the description and the examples come from the compiler's own source at commit af54ddad5.

## Syntax

```ts
type StencilOperation = (typeof STENCIL_OPERATIONS)[number];
```

## Source

[`src/runtime/program.ts`, line 119](https://github.com/typeshade/typeshade/blob/af54ddad5/src/runtime/program.ts#L119), at commit af54ddad5
