// …
const test = device.createTexture({
size: [128],
format: "r8uint",
dimension: "1d",
usage: GPUTextureUsage.COPY_SRC,
});
console.log(test.depthOrArrayLayers); // 1GPUTexture: depthOrArrayLayers property / notebook
GPUTexture: depthOrArrayLayers property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.