Skip to content

v4u

Interface representing its WGSL vector type counterpart: vec4u or vec4. A vector with 4 elements of type u32

  • Tuple4<number>.Swizzle4<v2u, v3u, v4u>.vecInfixNotation<v4u>

[n: number]: number

readonly [$internal]: true

packages/typegpu/src/data/wgslTypes.ts:408


readonly [unscopables]: object

Is an object whose properties have the value ‘true’ when they will be absent when used in a ‘with’ statement.

[key: number]: undefined | boolean

optional [iterator]: boolean

readonly optional [unscopables]: boolean

Is an object whose properties have the value ‘true’ when they will be absent when used in a ‘with’ statement.

optional at: boolean

optional concat: boolean

optional copyWithin: boolean

optional entries: boolean

optional every: boolean

optional fill: boolean

optional filter: boolean

optional find: boolean

optional findIndex: boolean

optional findLast: boolean

optional findLastIndex: boolean

optional flat: boolean

optional flatMap: boolean

optional forEach: boolean

optional includes: boolean

optional indexOf: boolean

optional join: boolean

optional keys: boolean

optional lastIndexOf: boolean

optional length: boolean

Gets or sets the length of the array. This is a number one higher than the highest index in the array.

optional map: boolean

optional pop: boolean

optional push: boolean

optional reduce: boolean

optional reduceRight: boolean

optional reverse: boolean

optional shift: boolean

optional slice: boolean

optional some: boolean

optional sort: boolean

optional splice: boolean

optional toLocaleString: boolean

optional toReversed: boolean

optional toSorted: boolean

optional toSpliced: boolean

optional toString: boolean

optional unshift: boolean

optional values: boolean

optional with: boolean

Tuple4.[unscopables]

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2015.symbol.wellknown.d.ts:97


0: number

Tuple4.0


1: number

Tuple4.1


2: number

Tuple4.2


3: number

Tuple4.3


a: number

packages/typegpu/src/data/wgslTypes.ts:418


aa: v2u

Swizzle4.aa


aaa: v3u

Swizzle4.aaa


aaaa: v4u

Swizzle4.aaaa


aaab: v4u

Swizzle4.aaab


aaag: v4u

Swizzle4.aaag


aaar: v4u

Swizzle4.aaar


aab: v3u

Swizzle4.aab


aaba: v4u

Swizzle4.aaba


aabb: v4u

Swizzle4.aabb


aabg: v4u

Swizzle4.aabg


aabr: v4u

Swizzle4.aabr


aag: v3u

Swizzle4.aag


aaga: v4u

Swizzle4.aaga


aagb: v4u

Swizzle4.aagb


aagg: v4u

Swizzle4.aagg


aagr: v4u

Swizzle4.aagr


aar: v3u

Swizzle4.aar


aara: v4u

Swizzle4.aara


aarb: v4u

Swizzle4.aarb


aarg: v4u

Swizzle4.aarg


aarr: v4u

Swizzle4.aarr


ab: v2u

Swizzle4.ab


aba: v3u

Swizzle4.aba


abaa: v4u

Swizzle4.abaa


abab: v4u

Swizzle4.abab


abag: v4u

Swizzle4.abag


abar: v4u

Swizzle4.abar


abb: v3u

Swizzle4.abb


abba: v4u

Swizzle4.abba


abbb: v4u

Swizzle4.abbb


abbg: v4u

Swizzle4.abbg


abbr: v4u

Swizzle4.abbr


abg: v3u

Swizzle4.abg


abga: v4u

Swizzle4.abga


abgb: v4u

Swizzle4.abgb


abgg: v4u

Swizzle4.abgg


abgr: v4u

Swizzle4.abgr


abr: v3u

Swizzle4.abr


abra: v4u

Swizzle4.abra


abrb: v4u

Swizzle4.abrb


abrg: v4u

Swizzle4.abrg


abrr: v4u

Swizzle4.abrr


ag: v2u

Swizzle4.ag


aga: v3u

Swizzle4.aga


agaa: v4u

Swizzle4.agaa


agab: v4u

Swizzle4.agab


agag: v4u

Swizzle4.agag


agar: v4u

Swizzle4.agar


agb: v3u

Swizzle4.agb


agba: v4u

Swizzle4.agba


agbb: v4u

Swizzle4.agbb


agbg: v4u

Swizzle4.agbg


agbr: v4u

Swizzle4.agbr


agg: v3u

Swizzle4.agg


agga: v4u

Swizzle4.agga


aggb: v4u

Swizzle4.aggb


aggg: v4u

Swizzle4.aggg


aggr: v4u

Swizzle4.aggr


agr: v3u

Swizzle4.agr


agra: v4u

Swizzle4.agra


agrb: v4u

Swizzle4.agrb


agrg: v4u

Swizzle4.agrg


agrr: v4u

Swizzle4.agrr


ar: v2u

Swizzle4.ar


ara: v3u

Swizzle4.ara


araa: v4u

Swizzle4.araa


arab: v4u

Swizzle4.arab


arag: v4u

Swizzle4.arag


arar: v4u

Swizzle4.arar


arb: v3u

Swizzle4.arb


arba: v4u

Swizzle4.arba


arbb: v4u

Swizzle4.arbb


arbg: v4u

Swizzle4.arbg


arbr: v4u

Swizzle4.arbr


arg: v3u

Swizzle4.arg


arga: v4u

Swizzle4.arga


argb: v4u

Swizzle4.argb


argg: v4u

Swizzle4.argg


argr: v4u

Swizzle4.argr


arr: v3u

Swizzle4.arr


arra: v4u

Swizzle4.arra


arrb: v4u

Swizzle4.arrb


arrg: v4u

Swizzle4.arrg


arrr: v4u

Swizzle4.arrr


b: number

packages/typegpu/src/data/wgslTypes.ts:417


ba: v2u

Swizzle4.ba


baa: v3u

Swizzle4.baa


baaa: v4u

Swizzle4.baaa


baab: v4u

Swizzle4.baab


baag: v4u

Swizzle4.baag


baar: v4u

Swizzle4.baar


bab: v3u

Swizzle4.bab


baba: v4u

Swizzle4.baba


babb: v4u

Swizzle4.babb


babg: v4u

