mirror of
https://github.com/WerWolv/ImHex-Patterns.git
synced 2026-03-27 23:37:04 -05:00
pattern/dds: Fix bitfield PixelFormatFlags (#259)
* Fix bitfield PixelFormatFlags The padding names should not repeat Comments should be added to each field for clarification Padding should be corrected for luminance. * Re-work of PixelFormatFlags Add more information considering current GIMP repository structure https://gitlab.gnome.org/GNOME/gimp/-/blame/master/plug-ins/file-dds/dds.h\#L145
This commit is contained in:
committed by
GitHub
parent
10bf1c76cf
commit
3416d30f2b
@@ -167,16 +167,26 @@ bitfield Caps2Flags {
|
|||||||
};
|
};
|
||||||
|
|
||||||
bitfield PixelFormatFlags {
|
bitfield PixelFormatFlags {
|
||||||
alphaPixels : 1;
|
alphaPixels : 1; // DDPF_ALPHAPIXELS
|
||||||
alpha : 1;
|
alpha : 1; // DDPF_ALPHA
|
||||||
fourCC : 1;
|
fourCC : 1; // DDPF_FOURCC
|
||||||
padding : 3;
|
paletteIndexed4 : 1; // DDPF_PALETTEINDEXED4
|
||||||
rgb : 1; // 0x40
|
paletteIndexedTo8 : 1; // DDPF_PALETTEINDEXEDTO8
|
||||||
padding : 2;
|
paletteIndexed8 : 1; // DDPF_PALETTEINDEXED8
|
||||||
yuv : 1; // 0x200
|
rgb : 1; // DDPF_RGB
|
||||||
padding : 3;
|
compressed : 1; // DDPF_COMPRESSED
|
||||||
luminance : 1; // 0x20000
|
rgbToYuv : 1; // DDPF_RGBTOYUV
|
||||||
padding : 17;
|
yuv : 1; // DDPF_YUV
|
||||||
|
zBuffer : 1; // DDPF_ZBUFFER
|
||||||
|
paletteIndexed1 : 1; // DDPF_PALETTEINDEXED1
|
||||||
|
paletteIndexed2 : 1; // DDPF_PALETTEINDEXED2
|
||||||
|
zPixels : 1; // DDPF_ZPIXELS
|
||||||
|
stencilBuffer : 1; // DDPF_STENCILBUFFER
|
||||||
|
alphaResult : 1; // DDPF_ALPHARESULT
|
||||||
|
luminance : 1; // DDPF_LUMINANCE
|
||||||
|
bumpLuminance : 1; // DDPF_BUMPLUMINANCE
|
||||||
|
bumpDudv : 1; // DDPF_BUMPDUDV
|
||||||
|
padding : 13; // Padding bits to complete 32-bit structure
|
||||||
};
|
};
|
||||||
|
|
||||||
enum DX10ResourceDimension : u32 {
|
enum DX10ResourceDimension : u32 {
|
||||||
|
|||||||
Reference in New Issue
Block a user