---
title: "TS8038 F64_ENTRY_IO: an error code of the TypeShade compiler"
description: "TS8038 F64_ENTRY_IO, an error code of the TypeShade compiler. An emulated double (f64 or a vec64) on an entry's IO boundary: a @location parameter…"
url: https://typeshade.dev/reference/errors/ts8038/
language: en
---

# `TS8038`

Front-end code `F64_ENTRY_IO`

An emulated double (`f64` or a `vec64`) on an entry's IO boundary: a `@location` parameter, a `@location` field of an IO struct or an entry's return. A double is a pair of `f32` words after lowering, and a varying interpolates each word on its own. Narrow with `f32(x)`, or read the double in the stage that needs it, since a uniform or a storage binding carries an `f64`.

The registry has no documentation comment for this constant, so the line above is written by this site from the messages the compiler raises it with.

The registry text and every compiler message on these pages are the compiler's own English.

## Example

example.shade.ts

```ts
"use typeshade"

@fragment
export function main(uv: location<0, vec2<f64>>): vec4 {
  return vec4(f32(uv.x), f32(uv.y), 0., 1.)
}
```

Compiled at build time against the pinned compiler, this program gets:

**TS8038** error, line 4: Parameter "uv" carries `vec2f64`: an emulated double is a pair of `f32` words, and a `@location` varying interpolates each word on its own, which is not the interpolation of the double. Narrow it with `f32`(x), or compute the double in the stage that needs it — a uniform or storage binding carries an `f64` and every stage can read one.

## How to fix it

The same program, corrected. It compiles with no diagnostic.

example.shade.ts

```ts
"use typeshade"

@fragment
export function main(uv: location<0, vec2>): vec4 {
  return vec4(uv.x, uv.y, 0., 1.)
}
```

## The rules this enforces

**[Rule 2.3](https://typeshade.dev/reference/rules/2-3/) Test**

A value sometimes has to cross between a representation the compiler chose and one the target has: an `f64` and the two `f32` halves that carry it across an interface of `f32`.

**[Rule 12.6](https://typeshade.dev/reference/rules/12-6/) Test**

A requirement the front end can check must be checked at the front end, in the author’s words, and not left to Tint or a driver.

## See also

**[`SD0044`](https://typeshade.dev/reference/errors/sd0044/)**

`f64` in an interpolated `@location` IO field

- [Emulated double](https://typeshade.dev/guide/language/from-typescript/double/)
- [Error codes](https://typeshade.dev/reference/errors/)

## Source

Where the compiler raises this code at commit af54ddad5, one line per file:

- [`src/compiler/ts/lower/function-signature/entry-refusals.ts:52`](https://github.com/typeshade/typeshade/blob/af54ddad5/src/compiler/ts/lower/function-signature/entry-refusals.ts#L52)