Swizzle4.babg


babr: v4u

Swizzle4.babr


bag: v3u

Swizzle4.bag


baga: v4u

Swizzle4.baga


bagb: v4u

Swizzle4.bagb


bagg: v4u

Swizzle4.bagg


bagr: v4u

Swizzle4.bagr


bar: v3u

Swizzle4.bar


bara: v4u

Swizzle4.bara


barb: v4u

Swizzle4.barb


barg: v4u

Swizzle4.barg


barr: v4u

Swizzle4.barr


bb: v2u

Swizzle4.bb


bba: v3u

Swizzle4.bba


bbaa: v4u

Swizzle4.bbaa


bbab: v4u

Swizzle4.bbab


bbag: v4u

Swizzle4.bbag


bbar: v4u

Swizzle4.bbar


bbb: v3u

Swizzle4.bbb


bbba: v4u

Swizzle4.bbba


bbbb: v4u

Swizzle4.bbbb


bbbg: v4u

Swizzle4.bbbg


bbbr: v4u

Swizzle4.bbbr


bbg: v3u

Swizzle4.bbg


bbga: v4u

Swizzle4.bbga


bbgb: v4u

Swizzle4.bbgb


bbgg: v4u

Swizzle4.bbgg


bbgr: v4u

Swizzle4.bbgr


bbr: v3u

Swizzle4.bbr


bbra: v4u

Swizzle4.bbra


bbrb: v4u

Swizzle4.bbrb


bbrg: v4u

Swizzle4.bbrg


bbrr: v4u

Swizzle4.bbrr


bg: v2u

Swizzle4.bg


bga: v3u

Swizzle4.bga


bgaa: v4u

Swizzle4.bgaa


bgab: v4u

Swizzle4.bgab


bgag: v4u

Swizzle4.bgag


bgar: v4u

Swizzle4.bgar


bgb: v3u

Swizzle4.bgb


bgba: v4u

Swizzle4.bgba


bgbb: v4u

Swizzle4.bgbb


bgbg: v4u

Swizzle4.bgbg


bgbr: v4u

Swizzle4.bgbr


bgg: v3u

Swizzle4.bgg


bgga: v4u

Swizzle4.bgga


bggb: v4u

Swizzle4.bggb


bggg: v4u

Swizzle4.bggg


bggr: v4u

Swizzle4.bggr


bgr: v3u

Swizzle4.bgr


bgra: v4u

Swizzle4.bgra


bgrb: v4u

Swizzle4.bgrb


bgrg: v4u

Swizzle4.bgrg


bgrr: v4u

Swizzle4.bgrr


br: v2u

Swizzle4.br


bra: v3u

Swizzle4.bra


braa: v4u

Swizzle4.braa


brab: v4u

Swizzle4.brab


brag: v4u

Swizzle4.brag


brar: v4u

Swizzle4.brar


brb: v3u

Swizzle4.brb


brba: v4u

Swizzle4.brba


brbb: v4u

Swizzle4.brbb


brbg: v4u

Swizzle4.brbg


brbr: v4u

Swizzle4.brbr


brg: v3u

Swizzle4.brg


brga: v4u

Swizzle4.brga


brgb: v4u

Swizzle4.brgb


brgg: v4u

Swizzle4.brgg


brgr: v4u

Swizzle4.brgr


brr: v3u

Swizzle4.brr


brra: v4u

Swizzle4.brra


brrb: v4u

Swizzle4.brrb


brrg: v4u

Swizzle4.brrg


brrr: v4u

Swizzle4.brrr


g: number

packages/typegpu/src/data/wgslTypes.ts:416


ga: v2u

Swizzle4.ga


gaa: v3u

Swizzle4.gaa


gaaa: v4u

Swizzle4.gaaa


gaab: v4u

Swizzle4.gaab


gaag: v4u

Swizzle4.gaag


gaar: v4u

Swizzle4.gaar


gab: v3u

Swizzle4.gab


gaba: v4u

Swizzle4.gaba


gabb: v4u

Swizzle4.gabb


gabg: v4u

Swizzle4.gabg


gabr: v4u

Swizzle4.gabr


gag: v3u

Swizzle4.gag


gaga: v4u

Swizzle4.gaga


gagb: v4u

Swizzle4.gagb


gagg: v4u

Swizzle4.gagg


gagr: v4u

Swizzle4.gagr


gar: v3u

Swizzle4.gar


gara: v4u

Swizzle4.gara


garb: v4u

Swizzle4.garb


garg: v4u

Swizzle4.garg


garr: v4u

Swizzle4.garr


gb: v2u

Swizzle4.gb


gba: v3u

Swizzle4.gba


gbaa: v4u

Swizzle4.gbaa


gbab: v4u

Swizzle4.gbab


gbag: v4u

Swizzle4.gbag


gbar: v4u

Swizzle4.gbar


gbb: v3u

Swizzle4.gbb


gbba: v4u

Swizzle4.gbba


gbbb: v4u

Swizzle4.gbbb


gbbg: v4u

Swizzle4.gbbg


gbbr: v4u

Swizzle4.gbbr


gbg: v3u

Swizzle4.gbg


gbga: v4u

Swizzle4.gbga


gbgb: v4u

Swizzle4.gbgb


gbgg: v4u

Swizzle4.gbgg


gbgr: v4u

Swizzle4.gbgr


gbr: v3u

Swizzle4.gbr


gbra: v4u

Swizzle4.gbra


gbrb: v4u

Swizzle4.gbrb


gbrg: v4u

Swizzle4.gbrg


gbrr: v4u

Swizzle4.gbrr


gg: v2u

Swizzle4.gg


gga: v3u

Swizzle4.gga


ggaa: v4u

Swizzle4.ggaa


ggab: v4u

Swizzle4.ggab


ggag: v4u

Swizzle4.ggag


ggar: v4u

Swizzle4.ggar


ggb: v3u

Swizzle4.ggb


ggba: v4u

Swizzle4.ggba


ggbb: v4u

Swizzle4.ggbb


ggbg: v4u

Swizzle4.ggbg


ggbr: v4u

Swizzle4.ggbr


ggg: v3u

Swizzle4.ggg


ggga: v4u

Swizzle4.ggga


gggb: v4u

Swizzle4.gggb


gggg: v4u

Swizzle4.gggg


gggr: v4u

Swizzle4.gggr


ggr: v3u

Swizzle4.ggr


ggra: v4u

Swizzle4.ggra


ggrb: v4u

Swizzle4.ggrb


ggrg: v4u

Swizzle4.ggrg


ggrr: v4u

Swizzle4.ggrr


gr: v2u

Swizzle4.gr


gra: v3u

Swizzle4.gra


graa: v4u

Swizzle4.graa


grab: v4u

Swizzle4.grab


grag: v4u

Swizzle4.grag


grar: v4u

Swizzle4.grar


grb: v3u

Swizzle4.grb


grba: v4u

Swizzle4.grba


grbb: v4u

Swizzle4.grbb


grbg: v4u

Swizzle4.grbg


grbr: v4u

Swizzle4.grbr


grg: v3u

Swizzle4.grg


grga: v4u

Swizzle4.grga


grgb: v4u

Swizzle4.grgb


grgg: v4u

Swizzle4.grgg


grgr: v4u

Swizzle4.grgr


grr: v3u

Swizzle4.grr


grra: v4u

Swizzle4.grra


grrb: v4u

Swizzle4.grrb


grrg: v4u

Swizzle4.grrg


grrr: v4u

Swizzle4.grrr


readonly kind: "vec4u"

use to distinguish between vectors of the same size on the type level

packages/typegpu/src/data/wgslTypes.ts:410


length: 4

Tuple4.length


r: number

packages/typegpu/src/data/wgslTypes.ts:415


ra: v2u

Swizzle4.ra


raa: v3u

Swizzle4.raa


raaa: v4u

Swizzle4.raaa


raab: v4u

Swizzle4.raab


raag: v4u

Swizzle4.raag


raar: v4u

Swizzle4.raar


rab: v3u

Swizzle4.rab


raba: v4u

Swizzle4.raba


rabb: v4u

Swizzle4.rabb


rabg: v4u

Swizzle4.rabg


rabr: v4u

Swizzle4.rabr


rag: v3u

Swizzle4.rag


raga: v4u

Swizzle4.raga


ragb: v4u

Swizzle4.ragb


ragg: v4u

Swizzle4.ragg


ragr: v4u

Swizzle4.ragr


rar: v3u

Swizzle4.rar


rara: v4u

Swizzle4.rara


rarb: v4u

Swizzle4.rarb


rarg: v4u

Swizzle4.rarg


rarr: v4u

Swizzle4.rarr


rb: v2u

Swizzle4.rb


rba: v3u

Swizzle4.rba


rbaa: v4u

Swizzle4.rbaa


rbab: v4u

Swizzle4.rbab


rbag: v4u

Swizzle4.rbag


rbar: v4u

Swizzle4.rbar


rbb: v3u

Swizzle4.rbb


rbba: v4u

Swizzle4.rbba


rbbb: v4u

Swizzle4.rbbb


rbbg: v4u

Swizzle4.rbbg


rbbr: v4u

Swizzle4.rbbr


rbg: v3u

Swizzle4.rbg


rbga: v4u

Swizzle4.rbga


rbgb: v4u

Swizzle4.rbgb


rbgg: v4u

Swizzle4.rbgg


rbgr: v4u

Swizzle4.rbgr


rbr: v3u

Swizzle4.rbr


rbra: v4u

Swizzle4.rbra


rbrb: v4u

Swizzle4.rbrb


rbrg: v4u

Swizzle4.rbrg


rbrr: v4u

Swizzle4.rbrr


rg: v2u

Swizzle4.rg


rga: v3u

Swizzle4.rga


rgaa: v4u

Swizzle4.rgaa


rgab: v4u

Swizzle4.rgab


rgag: v4u

Swizzle4.rgag


rgar: v4u

Swizzle4.rgar


rgb: v3u

Swizzle4.rgb


rgba: v4u

Swizzle4.rgba


rgbb: v4u

Swizzle4.rgbb


rgbg: v4u

Swizzle4.rgbg


rgbr: v4u

Swizzle4.rgbr


rgg: v3u

Swizzle4.rgg


rgga: v4u

Swizzle4.rgga


rggb: v4u

Swizzle4.rggb


rggg: v4u

Swizzle4.rggg


rggr: v4u

Swizzle4.rggr


rgr: v3u

Swizzle4.rgr


rgra: v4u

Swizzle4.rgra


rgrb: v4u

Swizzle4.rgrb


rgrg: v4u

Swizzle4.rgrg


rgrr: v4u

Swizzle4.rgrr


rr: v2u

Swizzle4.rr


rra: v3u

Swizzle4.rra


rraa: v4u

Swizzle4.rraa


rrab: v4u

Swizzle4.rrab


rrag: v4u

Swizzle4.rrag


rrar: v4u

Swizzle4.rrar


rrb: v3u

Swizzle4.rrb


rrba: v4u

Swizzle4.rrba


rrbb: v4u

Swizzle4.rrbb


rrbg: v4u

Swizzle4.rrbg


rrbr: v4u

Swizzle4.rrbr


rrg: v3u

Swizzle4.rrg


rrga: v4u

Swizzle4.rrga


rrgb: v4u

Swizzle4.rrgb


rrgg: v4u

Swizzle4.rrgg


rrgr: v4u

Swizzle4.rrgr


rrr: v3u

Swizzle4.rrr


rrra: v4u

Swizzle4.rrra


rrrb: v4u

Swizzle4.rrrb


rrrg: v4u

Swizzle4.rrrg


rrrr: v4u

Swizzle4.rrrr


w: number

packages/typegpu/src/data/wgslTypes.ts:414


ww: v2u

Swizzle4.ww


www: v3u

Swizzle4.www


wwww: v4u

Swizzle4.wwww


wwwx: v4u

Swizzle4.wwwx


wwwy: v4u

Swizzle4.wwwy


wwwz: v4u

Swizzle4.wwwz


wwx: v3u

Swizzle4.wwx


wwxw: v4u

Swizzle4.wwxw


wwxx: v4u

Swizzle4.wwxx


wwxy: v4u

Swizzle4.wwxy


wwxz: v4u

Swizzle4.wwxz


wwy: v3u

