// Note: Types ensure every field is specified.
/* eslint-disable-next-line @typescript-eslint/no-unused-vars */
function checkType<T>(_: T) {}
const BufferUsage = {
MAP_READ: 0 x0001,
MAP_WRITE: 0 x0002,
COPY_SRC: 0 x0004,
COPY_DST: 0 x0008,
INDEX: 0 x0010,
VERTEX: 0 x0020,
UNIFORM: 0 x0040,
STORAGE: 0 x0080,
INDIRECT: 0 x0100,
QUERY_RESOLVE: 0 x0200,
} as const ;
checkType<typeof GPUBufferUsage>(BufferUsage);
const TextureUsage = {
COPY_SRC: 0 x01,
COPY_DST: 0 x02,
TEXTURE_BINDING: 0 x04,
SAMPLED: 0 x04,
STORAGE_BINDING: 0 x08,
STORAGE: 0 x08,
RENDER_ATTACHMENT: 0 x10,
} as const ;
checkType<typeof GPUTextureUsage>(TextureUsage);
const ColorWrite = {
RED: 0 x1,
GREEN: 0 x2,
BLUE: 0 x4,
ALPHA: 0 x8,
ALL: 0 xf,
} as const ;
checkType<typeof GPUColorWrite>(ColorWrite);
const ShaderStage = {
VERTEX: 0 x1,
FRAGMENT: 0 x2,
COMPUTE: 0 x4,
} as const ;
checkType<typeof GPUShaderStage>(ShaderStage);
const MapMode = {
READ: 0 x1,
WRITE: 0 x2,
} as const ;
checkType<typeof GPUMapMode>(MapMode);
export const GPUConst = {
BufferUsage,
TextureUsage,
ColorWrite,
ShaderStage,
MapMode,
} as const ;
export const kMaxUnsignedLongValue = 4294967295 ;
export const kMaxUnsignedLongLongValue = Number.MAX_SAFE_INTEGER;
export const kInterpolationSampling = ['center' , 'centroid' , 'sample' , 'first' , 'either' ] as const ;
export const kInterpolationType = ['perspective' , 'linear' , 'flat' ] as const ;
export type InterpolationType = (typeof kInterpolationType)[number];
export type InterpolationSampling = (typeof kInterpolationSampling)[number];
Messung V0.5 in Prozent C=94 H=96 G=94
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet am 2026-06-10)
¤
*© Formatika GbR, Deutschland