-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TextureUtils: Add WebGPU version. #29348
Conversation
@@ -83,6 +83,7 @@ export function decompress( texture, maxTextureSize = Infinity, renderer = null | |||
readableTexture.magFilter = texture.magFilter; | |||
readableTexture.wrapS = texture.wrapS; | |||
readableTexture.wrapT = texture.wrapT; | |||
readableTexture.colorSpace = texture.colorSpace; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's better for consistency if the color space property of the original texture is retained.
let _renderer; | ||
const _quadMesh = /*@__PURE__*/ new QuadMesh(); | ||
|
||
export async function decompress( blitTexture, maxTextureSize = Infinity, renderer = null ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new decompress()
function is now async since an internal WebGPURenderer
has to call init()
before performing the decompression.
Related issue: #29295
Description
This PR adds a WebGPU version of.
TextureUtils
.