需要支持压缩纹理的载入,期望用法如下:
const texture = device.createTexture({
format: Format.BC1, // 压缩格式
width,
height,
usage: TextureUsage.RENDER_TARGET,
});
texture.setImageData([data]);
目前 WebGL Device 实现默认已经尝试开启扩展 WEBGL_compressed_texture_s3tc 和 WEBGL_compressed_texture_s3tc_srgb
https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Compressed_texture_formats
https://loaders.gl/docs/modules/textures/api-reference/compressed-texture-loader
https://toji.github.io/texture-tester/
需要支持压缩纹理的载入,期望用法如下:
目前 WebGL Device 实现默认已经尝试开启扩展
WEBGL_compressed_texture_s3tc和WEBGL_compressed_texture_s3tc_srgbhttps://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Compressed_texture_formats
https://loaders.gl/docs/modules/textures/api-reference/compressed-texture-loader
https://toji.github.io/texture-tester/