Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "tex/index-coord"

Index

Functions

Const coordToIndex

  • coordToIndex(coord: UVec2Term, width: UintTerm): Term<"uint">
  • Inline function. Reverse op to indexToCoord. Not compatible with WebGL1.

    Parameters

    • coord: UVec2Term

      -

    • width: UintTerm

      -

    Returns Term<"uint">

Const indexToCoord

  • indexToCoord(i: UintTerm, width: UintTerm): Lit<"uvec2">
  • Inline function. Similar to indexToUV, but returns uvec2 in pixel coords. Not compatible with WebGL1.

    Parameters

    • i: UintTerm

      -

    • width: UintTerm

      -

    Returns Lit<"uvec2">

Generated using TypeDoc