---
title: "sample_index: builtin value, TypeShade language reference"
description: "sample_index, a builtin value in the TypeShade language reference. The index of the sample currently being processed, under multisampling."
url: https://typeshade.dev/reference/builtin-values/sample_index/
language: en
---

# `@builtin("sample_index")`

Builtin value

The index of the sample currently being processed, under multisampling.

**Valid in**

fragment input

The signature, the sentence and any message are the compiler's own text at commit af54ddad5.

## Syntax

`@builtin("sample_index"): u32`

## See also

- [Builtin values](https://typeshade.dev/reference/builtin-values/)
