---
title: "casResultT(): function in Types, TypeShade API reference"
description: "casResultT, a function in Types. The CAS_RESULT_STRUCTS type for one atomic element kind."
url: https://typeshade.dev/api/casresultt/
language: en
---

# `casResultT()`

Function in Types

The CAS\_RESULT\_STRUCTS type for one atomic element kind.

`import { casResultT } from 'typeshade/core/ir'`

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

## Syntax

```ts
const casResultT: (elem: "u32" | "i32") => ShaderType
```

## Parameters

**`elem` `'u32' | 'i32'`**

## Return value

`ShaderType`

## See also

- [`CAS_RESULT_STRUCTS`](https://typeshade.dev/api/casresultstructs/)

## Source

[`src/core/ir/types/cas-result.ts`, line 40](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/ir/types/cas-result.ts#L40), at commit af54ddad5
