antvis / g-device-api

A Device API references WebGPU implementations
https://observablehq.com/@antv/g-device-api
11 stars 1 forks source link

WebGPU 支持生成 mipmap #200

Open xiaoiver opened 3 months ago

xiaoiver commented 3 months ago

不同于 WebGL,WebGPU 中并没有原生提供 generateMipmap 方法,需要在 GPU 侧手动生成:

https://webgpufundamentals.org/webgpu/lessons/webgpu-importing-textures.html

Issues-translate-bot commented 3 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Title: WebGPU supports generating mipmaps

Unlike WebGL, the generateMipmap method is not natively provided in WebGPU and needs to be generated manually on the GPU side:

https://webgpufundamentals.org/webgpu/lessons/webgpu-importing-textures.html