Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/caviar/web/src/renderers/webgpu/util.ts>loadTexture

⚡ Blazing fast, modern, Game Engine powered by WebGPU for Deno and the browser
Go to Latest
function loadTexture
import { loadTexture } from "https://deno.land/x/caviar@2.6.0/web/src/renderers/webgpu/util.ts";

Parameters

device: GPUDevice
source: ImageBitmap
optional
mipmapShaderModule: GPUShaderModule
optional
genMipmap = [UNSUPPORTED]