Readonly deviceOptional profilingSet or get the profiling configuration.
Optional mode?: "default" | "off"Set or get the profiling mode.
'off'
Optional ondata?: ((data: WebGpuProfilingDataV1) => void)Set or get a callback function when a profiling data is received. If not set, the profiling data will be printed to console.
Optional profilingSet or get the profiling mode.
Use env.webgpu.profiling.mode instead. If env.webgpu.profiling.mode is set, this property will be
ignored.
Optional validateSet or get whether validate input content.
false
Generated using TypeDoc
Get the device for WebGPU.
When use with TypeScript, the type of this property is
GPUDevicedefined in "@webgpu/types". Useconst device = env.webgpu.device as GPUDevice;in TypeScript to access this property with correct type.see comments on GpuBufferType for more details about why not use types defined in "@webgpu/types".