---
title: "ReflectOptions: interface in Reflection, TypeShade API"
description: "ReflectOptions, an interface in Reflection. Options for reflect. What reflect() recovers from a module: bind groups, byte layouts and entry points."
url: https://typeshade.dev/api/reflectoptions/
language: en
---

# `ReflectOptions`

Interface in Reflection

Options for reflect.

`import type { ReflectOptions } from 'typeshade'`

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

## Syntax

```ts
interface ReflectOptions {
  readonly fp64Flavor?: Fp64Flavor;
  readonly console?: 'cpu' | 'gpu';
}
```

## Instance properties

**`fp64Flavor` optional read only `Fp64Flavor`**

The `f64` emulation flavour the emit will use, the same [`Fp64Flavor`](https://typeshade.dev/api/fp64flavor/) the backend is given. It decides whether the module binds the `_fp64` guard, a 1x1 texture the emulated-double helpers read so that a fast-math compiler cannot reassociate their arithmetic: the `'float'` helpers (the default) read it and the `'integer'` helpers do not. Pass the same value the emit will get; a host that builds a bind group from a reflection computed with a different flavour is describing a different program than the one it runs.

**`console` optional read only `'cpu' | 'gpu'`**

Where a `console` call is recorded: `'gpu'` reports the `_console` buffer the WGSL then binds ([Rule 6.11](https://typeshade.dev/reference/rules/6-11/), surface §66), as `_fp64` is reported. Pass the same value `compile()` got. Defaults to `'cpu'`, which adds no binding.

## See also

- [`reflect`](https://typeshade.dev/api/reflect/)
- [`Fp64Flavor`](https://typeshade.dev/api/fp64flavor/)

## Source

[`src/core/reflect/reflection.ts`, line 99](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/reflect/reflection.ts#L99), at commit af54ddad5
