You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When viewing a texture's bytes in the buffer viewer it is intentional that only one subresource is displayed at a time, since the physical layout of subresources is not necessarily defined or consistent. That commit clarifies this (and disables the byte offset/length fields as those are not supported for textures).
If you want to save the whole texture to a file without conversion, you can save to dds which supports all texture formats natively and has a defined layout. You could also use a python extension to save to a custom format if you want the raw bits with no headers and custom alignment/ordering.
Description
Inspecting an array texture as binary and saving it to a file only saves one layer of the whole texture.
Steps to reproduce
When inspecting an array texture as binary:
This has 24 layers, hence the total size should be 686128*24 = 7990272
Exploring as binary shows the whole thing:
![image](https://private-user-images.githubusercontent.com/6265307/285640538-26a93c8c-ef26-484e-85ff-739fac682b48.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE1ODY5NTUsIm5iZiI6MTcyMTU4NjY1NSwicGF0aCI6Ii82MjY1MzA3LzI4NTY0MDUzOC0yNmE5M2M4Yy1lZjI2LTQ4NGUtODVmZi03MzlmYWM2ODJiNDgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcyMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MjFUMTgzMDU1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YjI0NDA5NDU3N2NlMWQzYmZmNWQwNjdiZTA2MDRhNjA5ZWU1ZTU0YWUzMDc1MjViM2EwY2M0NDk1YmI5MDk4OSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.0vKprhMEwvVAEeYbMZGa-qG7GxlrSgp_B2CxfIQU7hw)
![image](https://private-user-images.githubusercontent.com/6265307/285640610-65e7e7d8-c056-4dfc-9c75-60d2b64e2ae0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE1ODY5NTUsIm5iZiI6MTcyMTU4NjY1NSwicGF0aCI6Ii82MjY1MzA3LzI4NTY0MDYxMC02NWU3ZTdkOC1jMDU2LTRkZmMtOWM3NS02MGQyYjY0ZTJhZTAucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcyMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MjFUMTgzMDU1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YjBiMWRkOTMyMjFkY2VhOTUzMmM1N2VlYmVhODE3NjBjNTFmNjU1ZGE3MmQ4ZTdjMTdlMjQwZDcyODQ4ZjQ4MSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.Cm_-Y4Nw-D21Mk7NbaMmLO88r4DcFCeaL7Z4EF76sSE)
But RMB -> Export to Bytes
Only saves one layer:
332928 save_data.bin
7990272 / 24 = 332928
Either the whole texture should be saved, or an option to save either the whole texture or the current layers should be offered.
I found this error while trying to workaround #3148, by the way.
Environment
The text was updated successfully, but these errors were encountered: