跳转到内容
查看源码

Int自动生成

分类:类型

32 位整数;溢出会使该元素失败,add_wrap 等函数可回绕。

Int

A 32-bit integer; an overflow fails the element, add_wrap and its kin wrap.

返回 函数 分类
Int abs(x: Int) 数学函数
Int add_wrap(a: Int, b: Int) 数学函数
T at(field: Rows<T>, index: Int) Field 读取
Int bits(x: Float) 数学函数
Bool button(n: Int) 上下文函数
Int clamp(x: Int, low: Int, high: Int) 数学函数
IVec2 clamp(x: IVec2, low: Int, high: Int) 数学函数
IVec3 clamp(x: IVec3, low: Int, high: Int) 数学函数
IVec4 clamp(x: IVec4, low: Int, high: Int) 数学函数
Int clz(x: Int) 数学函数
Int count(field: Rows<T>) Field 读取
Int count(field: Grid<T>) Field 读取
Int count(field: Volume<T>) Field 读取
Int ctz(x: Int) 数学函数
Int domain() 上下文函数
Double double(x: Int) 类型转换
Int element() 上下文函数
T exchange(value: T, lane: Int) 组内协作
T fetch(field: Rows<T>, index: Int) Field 读取
Float float(x: Int) 类型转换
Float from_bits(x: Int) 数学函数
Int idomain() 上下文函数
Int index() 上下文函数
Int int(x: Float) 类型转换
Int int(x: Bool) 类型转换
Int int(x: Double) 类型转换
Int int(x: Long) 类型转换
Int isize(field: Rows<T>) Field 读取
IVec2 ivec2(x: Int, y: Int) 构造函数
IVec3 ivec3(x: Int, y: Int, z: Int) 构造函数
IVec3 ivec3(xy: IVec2, z: Int) 构造函数
IVec3 ivec3(x: Int, yz: IVec2) 构造函数
IVec4 ivec4(x: Int, y: Int, z: Int, w: Int) 构造函数
IVec4 ivec4(xyz: IVec3, w: Int) 构造函数
Bool key(code: Int) 上下文函数
Int lane() 组内协作
Long long(x: Int) 类型转换
Int max(a: Int, b: Int) 数学函数
IVec2 max(a: IVec2, b: Int) 数学函数
IVec3 max(a: IVec3, b: Int) 数学函数
IVec4 max(a: IVec4, b: Int) 数学函数
Int min(a: Int, b: Int) 数学函数
IVec2 min(a: IVec2, b: Int) 数学函数
IVec3 min(a: IVec3, b: Int) 数学函数
IVec4 min(a: IVec4, b: Int) 数学函数
Int mul_wrap(a: Int, b: Int) 数学函数
Int mulhi(a: Int, b: Int) 数学函数
Int pads() 上下文函数
Int popcount(x: Int) 数学函数
T put(memory: Rows<T>, index: Int, value: T) memory 写入
Int queued() 上下文函数
Int rotl(x: Int, n: Int) 数学函数
Int rotr(x: Int, n: Int) 数学函数
Int sign(x: Int) 数学函数
Vec2 stick(n: Int) 上下文函数
Int sub_wrap(a: Int, b: Int) 数学函数
Int typed(k: Int) 上下文函数
Int udiv(a: Int, b: Int) 数学函数
Bool ult(a: Int, b: Int) 数学函数
Int umulhi(a: Int, b: Int) 数学函数
Int urem(a: Int, b: Int) 数学函数
Vec2 vec2(x: Int, y: Int) 构造函数
Vec3 vec3(x: Int, y: Int, z: Int) 构造函数
Vec4 vec4(x: Int, y: Int, z: Int, w: Int) 构造函数