Source code for scfile.formats.dds.enums
from enum import IntFlag
[docs]
class CubemapFlag(IntFlag):
POSITIVE_X = POSX = 0x400
NEGATIVE_X = NEGX = 0x800
POSITIVE_Y = POSY = 0x1000
NEGATIVE_Y = NEGY = 0x2000
POSITIVE_Z = POSZ = 0x4000
NEGATIVE_Z = NEGZ = 0x8000
[docs]
class DXGIDimension(IntFlag):
BUFFER = 0x1
TEXTURE1D = 0x2
TEXTURE2D = 0x3
TEXTURE3D = 0x4
[docs]
class ChannelMask(IntFlag):
RED = R = 0x000000FF
GREEN = G = 0x0000FF00
BLUE = B = 0x00FF0000
ALPHA = A = 0xFF000000
RGBA8 = (ChannelMask.R, ChannelMask.G, ChannelMask.B, ChannelMask.A)
BGRA8 = (ChannelMask.B, ChannelMask.G, ChannelMask.R, ChannelMask.A)