Swizzle4.wwy


wwyw: v4u

Swizzle4.wwyw


wwyx: v4u

Swizzle4.wwyx


wwyy: v4u

Swizzle4.wwyy


wwyz: v4u

Swizzle4.wwyz


wwz: v3u

Swizzle4.wwz


wwzw: v4u

Swizzle4.wwzw


wwzx: v4u

Swizzle4.wwzx


wwzy: v4u

Swizzle4.wwzy


wwzz: v4u

Swizzle4.wwzz


wx: v2u

Swizzle4.wx


wxw: v3u

Swizzle4.wxw


wxww: v4u

Swizzle4.wxww


wxwx: v4u

Swizzle4.wxwx


wxwy: v4u

Swizzle4.wxwy


wxwz: v4u

Swizzle4.wxwz


wxx: v3u

Swizzle4.wxx


wxxw: v4u

Swizzle4.wxxw


wxxx: v4u

Swizzle4.wxxx


wxxy: v4u

Swizzle4.wxxy


wxxz: v4u

Swizzle4.wxxz


wxy: v3u

Swizzle4.wxy


wxyw: v4u

Swizzle4.wxyw


wxyx: v4u

Swizzle4.wxyx


wxyy: v4u

Swizzle4.wxyy


wxyz: v4u

Swizzle4.wxyz


wxz: v3u

Swizzle4.wxz


wxzw: v4u

Swizzle4.wxzw


wxzx: v4u

Swizzle4.wxzx


wxzy: v4u

Swizzle4.wxzy


wxzz: v4u

Swizzle4.wxzz


wy: v2u

Swizzle4.wy


wyw: v3u

Swizzle4.wyw


wyww: v4u

Swizzle4.wyww


wywx: v4u

Swizzle4.wywx


wywy: v4u

Swizzle4.wywy


wywz: v4u

Swizzle4.wywz


wyx: v3u

Swizzle4.wyx


wyxw: v4u

Swizzle4.wyxw


wyxx: v4u

Swizzle4.wyxx


wyxy: v4u

Swizzle4.wyxy


wyxz: v4u

Swizzle4.wyxz


wyy: v3u

Swizzle4.wyy


wyyw: v4u

Swizzle4.wyyw


wyyx: v4u

Swizzle4.wyyx


wyyy: v4u

Swizzle4.wyyy


wyyz: v4u

Swizzle4.wyyz


wyz: v3u

Swizzle4.wyz


wyzw: v4u

Swizzle4.wyzw


wyzx: v4u

Swizzle4.wyzx


wyzy: v4u

Swizzle4.wyzy


wyzz: v4u

Swizzle4.wyzz


wz: v2u

Swizzle4.wz


wzw: v3u

Swizzle4.wzw


wzww: v4u

Swizzle4.wzww


wzwx: v4u

Swizzle4.wzwx


wzwy: v4u

Swizzle4.wzwy


wzwz: v4u

Swizzle4.wzwz


wzx: v3u

Swizzle4.wzx


wzxw: v4u

Swizzle4.wzxw


wzxx: v4u

Swizzle4.wzxx


wzxy: v4u

Swizzle4.wzxy


wzxz: v4u

Swizzle4.wzxz


wzy: v3u

Swizzle4.wzy


wzyw: v4u

Swizzle4.wzyw


wzyx: v4u

Swizzle4.wzyx


wzyy: v4u

Swizzle4.wzyy


wzyz: v4u

Swizzle4.wzyz


wzz: v3u

Swizzle4.wzz


wzzw: v4u

Swizzle4.wzzw


wzzx: v4u

Swizzle4.wzzx


wzzy: v4u

Swizzle4.wzzy


wzzz: v4u

Swizzle4.wzzz


x: number

packages/typegpu/src/data/wgslTypes.ts:411


xw: v2u

Swizzle4.xw


xww: v3u

Swizzle4.xww


xwww: v4u

Swizzle4.xwww


xwwx: v4u

Swizzle4.xwwx


xwwy: v4u

Swizzle4.xwwy


xwwz: v4u

Swizzle4.xwwz


xwx: v3u

Swizzle4.xwx


xwxw: v4u

Swizzle4.xwxw


xwxx: v4u

Swizzle4.xwxx


xwxy: v4u

Swizzle4.xwxy


xwxz: v4u

Swizzle4.xwxz


xwy: v3u

Swizzle4.xwy


xwyw: v4u

Swizzle4.xwyw


xwyx: v4u

Swizzle4.xwyx


xwyy: v4u

Swizzle4.xwyy


xwyz: v4u

Swizzle4.xwyz


xwz: v3u

Swizzle4.xwz


xwzw: v4u

Swizzle4.xwzw


xwzx: v4u

Swizzle4.xwzx


xwzy: v4u

Swizzle4.xwzy


xwzz: v4u

Swizzle4.xwzz


xx: v2u

Swizzle4.xx


xxw: v3u

Swizzle4.xxw


xxww: v4u

Swizzle4.xxww


xxwx: v4u

Swizzle4.xxwx


xxwy: v4u

Swizzle4.xxwy


xxwz: v4u

Swizzle4.xxwz


xxx: v3u

Swizzle4.xxx


xxxw: v4u

Swizzle4.xxxw


xxxx: v4u

Swizzle4.xxxx


xxxy: v4u

Swizzle4.xxxy


xxxz: v4u

Swizzle4.xxxz


xxy: v3u

Swizzle4.xxy


xxyw: v4u

Swizzle4.xxyw


xxyx: v4u

Swizzle4.xxyx


xxyy: v4u

Swizzle4.xxyy


xxyz: v4u

Swizzle4.xxyz


xxz: v3u

Swizzle4.xxz


xxzw: v4u

Swizzle4.xxzw


xxzx: v4u

Swizzle4.xxzx


xxzy: v4u

Swizzle4.xxzy


xxzz: v4u

Swizzle4.xxzz


xy: v2u

Swizzle4.xy


xyw: v3u

Swizzle4.xyw


xyww: v4u

Swizzle4.xyww


xywx: v4u

Swizzle4.xywx


xywy: v4u

Swizzle4.xywy


xywz: v4u

Swizzle4.xywz


xyx: v3u

Swizzle4.xyx


xyxw: v4u

