vec2fT
On this page

vec2fT

Constant in Types

A native vec2<f32>, the most common vector type in the DSL: screen and UV coordinates and 2D positions, such as a uv: location(0, vec2fT) fragment-input field or a resolution: vec2fT uniform.

import { vec2fT } from 'typeshade'

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

Syntax

const vec2fT: { readonly kind: "vec"; readonly n: 2; readonly elem: "f32"; }

Description

Build a value with the vec2 constructor; use vec2f64T instead when the value needs more precision than f32 offers.

In the guide

See also

Source

src/core/ir/types.ts, line 442, at commit 26de7be8

Edit this page Report a problem