UNPKG

@animech-public/playcanvas

Version:
2 lines (1 loc) 366 B
import{BUFFERUSAGE_INDEX as t,BUFFERUSAGE_STORAGE as o,INDEXFORMAT_UINT16 as r}from"../constants.js";import{WebgpuBuffer as s}from"./webgpu-buffer.js";class e extends s{constructor(s,e){super(t|(null!=e&&e.storage?o:0)),this.format=null,this.format=s.format===r?"uint16":"uint32"}unlock(t){const o=t.device;super.unlock(o,t.storage)}}export{e as WebgpuIndexBuffer};