ImageFlags.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #include <AzCore/base.h>
  10. namespace ImageProcessingAtom
  11. {
  12. // flags to propagate from the RC to the engine through GetImageFlags()
  13. // 32bit bitmask, numbers should not change as engine relies on them
  14. const static AZ::u32 EIF_Cubemap = 0x1;
  15. const static AZ::u32 EIF_Volumetexture = 0x2;
  16. const static AZ::u32 EIF_Decal = 0x4; // this is usually set through the preset
  17. const static AZ::u32 EIF_Greyscale = 0x8; // hint for the engine (e.g. greyscale light beams can be applied to shadow mask), can be for DXT1 because compression artfacts don't count as color
  18. const static AZ::u32 EIF_SupressEngineReduce = 0x10; // info for the engine: don't reduce texture resolution on this texture
  19. const static AZ::u32 EIF_HDR = 0x40; // the image contains HDR data
  20. const static AZ::u32 EIF_AttachedAlpha = 0x400; // deprecated: info for the engine: it's a texture with attached alpha channel
  21. const static AZ::u32 EIF_SRGBRead = 0x800; // info for the engine: if gamma corrected rendering is on, this texture requires SRGBRead (it's not stored in linear)
  22. const static AZ::u32 EIF_DontResize = 0x8000; // info for the engine: for dds textures that shouldn't be resized
  23. const static AZ::u32 EIF_RenormalizedTexture = 0x10000; // info for the engine: for dds textures that have renormalized color range
  24. const static AZ::u32 EIF_CafeNative = 0x20000; // info for the engine: native Cafe texture format
  25. const static AZ::u32 EIF_RestrictedPlatformONative = 0x40000; // native tiled texture for restrict platform O
  26. const static AZ::u32 EIF_Tiled = 0x80000; // info for the engine: texture has been tiled for the platform
  27. const static AZ::u32 EIF_RestrictedPlatformDNative = 0x100000; // native tiled texture for restrict platform D
  28. const static AZ::u32 EIF_Splitted = 0x200000; // info for the engine: this texture is splitted
  29. const static AZ::u32 EIF_Colormodel = 0x7000000; // info for the engine: bitmask: colormodel used in the texture
  30. const static AZ::u32 EIF_Colormodel_RGB = 0x0000000; // info for the engine: colormodel is RGB (default)
  31. const static AZ::u32 EIF_Colormodel_CIE = 0x1000000; // info for the engine: colormodel is CIE (used for terrain)
  32. const static AZ::u32 EIF_Colormodel_YCC = 0x2000000; // info for the engine: colormodel is Y'CbCr (used for reflectance)
  33. const static AZ::u32 EIF_Colormodel_YFF = 0x3000000; // info for the engine: colormodel is Y'FbFr (used for reflectance)
  34. const static AZ::u32 EIF_Colormodel_IRB = 0x4000000; // info for the engine: colormodel is IRB (used for reflectance)
  35. }