Swizzle4.xyxw


xyxx: v4u

Swizzle4.xyxx


xyxy: v4u

Swizzle4.xyxy


xyxz: v4u

Swizzle4.xyxz


xyy: v3u

Swizzle4.xyy


xyyw: v4u

Swizzle4.xyyw


xyyx: v4u

Swizzle4.xyyx


xyyy: v4u

Swizzle4.xyyy


xyyz: v4u

Swizzle4.xyyz


xyz: v3u

Swizzle4.xyz


xyzw: v4u

Swizzle4.xyzw


xyzx: v4u

Swizzle4.xyzx


xyzy: v4u

Swizzle4.xyzy


xyzz: v4u

Swizzle4.xyzz


xz: v2u

Swizzle4.xz


xzw: v3u

Swizzle4.xzw


xzww: v4u

Swizzle4.xzww


xzwx: v4u

Swizzle4.xzwx


xzwy: v4u

Swizzle4.xzwy


xzwz: v4u

Swizzle4.xzwz


xzx: v3u

Swizzle4.xzx


xzxw: v4u

Swizzle4.xzxw


xzxx: v4u

Swizzle4.xzxx


xzxy: v4u

Swizzle4.xzxy


xzxz: v4u

Swizzle4.xzxz


xzy: v3u

Swizzle4.xzy


xzyw: v4u

Swizzle4.xzyw


xzyx: v4u

Swizzle4.xzyx


xzyy: v4u

Swizzle4.xzyy


xzyz: v4u

Swizzle4.xzyz


xzz: v3u

Swizzle4.xzz


xzzw: v4u

Swizzle4.xzzw


xzzx: v4u

Swizzle4.xzzx


xzzy: v4u

Swizzle4.xzzy


xzzz: v4u

Swizzle4.xzzz


y: number

packages/typegpu/src/data/wgslTypes.ts:412


yw: v2u

Swizzle4.yw


yww: v3u

Swizzle4.yww


ywww: v4u

Swizzle4.ywww


ywwx: v4u

Swizzle4.ywwx


ywwy: v4u

Swizzle4.ywwy


ywwz: v4u

Swizzle4.ywwz


ywx: v3u

Swizzle4.ywx


ywxw: v4u

Swizzle4.ywxw


ywxx: v4u

Swizzle4.ywxx


ywxy: v4u

Swizzle4.ywxy


ywxz: v4u

Swizzle4.ywxz


ywy: v3u

Swizzle4.ywy


ywyw: v4u

Swizzle4.ywyw


ywyx: v4u

Swizzle4.ywyx


ywyy: v4u

Swizzle4.ywyy


ywyz: v4u

Swizzle4.ywyz


ywz: v3u

Swizzle4.ywz


ywzw: v4u

Swizzle4.ywzw


ywzx: v4u

Swizzle4.ywzx


ywzy: v4u

Swizzle4.ywzy


ywzz: v4u

Swizzle4.ywzz


yx: v2u

Swizzle4.yx


yxw: v3u

Swizzle4.yxw


yxww: v4u

Swizzle4.yxww


yxwx: v4u

Swizzle4.yxwx


yxwy: v4u

Swizzle4.yxwy


yxwz: v4u

Swizzle4.yxwz


yxx: v3u

Swizzle4.yxx


yxxw: v4u

Swizzle4.yxxw


yxxx: v4u

Swizzle4.yxxx


yxxy: v4u

Swizzle4.yxxy


yxxz: v4u

Swizzle4.yxxz


yxy: v3u

Swizzle4.yxy


yxyw: v4u

Swizzle4.yxyw


yxyx: v4u

Swizzle4.yxyx


yxyy: v4u

Swizzle4.yxyy


yxyz: v4u

Swizzle4.yxyz


yxz: v3u

Swizzle4.yxz


yxzw: v4u

Swizzle4.yxzw


yxzx: v4u

Swizzle4.yxzx


yxzy: v4u

Swizzle4.yxzy


yxzz: v4u

Swizzle4.yxzz


yy: v2u

Swizzle4.yy


yyw: v3u

Swizzle4.yyw


yyww: v4u

Swizzle4.yyww


yywx: v4u

Swizzle4.yywx


yywy: v4u

Swizzle4.yywy


yywz: v4u

Swizzle4.yywz


yyx: v3u

Swizzle4.yyx


yyxw: v4u

Swizzle4.yyxw


yyxx: v4u

Swizzle4.yyxx


yyxy: v4u

Swizzle4.yyxy


yyxz: v4u

Swizzle4.yyxz


yyy: v3u

Swizzle4.yyy


yyyw: v4u

Swizzle4.yyyw


yyyx: v4u

Swizzle4.yyyx


yyyy: v4u

Swizzle4.yyyy


yyyz: v4u

Swizzle4.yyyz


yyz: v3u

Swizzle4.yyz


yyzw: v4u

Swizzle4.yyzw


yyzx: v4u

Swizzle4.yyzx


yyzy: v4u

Swizzle4.yyzy


yyzz: v4u

Swizzle4.yyzz


yz: v2u

Swizzle4.yz


yzw: v3u

Swizzle4.yzw


yzww: v4u

Swizzle4.yzww


yzwx: v4u

Swizzle4.yzwx


yzwy: v4u

Swizzle4.yzwy


yzwz: v4u

Swizzle4.yzwz


yzx: v3u

Swizzle4.yzx


yzxw: v4u

Swizzle4.yzxw


yzxx: v4u

Swizzle4.yzxx


yzxy: v4u

Swizzle4.yzxy


yzxz: v4u

Swizzle4.yzxz


yzy: v3u

Swizzle4.yzy


yzyw: v4u

Swizzle4.yzyw


yzyx: v4u

Swizzle4.yzyx


yzyy: v4u

Swizzle4.yzyy


yzyz: v4u

Swizzle4.yzyz


yzz: v3u

Swizzle4.yzz


yzzw: v4u

Swizzle4.yzzw


yzzx: v4u

Swizzle4.yzzx


yzzy: v4u

Swizzle4.yzzy


yzzz: v4u

Swizzle4.yzzz


z: number

packages/typegpu/src/data/wgslTypes.ts:413


zw: v2u

Swizzle4.zw


zww: v3u

