---
title: "EmitIdentityInput: interface in Tooling, TypeShade API"
description: "EmitIdentityInput, an interface in Tooling. The emit options that change the emitted text, other than plugins."
url: https://typeshade.dev/api/emitidentityinput/
language: en
---

# `EmitIdentityInput`

Interface in Tooling

The emit options that change the emitted text, other than plugins.

`import type { EmitIdentityInput } from 'typeshade'`

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

## Syntax

```ts
interface EmitIdentityInput extends EmitOptions {
  readonly emulateCompute?: boolean;
  readonly overrideValues?: Readonly<Record<string, number | boolean>>;
}
```

## Description

The list is explicit: every option here is one axis of the identity that [`emitIdentity`](https://typeshade.dev/api/emitidentity/) computes, and an option that changes the emitted text belongs here so that the stamp describes it.

## Instance properties

**`emulateCompute` optional read only `boolean`**

GLSL only. `emitGlslModule({ emulateCompute })` rewrites a compute entry into a fragment shader, so it is an emit mode.

In the identity, the marker records that this compute-to-fragment rewrite ran, whether because this option was passed or because the module declares a `portable` compute entry, which takes the same path with no option. Pass the module as [`emitIdentity`](https://typeshade.dev/api/emitidentity/)’s third argument and the marker is derived from either source.

**`overrideValues` optional read only `Readonly<Record<string, number | boolean>>`**

GLSL only. Pinned `override` values become `#define`s, which changes the emitted text.

## See also

- [`emitIdentity`](https://typeshade.dev/api/emitidentity/)

## Source

[`src/core/emit-identity.ts`, line 41](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/emit-identity.ts#L41), at commit af54ddad5
