// …
const depthTexture = device.createTexture({
size: [640, 480],
format: "depth24plus",
usage: GPUTextureUsage.RENDER_ATTACHMENT,
});
console.log(depthTexture.height); // 480GPUTexture: height property / notebook
GPUTexture: height property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.