// wgpu-state.js export function createState(config) { return { device: null, pipeline: null, vertexBuffer: null, indexBuffer: null, uniformBuffer: null, texture: null, sampler: null, bindGroup: null, uniformValues: new Float32Array(config.uniformBufferSize / 4), matrix: null, numGlyphs: 0, width: 0, height: 0 }; }