Swizzle4.zww


zwww: v4u

Swizzle4.zwww


zwwx: v4u

Swizzle4.zwwx


zwwy: v4u

Swizzle4.zwwy


zwwz: v4u

Swizzle4.zwwz


zwx: v3u

Swizzle4.zwx


zwxw: v4u

Swizzle4.zwxw


zwxx: v4u

Swizzle4.zwxx


zwxy: v4u

Swizzle4.zwxy


zwxz: v4u

Swizzle4.zwxz


zwy: v3u

Swizzle4.zwy


zwyw: v4u

Swizzle4.zwyw


zwyx: v4u

Swizzle4.zwyx


zwyy: v4u

Swizzle4.zwyy


zwyz: v4u

Swizzle4.zwyz


zwz: v3u

Swizzle4.zwz


zwzw: v4u

Swizzle4.zwzw


zwzx: v4u

Swizzle4.zwzx


zwzy: v4u

Swizzle4.zwzy


zwzz: v4u

Swizzle4.zwzz


zx: v2u

Swizzle4.zx


zxw: v3u

Swizzle4.zxw


zxww: v4u

Swizzle4.zxww


zxwx: v4u

Swizzle4.zxwx


zxwy: v4u

Swizzle4.zxwy


zxwz: v4u

Swizzle4.zxwz


zxx: v3u

Swizzle4.zxx


zxxw: v4u

Swizzle4.zxxw


zxxx: v4u

Swizzle4.zxxx


zxxy: v4u

Swizzle4.zxxy


zxxz: v4u

Swizzle4.zxxz


zxy: v3u

Swizzle4.zxy


zxyw: v4u

Swizzle4.zxyw


zxyx: v4u

Swizzle4.zxyx


zxyy: v4u

Swizzle4.zxyy


zxyz: v4u

Swizzle4.zxyz


zxz: v3u

Swizzle4.zxz


zxzw: v4u

Swizzle4.zxzw


zxzx: v4u

Swizzle4.zxzx


zxzy: v4u

Swizzle4.zxzy


zxzz: v4u

Swizzle4.zxzz


zy: v2u

Swizzle4.zy


zyw: v3u

Swizzle4.zyw


zyww: v4u

Swizzle4.zyww


zywx: v4u

Swizzle4.zywx


zywy: v4u

Swizzle4.zywy


zywz: v4u

Swizzle4.zywz


zyx: v3u

Swizzle4.zyx


zyxw: v4u

Swizzle4.zyxw


zyxx: v4u

Swizzle4.zyxx


zyxy: v4u

Swizzle4.zyxy


zyxz: v4u

Swizzle4.zyxz


zyy: v3u

Swizzle4.zyy


zyyw: v4u

Swizzle4.zyyw


zyyx: v4u

Swizzle4.zyyx


zyyy: v4u

Swizzle4.zyyy


zyyz: v4u

Swizzle4.zyyz


zyz: v3u

Swizzle4.zyz


zyzw: v4u

Swizzle4.zyzw


zyzx: v4u

Swizzle4.zyzx


zyzy: v4u

Swizzle4.zyzy


zyzz: v4u

Swizzle4.zyzz


zz: v2u

Swizzle4.zz


zzw: v3u

Swizzle4.zzw


zzww: v4u

Swizzle4.zzww


zzwx: v4u

Swizzle4.zzwx


zzwy: v4u

Swizzle4.zzwy


zzwz: v4u

Swizzle4.zzwz


zzx: v3u

Swizzle4.zzx


zzxw: v4u

Swizzle4.zzxw


zzxx: v4u

Swizzle4.zzxx


zzxy: v4u

Swizzle4.zzxy


zzxz: v4u

Swizzle4.zzxz


zzy: v3u

Swizzle4.zzy


zzyw: v4u

Swizzle4.zzyw


zzyx: v4u

Swizzle4.zzyx


zzyy: v4u

Swizzle4.zzyy


zzyz: v4u

Swizzle4.zzyz


zzz: v3u

Swizzle4.zzz


zzzw: v4u

Swizzle4.zzzw


zzzx: v4u

Swizzle4.zzzx


zzzy: v4u

Swizzle4.zzzy


zzzz: v4u

Swizzle4.zzzz

[iterator](): ArrayIterator<number>

Iterator

ArrayIterator<number>

Tuple4.[iterator]

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2015.iterable.d.ts:78


[operatorMinus](lhs, rhs): v4u

number | v4u

number | v4u

v4u

vecInfixNotation.[operatorMinus]

packages/typegpu/src/data/wgslTypes.ts:67


[operatorPercent](lhs, rhs): v4u

number | v4u

number | v4u

v4u

vecInfixNotation.[operatorPercent]

packages/typegpu/src/data/wgslTypes.ts:70


[operatorPlus](lhs, rhs): v4u

number | v4u

number | v4u

v4u

vecInfixNotation.[operatorPlus]

packages/typegpu/src/data/wgslTypes.ts:66


[operatorSlash](lhs, rhs): v4u

number | v4u

number | v4u

v4u

vecInfixNotation.[operatorSlash]

packages/typegpu/src/data/wgslTypes.ts:69


[operatorStar](lhs, rhs): v4u

number | v4u | matBase

number | v4u | matBase

v4u

vecInfixNotation.[operatorStar]

packages/typegpu/src/data/wgslTypes.ts:68


add(other): v4u

number | v4u

v4u

vecInfixNotation.add

packages/typegpu/src/data/wgslTypes.ts:60


at(index): undefined | number

Returns the item located at the specified index.

number

The zero-based index of the desired code unit. A negative index will count back from the last item.

undefined | number

Tuple4.at

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2022.array.d.ts:24


concat(…items): number[]

Combines two or more arrays. This method returns a new array without modifying any existing arrays.

ConcatArray<number>[]

Additional arrays and/or items to add to the end of the array.

number[]

Tuple4.concat

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1353

concat(…items): number[]

Combines two or more arrays. This method returns a new array without modifying any existing arrays.

…(number | ConcatArray<number>)[]

Additional arrays and/or items to add to the end of the array.

number[]

Tuple4.concat

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1359


copyWithin(target, start, end?): this

Returns the this object after copying a section of the array identified by start and end to the same array starting at position target

number

If target is negative, it is treated as length+target where length is the length of the array.

number

If start is negative, it is treated as length+start. If end is negative, it is treated as length+end.

number

If not specified, length of the this object is used as its default value.

this

Tuple4.copyWithin

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2015.core.d.ts:62


div(other): v4u

number | v4u

v4u

vecInfixNotation.div

packages/typegpu/src/data/wgslTypes.ts:63


entries(): ArrayIterator<[number, number]>

Returns an iterable of key, value pairs for every entry in the array

ArrayIterator<[number, number]>

Tuple4.entries

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2015.iterable.d.ts:83


every<S>(predicate, thisArg?): this is S[]

Determines whether all the members of an array satisfy the specified test.

S extends number

(value, index, array) => value is S

A function that accepts up to three arguments. The every method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value false, or until the end of the array.

any

An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.

this is S[]

Tuple4.every

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1440

every(predicate, thisArg?): boolean

Determines whether all the members of an array satisfy the specified test.

(value, index, array) => unknown

A function that accepts up to three arguments. The every method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value false, or until the end of the array.

any

An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.

boolean

Tuple4.every

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1449


fill(value, start?, end?): this

Changes all array elements from start to end index to a static value and returns the modified array

number

value to fill array section with

number

index to start filling the array at. If start is negative, it is treated as length+start where length is the length of the array.

number

index to stop filling the array at. If end is negative, it is treated as length+end.

this

Tuple4.fill

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2015.core.d.ts:51


filter<S>(predicate, thisArg?): S[]

Returns the elements of an array that meet the condition specified in a callback function.

S extends number

(value, index, array) => value is S

A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.

any

An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.

S[]

Tuple4.filter

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1476

filter(predicate, thisArg?): number[]

Returns the elements of an array that meet the condition specified in a callback function.

(value, index, array) => unknown

A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.

any

An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.

number[]

Tuple4.filter

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1482


find<S>(predicate, thisArg?): undefined | S

Returns the value of the first element in the array where predicate is true, and undefined otherwise.

S extends number

(value, index, obj) => value is S

find calls predicate once for each element of the array, in ascending order, until it finds one where predicate returns true. If such an element is found, find immediately returns that element value. Otherwise, find returns undefined.

any

If provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead.

undefined | S

Tuple4.find

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2015.core.d.ts:29

find(predicate, thisArg?): undefined | number

(value, index, obj) => unknown

any

undefined | number

Tuple4.find

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2015.core.d.ts:30


findIndex(predicate, thisArg?): number

Returns the index of the first element in the array where predicate is true, and -1 otherwise.

(value, index, obj) => unknown

find calls predicate once for each element of the array, in ascending order, until it finds one where predicate returns true. If such an element is found, findIndex immediately returns that element index. Otherwise, findIndex returns -1.

any

If provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead.

number

Tuple4.findIndex

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2015.core.d.ts:41


findLast<S>(predicate, thisArg?): undefined | S

Returns the value of the last element in the array where predicate is true, and undefined otherwise.

S extends number

(value, index, array) => value is S

findLast calls predicate once for each element of the array, in descending order, until it finds one where predicate returns true. If such an element is found, findLast immediately returns that element value. Otherwise, findLast returns undefined.

any

If provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead.

undefined | S

Tuple4.findLast

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2023.array.d.ts:29

findLast(predicate, thisArg?): undefined | number

(value, index, array) => unknown

any

undefined | number

Tuple4.findLast

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2023.array.d.ts:30


findLastIndex(predicate, thisArg?): number

Returns the index of the last element in the array where predicate is true, and -1 otherwise.

(value, index, array) => unknown

findLastIndex calls predicate once for each element of the array, in descending order, until it finds one where predicate returns true. If such an element is found, findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.

any

If provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead.

number

Tuple4.findLastIndex

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2023.array.d.ts:41


flat<A, D>(this, depth?): FlatArray<A, D>[]

Returns a new array with all sub-array elements concatenated into it recursively up to the specified depth.

A

D extends number = 1

A

D

The maximum recursion depth

FlatArray<A, D>[]

Tuple4.flat

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2019.array.d.ts:75


flatMap<U, This>(callback, thisArg?): U[]

Calls a defined callback function on each element of an array. Then, flattens the result into a new array. This is identical to a map followed by flat with depth 1.

U

This = undefined

(this, value, index, array) => U | readonly U[]

A function that accepts up to three arguments. The flatMap method calls the callback function one time for each element in the array.

This

An object to which the this keyword can refer in the callback function. If thisArg is omitted, undefined is used as the this value.

U[]

Tuple4.flatMap

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2019.array.d.ts:64


forEach(callbackfn, thisArg?): void

Performs the specified action for each element in an array.

(value, index, array) => void

A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.

any

An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.

void

Tuple4.forEach

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1464


includes(searchElement, fromIndex?): boolean

Determines whether an array includes a certain element, returning true or false as appropriate.

number

The element to search for.

number

The position in this array at which to begin searching for searchElement.

boolean

Tuple4.includes

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2016.array.include.d.ts:25


indexOf(searchElement, fromIndex?): number

Returns the index of the first occurrence of a value in an array, or -1 if it is not present.

number

The value to locate in the array.

number

The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.

number

Tuple4.indexOf

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1425


join(separator?): string

Adds all the elements of an array into a string, separated by the specified separator string.

string

A string used to separate one element of the array from the next in the resulting string. If omitted, the array elements are separated with a comma.

string

Tuple4.join

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1364


keys(): ArrayIterator<number>

Returns an iterable of keys in the array

ArrayIterator<number>

Tuple4.keys

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2015.iterable.d.ts:88


lastIndexOf(searchElement, fromIndex?): number

Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present.

number

The value to locate in the array.

number

The array index at which to begin searching backward. If fromIndex is omitted, the search starts at the last index in the array.

number

Tuple4.lastIndexOf

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1431


map<U>(callbackfn, thisArg?): U[]

Calls a defined callback function on each element of an array, and returns an array that contains the results.

U

(value, index, array) => U

A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.

any

An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.

U[]

Tuple4.map

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1470


mod(other): v4u

number | v4u

v4u

vecInfixNotation.mod

packages/typegpu/src/data/wgslTypes.ts:64


