-
Notifications
You must be signed in to change notification settings - Fork 1
Gfx3MipmapManager
jay19240 edited this page Dec 11, 2024
·
1 revision
- new Gfx3MipmapManager(): Gfx3MipmapManager
-
createTextureFromBitmap(bitmap, is8bit: boolean, samplerDescriptor: GPUSamplerDescriptor): Gfx3Texture
- bitmap: The source image.
- is8bit: Indicates whether the texture should be treated as an 8-bit texture or not.
- samplerDescriptor: The sampler texture configuration, see https://www.w3.org/TR/webgpu/#GPUSamplerDescriptor.
-
generateMipmap(texture: GPUTexture): void
- texture: Texture to generate mipmaps for.