textureDepth2dT
On this page

textureDepth2dT

Constant in Types

A 2D depth texture, the texture a shadow map is.

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

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

Syntax

const textureDepth2dT: { readonly kind: "depth-texture"; readonly dim: "2d"; }

Description

Single-channel float with no element type of its own, and a read of one yields f32, not vec4.

Source

src/core/ir/types/texture-types.ts, line 107, at commit af54ddad5

Edit this page Report a problem