-
Notifications
You must be signed in to change notification settings - Fork 442
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce ImageFlags to annotate cube map and array images.
With the intention that those will eventually contain also things like YUp / YDown, PremultipliedAlpha and such. This commit is mostly just busywork, wiring this into [Compressed]Image, [Compressed]ImageView and Trade::ImageData and ensuring the flags get correctly propagated during moves and conversions. Unfortunately in case of Trade::ImageData it meant deprecating the current set of constructor in order to insert an ImageFlags parameter before the importer state pointer. The only non-trivial piece of logic is when a 2D [Compressed]ImageView gets converted to a 3D one, then the Array bit is implicitly dropped, as 2D arrays of 1D images are not really a thing. Instead, it's now possible to add new flags when doing the conversion -- for example to turn a 2D image to a (single-layer) 2D array image.
- Loading branch information
Showing
18 changed files
with
1,332 additions
and
269 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.