Skip to content
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

DXT internal format size missing #140

Closed
ivanpopelyshev opened this issue Jan 28, 2020 · 5 comments · Fixed by #141
Closed

DXT internal format size missing #140

ivanpopelyshev opened this issue Jan 28, 2020 · 5 comments · Fixed by #141
Assignees
Labels

Comments

@ivanpopelyshev
Copy link
Contributor

ivanpopelyshev commented Jan 28, 2020

Thanks from PixiJS team for a wonderful tool!

I'm debugging an app with big number of .dds resources, and I found that baseRecorder doesnt contain the size for most of compressed texture formats.

this.byteSizePerInternalFormat = {

In my case its COMPRESSED_RGBA_S3TC_DXT5_EXT.

The size is defaulting to 4:

return bytesPerElements || 4;

@Busyrev
Copy link

Busyrev commented Jan 28, 2020

I think that it should be better to show warning to user, not just shallow unknown texture format here

return bytesPerElements || 4;

@ivanpopelyshev
Copy link
Contributor Author

Btw, it also doesnt take into account type of texture in case of WebGL1: FLOAT textures there have internalFormat RGBA and not RGBA32F.

@sebavan
Copy link
Member

sebavan commented Jan 28, 2020

Yup, totally agree with that, unfortunately I am totally short on time these days, do you want to create a PR for it ?

@ivanpopelyshev
Copy link
Contributor Author

I'm on it

@ivanpopelyshev
Copy link
Contributor Author

ivanpopelyshev commented Jan 29, 2020

Btw, its not a bug. According to what I saw in the source code - its more of a feature-request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants