vec4fT
On this page

vec4fT

Constant in Types

A native vec4<f32>: an RGBA colour or a homogeneous clip-space position.

import { vec4fT } from 'typeshade/core/ir'

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

Syntax

const vec4fT: { readonly kind: "vec"; readonly n: 4; readonly elem: "f32"; }

Description

Types the pos: builtin('position', vec4fT) vertex-output field, a location(0, vec4fT) fragment-output field, and any RGBA uniform field.

Source

src/core/ir/types/vector-types.ts, line 23, at commit af54ddad5

Edit this page Report a problem