-
-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
There were numerous problems with the previous effort to add support for linear views of sRGB storage textures. Here's another attempt: - Images are always created with the linear version of their format. - The default texture view uses the sRGB format if the parent is sRGB. - Use ImageViewUsageCreateInfo to specify the usage for render/storage views. - sRGB image views always have their storage bit forcibly cleared. The storage view now behaves more like the existing renderView -- if we detect that you couldn't use the default texture view for storage, we'll create one that is guaranteed to be usable for storage bindings (by clearing the sRGB flag on it).
- Loading branch information
1 parent
6da3f8e
commit d375e96
Showing
3 changed files
with
82 additions
and
44 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