typegpu
Version:
A thin layer between JS and WebGPU/WGSL that improves development experience and allows for faster iteration.
30 lines (29 loc) • 2.13 kB
JavaScript
/**
* @module typegpu/data
*/
// NOTE: This is a barrel file, internal files should not import things from this file
// oxlint-disable-next-line import/no-unassigned-import -- this import has side effects
import "./assignInfixOperators.js";
export { bool, f16, f32, i32, u16, u32 } from "./numeric.js";
export { isAlignAttrib, isAtomic, isBuiltinAttrib, isDecorated, isInterpolateAttrib, isInvariantAttrib, isLocationAttrib, isPtr, isSizeAttrib, isWgslArray, isWgslData, isWgslStruct, Void, } from "./wgslTypes.js";
export { struct } from "./struct.js";
export { arrayOf } from "./array.js";
export { ptrFn, ptrHandle, ptrPrivate, ptrStorage, ptrUniform, ptrWorkgroup } from "./ptr.js";
export { texture1d, texture2d, texture2dArray, texture3d, textureCube, textureCubeArray, textureDepth2d, textureDepth2dArray, textureDepthCube, textureDepthCubeArray, textureDepthMultisampled2d, textureExternal, textureMultisampled2d, textureStorage1d, textureStorage2d, textureStorage2dArray, textureStorage3d, } from "./texture.js";
export { comparisonSampler, sampler, } from "./sampler.js";
export { vec2b, vec2f, vec2h, vec2i, vec2u, vec3b, vec3f, vec3h, vec3i, vec3u, vec4b, vec4f, vec4h, vec4i, vec4u, } from "./vector.js";
export { disarrayOf } from "./disarray.js";
export { unstruct } from "./unstruct.js";
export { mat2x2f, mat3x3f, mat4x4f, matToArray } from "./matrix.js";
export * from "./vertexFormatData.js";
export { atomic } from "./atomic.js";
export { _ref as ref } from "./ref.js";
export { align, interpolate, invariant, isBuiltin, location, size, } from "./attributes.js";
export { isData, isDisarray, isLooseData, isLooseDecorated, isUnstruct } from "./dataTypes.js";
export { PUBLIC_sizeOf as sizeOf } from "./sizeOf.js";
export { PUBLIC_isContiguous as isContiguous } from "./isContiguous.js";
export { PUBLIC_getLongestContiguousPrefix as getLongestContiguousPrefix } from "./getLongestContiguousPrefix.js";
export { memoryLayoutOf } from "./offsetUtils.js";
export { PUBLIC_alignmentOf as alignmentOf } from "./alignmentOf.js";
export { builtin } from "../builtin.js";
export { deepEqual } from "./deepEqual.js";