const useScratchSource: ( format: UniformType, options?: { flags?: number, readWrite?: boolean, reserve?: number, }, ) => [StorageSource, (x: number) => void]
packages / workbench / src / hooks / useScratchSource.ts