mul(other): v4u

number | v4u | matBase

v4u

vecInfixNotation.mul

packages/typegpu/src/data/wgslTypes.ts:62


pop(): undefined | number

Removes the last element from an array and returns it. If the array is empty, undefined is returned and the array is not modified.

undefined | number

Tuple4.pop

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1342


push(…items): number

Appends new elements to the end of an array, and returns the new length of the array.

number[]

New elements to add to the array.

number

Tuple4.push

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1347


reduce(callbackfn): number

Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

(previousValue, currentValue, currentIndex, array) => number

A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.

number

Tuple4.reduce

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1488

reduce(callbackfn, initialValue): number

(previousValue, currentValue, currentIndex, array) => number

number

number

Tuple4.reduce

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1489

reduce<U>(callbackfn, initialValue): U

Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

U

(previousValue, currentValue, currentIndex, array) => U

A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.

U

If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.

U

Tuple4.reduce

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1495


reduceRight(callbackfn): number

Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

(previousValue, currentValue, currentIndex, array) => number

A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.

number

Tuple4.reduceRight

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1501

reduceRight(callbackfn, initialValue): number

(previousValue, currentValue, currentIndex, array) => number

number

number

Tuple4.reduceRight

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1502

reduceRight<U>(callbackfn, initialValue): U

Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

U

(previousValue, currentValue, currentIndex, array) => U

A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.

U

If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.

U

Tuple4.reduceRight

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1508


reverse(): number[]

Reverses the elements in an array in place. This method mutates the array and returns a reference to the same array.

number[]

Tuple4.reverse

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1369


shift(): undefined | number

Removes the first element from an array and returns it. If the array is empty, undefined is returned and the array is not modified.

undefined | number

Tuple4.shift

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1374


slice(start?, end?): number[]

Returns a copy of a section of an array. For both start and end, a negative index can be used to indicate an offset from the end of the array. For example, -2 refers to the second to last element of the array.

number

The beginning index of the specified portion of the array. If start is undefined, then the slice begins at index 0.

number

The end index of the specified portion of the array. This is exclusive of the element at the index ‘end’. If end is undefined, then the slice extends to the end of the array.

number[]

Tuple4.slice

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1384


some(predicate, thisArg?): boolean

Determines whether the specified callback function returns true for any element of an array.

(value, index, array) => unknown

A function that accepts up to three arguments. The some method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value true, or until the end of the array.

any

An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.

boolean

Tuple4.some

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1458


sort(compareFn?): this

Sorts an array in place. This method mutates the array and returns a reference to the same array.

(a, b) => number

Function used to determine the order of the elements. It is expected to return a negative value if the first argument is less than the second argument, zero if they’re equal, and a positive value otherwise. If omitted, the elements are sorted in ascending, UTF-16 code unit order.

[11,2,22,1].sort((a, b) => a - b)

this

Tuple4.sort

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1395


splice(start, deleteCount?): number[]

Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.

number

The zero-based location in the array from which to start removing elements.

number

The number of elements to remove. Omitting this argument will remove all elements from the start paramater location to end of the array. If value of this argument is either a negative number, zero, undefined, or a type that cannot be converted to an integer, the function will evaluate the argument as zero and not remove any elements.

number[]

An array containing the elements that were deleted.

Tuple4.splice

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1404

splice(start, deleteCount, …items): number[]

Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.

number

The zero-based location in the array from which to start removing elements.

number

The number of elements to remove. If value of this argument is either a negative number, zero, undefined, or a type that cannot be converted to an integer, the function will evaluate the argument as zero and not remove any elements.

number[]

Elements to insert into the array in place of the deleted elements.

number[]

An array containing the elements that were deleted.

Tuple4.splice

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1414


sub(other): v4u

number | v4u

v4u

vecInfixNotation.sub

packages/typegpu/src/data/wgslTypes.ts:61


toLocaleString(): string

Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.

string

Tuple4.toLocaleString

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1337

toLocaleString(locales, options?): string

string | string[]

NumberFormatOptions & DateTimeFormatOptions

string

Tuple4.toLocaleString

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2015.core.d.ts:64


toReversed(): number[]

Returns a copy of an array with its elements reversed.

number[]

Tuple4.toReversed

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2023.array.d.ts:46


toSorted(compareFn?): number[]

Returns a copy of an array with its elements sorted.

(a, b) => number

Function used to determine the order of the elements. It is expected to return a negative value if the first argument is less than the second argument, zero if they’re equal, and a positive value otherwise. If omitted, the elements are sorted in ascending, UTF-16 code unit order.

[11, 2, 22, 1].toSorted((a, b) => a - b) // [1, 2, 11, 22]

number[]

Tuple4.toSorted

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2023.array.d.ts:57


toSpliced(start, deleteCount, …items): number[]

Copies an array and removes elements and, if necessary, inserts new elements in their place. Returns the copied array.

number

The zero-based location in the array from which to start removing elements.

number

The number of elements to remove.

number[]

Elements to insert into the copied array in place of the deleted elements.

number[]

The copied array.

Tuple4.toSpliced

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2023.array.d.ts:66

toSpliced(start, deleteCount?): number[]

Copies an array and removes elements while returning the remaining elements.

number

The zero-based location in the array from which to start removing elements.

number

The number of elements to remove.

number[]

A copy of the original array with the remaining elements.

Tuple4.toSpliced

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2023.array.d.ts:74


toString(): string

Returns a string representation of an array.

string

Tuple4.toString

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1333


unshift(…items): number

Inserts new elements at the start of an array, and returns the new length of the array.

number[]

Elements to insert at the start of the array.

number

Tuple4.unshift

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es5.d.ts:1419


values(): ArrayIterator<number>

Returns an iterable of values in the array

ArrayIterator<number>

Tuple4.values

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2015.iterable.d.ts:93


with(index, value): number[]

Copies an array, then overwrites the value at the provided index with the given value. If the index is negative, then it replaces from the end of the array.

number

The index of the value to overwrite. If the index is negative, then it replaces from the end of the array.

number

The value to write into the copied array.

number[]

The copied array with the updated value.

Tuple4.with

node_modules/.pnpm/[email protected]/node_modules/tsover/lib/lib.es2023.array.d.ts:85