Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
08ae3d6f
Commit
08ae3d6f
authored
Jun 06, 2007
by
Phil Costin
Committed by
Alexandre Julliard
Jun 07, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Extend the D3DFMT table to include gamma corrected formats.
parent
3650e31e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
63 deletions
+63
-63
utils.c
dlls/wined3d/utils.c
+62
-62
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-1
No files found.
dlls/wined3d/utils.c
View file @
08ae3d6f
...
@@ -33,78 +33,78 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d);
...
@@ -33,78 +33,78 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d);
* Pixel format array
* Pixel format array
*/
*/
static
const
PixelFormatDesc
formats
[]
=
{
static
const
PixelFormatDesc
formats
[]
=
{
/*{WINED3DFORMAT ,alphamask ,redmask ,greenmask ,bluemask ,bpp ,isFourcc ,internal
,format
,type }*/
/*{WINED3DFORMAT ,alphamask ,redmask ,greenmask ,bluemask ,bpp ,isFourcc ,internal
,srgbInternal ,format
,type }*/
{
WINED3DFMT_UNKNOWN
,
0x0
,
0x0
,
0x0
,
0x0
,
1
,
FALSE
,
0
,
0
,
0
},
{
WINED3DFMT_UNKNOWN
,
0x0
,
0x0
,
0x0
,
0x0
,
1
,
FALSE
,
0
,
0
,
0
,
0
},
/* FourCC formats, kept here to have WINED3DFMT_R8G8B8(=20) at position 20 */
/* FourCC formats, kept here to have WINED3DFMT_R8G8B8(=20) at position 20 */
{
WINED3DFMT_UYVY
,
0x0
,
0x0
,
0x0
,
0x0
,
1
/*?*/
,
TRUE
,
0
,
0
,
0
},
{
WINED3DFMT_UYVY
,
0x0
,
0x0
,
0x0
,
0x0
,
1
/*?*/
,
TRUE
,
0
,
0
,
0
,
0
},
{
WINED3DFMT_YUY2
,
0x0
,
0x0
,
0x0
,
0x0
,
1
/*?*/
,
TRUE
,
0
,
0
,
0
},
{
WINED3DFMT_YUY2
,
0x0
,
0x0
,
0x0
,
0x0
,
1
/*?*/
,
TRUE
,
0
,
0
,
0
,
0
},
{
WINED3DFMT_DXT1
,
0x0
,
0x0
,
0x0
,
0x0
,
1
,
TRUE
,
GL_COMPRESSED_RGBA_S3TC_DXT1_EXT
,
GL_RGBA
,
GL_UNSIGNED_BYTE
},
{
WINED3DFMT_DXT1
,
0x0
,
0x0
,
0x0
,
0x0
,
1
,
TRUE
,
GL_COMPRESSED_RGBA_S3TC_DXT1_EXT
,
GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT
,
GL_RGBA
,
GL_UNSIGNED_BYTE
},
{
WINED3DFMT_DXT2
,
0x0
,
0x0
,
0x0
,
0x0
,
1
,
TRUE
,
GL_COMPRESSED_RGBA_S3TC_DXT3_EXT
,
GL_RGBA
,
GL_UNSIGNED_BYTE
},
{
WINED3DFMT_DXT2
,
0x0
,
0x0
,
0x0
,
0x0
,
1
,
TRUE
,
GL_COMPRESSED_RGBA_S3TC_DXT3_EXT
,
GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT
,
GL_RGBA
,
GL_UNSIGNED_BYTE
},
{
WINED3DFMT_DXT3
,
0x0
,
0x0
,
0x0
,
0x0
,
1
,
TRUE
,
GL_COMPRESSED_RGBA_S3TC_DXT3_EXT
,
GL_RGBA
,
GL_UNSIGNED_BYTE
},
{
WINED3DFMT_DXT3
,
0x0
,
0x0
,
0x0
,
0x0
,
1
,
TRUE
,
GL_COMPRESSED_RGBA_S3TC_DXT3_EXT
,
GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT
,
GL_RGBA
,
GL_UNSIGNED_BYTE
},
{
WINED3DFMT_DXT4
,
0x0
,
0x0
,
0x0
,
0x0
,
1
,
TRUE
,
GL_COMPRESSED_RGBA_S3TC_DXT5_EXT
,
GL_RGBA
,
GL_UNSIGNED_BYTE
},
{
WINED3DFMT_DXT4
,
0x0
,
0x0
,
0x0
,
0x0
,
1
,
TRUE
,
GL_COMPRESSED_RGBA_S3TC_DXT5_EXT
,
GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT
,
GL_RGBA
,
GL_UNSIGNED_BYTE
},
{
WINED3DFMT_DXT5
,
0x0
,
0x0
,
0x0
,
0x0
,
1
,
TRUE
,
GL_COMPRESSED_RGBA_S3TC_DXT5_EXT
,
GL_RGBA
,
GL_UNSIGNED_BYTE
},
{
WINED3DFMT_DXT5
,
0x0
,
0x0
,
0x0
,
0x0
,
1
,
TRUE
,
GL_COMPRESSED_RGBA_S3TC_DXT5_EXT
,
GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT
,
GL_RGBA
,
GL_UNSIGNED_BYTE
},
{
WINED3DFMT_MULTI2_ARGB8
,
0x0
,
0x0
,
0x0
,
0x0
,
1
/*?*/
,
TRUE
,
0
,
0
,
0
},
{
WINED3DFMT_MULTI2_ARGB8
,
0x0
,
0x0
,
0x0
,
0x0
,
1
/*?*/
,
TRUE
,
0
,
0
,
0
,
0
},
{
WINED3DFMT_G8R8_G8B8
,
0x0
,
0x0
,
0x0
,
0x0
,
1
/*?*/
,
TRUE
,
0
,
0
,
0
},
{
WINED3DFMT_G8R8_G8B8
,
0x0
,
0x0
,
0x0
,
0x0
,
1
/*?*/
,
TRUE
,
0
,
0
,
0
,
0
},
{
WINED3DFMT_R8G8_B8G8
,
0x0
,
0x0
,
0x0
,
0x0
,
1
/*?*/
,
TRUE
,
0
,
0
,
0
},
{
WINED3DFMT_R8G8_B8G8
,
0x0
,
0x0
,
0x0
,
0x0
,
1
/*?*/
,
TRUE
,
0
,
0
,
0
,
0
},
/* IEEE formats */
/* IEEE formats */
{
WINED3DFMT_R32F
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
GL_RGB32F_ARB
,
GL_RED
,
GL_FLOAT
},
{
WINED3DFMT_R32F
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
GL_RGB32F_ARB
,
GL_RGB32F_ARB
,
GL_RED
,
GL_FLOAT
},
{
WINED3DFMT_G32R32F
,
0x0
,
0x0
,
0x0
,
0x0
,
8
,
FALSE
,
0
,
0
,
0
},
{
WINED3DFMT_G32R32F
,
0x0
,
0x0
,
0x0
,
0x0
,
8
,
FALSE
,
0
,
0
,
0
,
0
},
{
WINED3DFMT_A32B32G32R32F
,
0x0
,
0x0
,
0x0
,
0x0
,
16
,
FALSE
,
GL_RGBA32F_ARB
,
GL_RGBA
,
GL_FLOAT
},
{
WINED3DFMT_A32B32G32R32F
,
0x0
,
0x0
,
0x0
,
0x0
,
16
,
FALSE
,
GL_RGBA32F_ARB
,
GL_RGBA32F_ARB
,
GL_RGBA
,
GL_FLOAT
},
/* Hmm? */
/* Hmm? */
{
WINED3DFMT_CxV8U8
,
0x0
,
0x0
,
0x0
,
0x0
,
2
,
FALSE
,
0
,
0
,
0
},
{
WINED3DFMT_CxV8U8
,
0x0
,
0x0
,
0x0
,
0x0
,
2
,
FALSE
,
0
,
0
,
0
,
0
},
/* Float */
/* Float */
{
WINED3DFMT_R16F
,
0x0
,
0x0
,
0x0
,
0x0
,
2
,
FALSE
,
GL_RGB16F_ARB
,
GL_RED
,
GL_HALF_FLOAT_ARB
},
{
WINED3DFMT_R16F
,
0x0
,
0x0
,
0x0
,
0x0
,
2
,
FALSE
,
GL_RGB16F_ARB
,
GL_RGB16F_ARB
,
GL_RED
,
GL_HALF_FLOAT_ARB
},
{
WINED3DFMT_G16R16F
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
0
,
0
,
0
},
{
WINED3DFMT_G16R16F
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
0
,
0
,
0
,
0
},
{
WINED3DFMT_A16B16G16R16F
,
0x0
,
0x0
,
0x0
,
0x0
,
8
,
FALSE
,
GL_RGBA16F_ARB
,
GL_RGBA
,
GL_HALF_FLOAT_ARB
},
{
WINED3DFMT_A16B16G16R16F
,
0x0
,
0x0
,
0x0
,
0x0
,
8
,
FALSE
,
GL_RGBA16F_ARB
,
GL_RGBA16F_ARB
,
GL_RGBA
,
GL_HALF_FLOAT_ARB
},
/* Palettized formats */
/* Palettized formats */
{
WINED3DFMT_A8P8
,
0x0000ff00
,
0x0
,
0x0
,
0x0
,
2
,
FALSE
,
0
,
0
,
0
},
{
WINED3DFMT_A8P8
,
0x0000ff00
,
0x0
,
0x0
,
0x0
,
2
,
FALSE
,
0
,
0
,
0
,
0
},
{
WINED3DFMT_P8
,
0x0
,
0x0
,
0x0
,
0x0
,
1
,
FALSE
,
GL_COLOR_INDEX8_EXT
,
GL_COLOR_INDEX
,
GL_UNSIGNED_BYTE
},
{
WINED3DFMT_P8
,
0x0
,
0x0
,
0x0
,
0x0
,
1
,
FALSE
,
GL_COLOR_INDEX8_EXT
,
GL_COLOR_INDEX8_EXT
,
GL_COLOR_INDEX
,
GL_UNSIGNED_BYTE
},
/* Standard ARGB formats. Keep WINED3DFMT_R8G8B8(=20) at position 20 */
/* Standard ARGB formats. Keep WINED3DFMT_R8G8B8(=20) at position 20 */
{
WINED3DFMT_R8G8B8
,
0x0
,
0x00ff0000
,
0x0000ff00
,
0x000000ff
,
3
,
FALSE
,
GL_RGB8
,
GL_BGR
,
GL_UNSIGNED_BYTE
},
{
WINED3DFMT_R8G8B8
,
0x0
,
0x00ff0000
,
0x0000ff00
,
0x000000ff
,
3
,
FALSE
,
GL_RGB8
,
GL_RGB8
,
GL_BGR
,
GL_UNSIGNED_BYTE
},
{
WINED3DFMT_A8R8G8B8
,
0xff000000
,
0x00ff0000
,
0x0000ff00
,
0x000000ff
,
4
,
FALSE
,
GL_RGBA8
,
GL_BGRA
,
GL_UNSIGNED_INT_8_8_8_8_REV
},
{
WINED3DFMT_A8R8G8B8
,
0xff000000
,
0x00ff0000
,
0x0000ff00
,
0x000000ff
,
4
,
FALSE
,
GL_RGBA8
,
GL_SRGB8_ALPHA8_EXT
,
GL_BGRA
,
GL_UNSIGNED_INT_8_8_8_8_REV
},
{
WINED3DFMT_X8R8G8B8
,
0x0
,
0x00ff0000
,
0x0000ff00
,
0x000000ff
,
4
,
FALSE
,
GL_RGB8
,
GL_BGRA
,
GL_UNSIGNED_INT_8_8_8_8_REV
},
{
WINED3DFMT_X8R8G8B8
,
0x0
,
0x00ff0000
,
0x0000ff00
,
0x000000ff
,
4
,
FALSE
,
GL_RGB8
,
GL_SRGB8_EXT
,
GL_BGRA
,
GL_UNSIGNED_INT_8_8_8_8_REV
},
{
WINED3DFMT_R5G6B5
,
0x0
,
0x0000F800
,
0x000007e0
,
0x0000001f
,
2
,
FALSE
,
GL_RGB5
,
GL_RGB
,
GL_UNSIGNED_SHORT_5_6_5
},
{
WINED3DFMT_R5G6B5
,
0x0
,
0x0000F800
,
0x000007e0
,
0x0000001f
,
2
,
FALSE
,
GL_RGB5
,
GL_RGB5
,
GL_RGB
,
GL_UNSIGNED_SHORT_5_6_5
},
{
WINED3DFMT_X1R5G5B5
,
0x0
,
0x00007c00
,
0x000003e0
,
0x0000001f
,
2
,
FALSE
,
GL_RGB5_A1
,
GL_BGRA
,
GL_UNSIGNED_SHORT_1_5_5_5_REV
},
{
WINED3DFMT_X1R5G5B5
,
0x0
,
0x00007c00
,
0x000003e0
,
0x0000001f
,
2
,
FALSE
,
GL_RGB5_A1
,
GL_RGB5_A1
,
GL_BGRA
,
GL_UNSIGNED_SHORT_1_5_5_5_REV
},
{
WINED3DFMT_A1R5G5B5
,
0x00008000
,
0x00007c00
,
0x000003e0
,
0x0000001f
,
2
,
FALSE
,
GL_RGB5_A1
,
GL_BGRA
,
GL_UNSIGNED_SHORT_1_5_5_5_REV
},
{
WINED3DFMT_A1R5G5B5
,
0x00008000
,
0x00007c00
,
0x000003e0
,
0x0000001f
,
2
,
FALSE
,
GL_RGB5_A1
,
GL_RGB5_A1
,
GL_BGRA
,
GL_UNSIGNED_SHORT_1_5_5_5_REV
},
{
WINED3DFMT_A4R4G4B4
,
0x0000f000
,
0x00000f00
,
0x000000f0
,
0x0000000f
,
2
,
FALSE
,
GL_RGBA4
,
GL_BGRA
,
GL_UNSIGNED_SHORT_4_4_4_4_REV
},
{
WINED3DFMT_A4R4G4B4
,
0x0000f000
,
0x00000f00
,
0x000000f0
,
0x0000000f
,
2
,
FALSE
,
GL_RGBA4
,
GL_RGBA4
,
GL_BGRA
,
GL_UNSIGNED_SHORT_4_4_4_4_REV
},
{
WINED3DFMT_R3G3B2
,
0x0
,
0x000000e0
,
0x0000001c
,
0x00000003
,
1
,
FALSE
,
GL_R3_G3_B2
,
GL_RGB
,
GL_UNSIGNED_BYTE_2_3_3_REV
},
{
WINED3DFMT_R3G3B2
,
0x0
,
0x000000e0
,
0x0000001c
,
0x00000003
,
1
,
FALSE
,
GL_R3_G3_B2
,
GL_R3_G3_B2
,
GL_RGB
,
GL_UNSIGNED_BYTE_2_3_3_REV
},
{
WINED3DFMT_A8
,
0x000000ff
,
0x0
,
0x0
,
0x0
,
1
,
FALSE
,
GL_ALPHA8
,
GL_ALPHA
,
GL_UNSIGNED_BYTE
},
{
WINED3DFMT_A8
,
0x000000ff
,
0x0
,
0x0
,
0x0
,
1
,
FALSE
,
GL_ALPHA8
,
GL_ALPHA8
,
GL_ALPHA
,
GL_UNSIGNED_BYTE
},
{
WINED3DFMT_A8R3G3B2
,
0x0000ff00
,
0x000000e0
,
0x0000001c
,
0x00000003
,
2
,
FALSE
,
0
,
0
,
0
},
{
WINED3DFMT_A8R3G3B2
,
0x0000ff00
,
0x000000e0
,
0x0000001c
,
0x00000003
,
2
,
FALSE
,
0
,
0
,
0
,
0
},
{
WINED3DFMT_X4R4G4B4
,
0x0
,
0x00000f00
,
0x000000f0
,
0x0000000f
,
2
,
FALSE
,
GL_RGB4
,
GL_BGRA
,
GL_UNSIGNED_SHORT_4_4_4_4_REV
},
{
WINED3DFMT_X4R4G4B4
,
0x0
,
0x00000f00
,
0x000000f0
,
0x0000000f
,
2
,
FALSE
,
GL_RGB4
,
GL_RGB4
,
GL_BGRA
,
GL_UNSIGNED_SHORT_4_4_4_4_REV
},
{
WINED3DFMT_A2B10G10R10
,
0xb0000000
,
0x000003ff
,
0x000ffc00
,
0x3ff00000
,
4
,
FALSE
,
GL_RGB
,
GL_RGBA
,
GL_UNSIGNED_INT_2_10_10_10_REV
},
{
WINED3DFMT_A2B10G10R10
,
0xb0000000
,
0x000003ff
,
0x000ffc00
,
0x3ff00000
,
4
,
FALSE
,
GL_RGB
,
GL_RGB
,
GL_RGBA
,
GL_UNSIGNED_INT_2_10_10_10_REV
},
{
WINED3DFMT_A8B8G8R8
,
0xff000000
,
0x000000ff
,
0x0000ff00
,
0x00ff0000
,
4
,
FALSE
,
GL_RGBA8
,
GL_RGBA
,
GL_UNSIGNED_INT_8_8_8_8_REV
},
{
WINED3DFMT_A8B8G8R8
,
0xff000000
,
0x000000ff
,
0x0000ff00
,
0x00ff0000
,
4
,
FALSE
,
GL_RGBA8
,
GL_RGBA8
,
GL_RGBA
,
GL_UNSIGNED_INT_8_8_8_8_REV
},
{
WINED3DFMT_X8B8G8R8
,
0x0
,
0x000000ff
,
0x0000ff00
,
0x00ff0000
,
4
,
FALSE
,
GL_RGB8
,
GL_RGBA
,
GL_UNSIGNED_INT_8_8_8_8_REV
},
{
WINED3DFMT_X8B8G8R8
,
0x0
,
0x000000ff
,
0x0000ff00
,
0x00ff0000
,
4
,
FALSE
,
GL_RGB8
,
GL_RGB8
,
GL_RGBA
,
GL_UNSIGNED_INT_8_8_8_8_REV
},
{
WINED3DFMT_G16R16
,
0x0
,
0x0000ffff
,
0xffff0000
,
0x0
,
4
,
FALSE
,
0
,
0
,
0
},
{
WINED3DFMT_G16R16
,
0x0
,
0x0000ffff
,
0xffff0000
,
0x0
,
4
,
FALSE
,
0
,
0
,
0
,
0
},
{
WINED3DFMT_A2R10G10B10
,
0xb0000000
,
0x3ff00000
,
0x000ffc00
,
0x000003ff
,
4
,
FALSE
,
GL_RGBA
,
GL_BGRA
,
GL_UNSIGNED_INT_2_10_10_10_REV
},
{
WINED3DFMT_A2R10G10B10
,
0xb0000000
,
0x3ff00000
,
0x000ffc00
,
0x000003ff
,
4
,
FALSE
,
GL_RGBA
,
GL_RGBA
,
GL_BGRA
,
GL_UNSIGNED_INT_2_10_10_10_REV
},
{
WINED3DFMT_A16B16G16R16
,
0x0
,
0x0000ffff
,
0xffff0000
,
0x0
,
8
,
FALSE
,
GL_RGBA16_EXT
,
GL_RGBA
,
GL_UNSIGNED_SHORT
},
{
WINED3DFMT_A16B16G16R16
,
0x0
,
0x0000ffff
,
0xffff0000
,
0x0
,
8
,
FALSE
,
GL_RGBA16_EXT
,
GL_RGBA16_EXT
,
GL_RGBA
,
GL_UNSIGNED_SHORT
},
/* Luminance */
/* Luminance */
{
WINED3DFMT_L8
,
0x0
,
0x0
,
0x0
,
0x0
,
1
,
FALSE
,
GL_LUMINANCE8
,
GL_LUMINANCE
,
GL_UNSIGNED_BYTE
},
{
WINED3DFMT_L8
,
0x0
,
0x0
,
0x0
,
0x0
,
1
,
FALSE
,
GL_LUMINANCE8
,
GL_SLUMINANCE8_EXT
,
GL_LUMINANCE
,
GL_UNSIGNED_BYTE
},
{
WINED3DFMT_A8L8
,
0x0000ff00
,
0x0
,
0x0
,
0x0
,
2
,
FALSE
,
GL_LUMINANCE8_ALPHA8
,
GL_LUMINANCE_ALPHA
,
GL_UNSIGNED_BYTE
},
{
WINED3DFMT_A8L8
,
0x0000ff00
,
0x0
,
0x0
,
0x0
,
2
,
FALSE
,
GL_LUMINANCE8_ALPHA8
,
GL_SLUMINANCE8_ALPHA8_EXT
,
GL_LUMINANCE_ALPHA
,
GL_UNSIGNED_BYTE
},
{
WINED3DFMT_A4L4
,
0x000000f0
,
0x0
,
0x0
,
0x0
,
1
,
FALSE
,
GL_LUMINANCE4_ALPHA4
,
GL_LUMINANCE_ALPHA
,
GL_UNSIGNED_BYTE
},
{
WINED3DFMT_A4L4
,
0x000000f0
,
0x0
,
0x0
,
0x0
,
1
,
FALSE
,
GL_LUMINANCE4_ALPHA4
,
GL_LUMINANCE4_ALPHA4
,
GL_LUMINANCE_ALPHA
,
GL_UNSIGNED_BYTE
},
/* Bump mapping stuff */
/* Bump mapping stuff */
{
WINED3DFMT_V8U8
,
0x0
,
0x0
,
0x0
,
0x0
,
2
,
FALSE
,
GL_DSDT8_NV
,
GL_DSDT_NV
,
GL_BYTE
},
{
WINED3DFMT_V8U8
,
0x0
,
0x0
,
0x0
,
0x0
,
2
,
FALSE
,
GL_DSDT8_NV
,
GL_DSDT8_NV
,
GL_DSDT_NV
,
GL_BYTE
},
{
WINED3DFMT_L6V5U5
,
0x0
,
0x0
,
0x0
,
0x0
,
2
,
FALSE
,
GL_COLOR_INDEX8_EXT
,
GL_COLOR_INDEX
,
GL_UNSIGNED_SHORT_5_5_5_1
},
{
WINED3DFMT_L6V5U5
,
0x0
,
0x0
,
0x0
,
0x0
,
2
,
FALSE
,
GL_COLOR_INDEX8_EXT
,
GL_COLOR_INDEX8_EXT
,
GL_COLOR_INDEX
,
GL_UNSIGNED_SHORT_5_5_5_1
},
{
WINED3DFMT_X8L8V8U8
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
GL_DSDT8_MAG8_INTENSITY8_NV
,
GL_DSDT_MAG_INTENSITY_NV
,
GL_BYTE
},
{
WINED3DFMT_X8L8V8U8
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
GL_DSDT8_MAG8_INTENSITY8_NV
,
GL_DSDT8_MAG8_INTENSITY8_NV
,
GL_DSDT_MAG_INTENSITY_NV
,
GL_BYTE
},
{
WINED3DFMT_Q8W8V8U8
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
GL_SIGNED_RGBA8_NV
,
GL_RGBA
,
GL_BYTE
},
{
WINED3DFMT_Q8W8V8U8
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
GL_SIGNED_RGBA8_NV
,
GL_SIGNED_RGBA8_NV
,
GL_RGBA
,
GL_BYTE
},
{
WINED3DFMT_V16U16
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
GL_SIGNED_HILO16_NV
,
GL_HILO_NV
,
GL_SHORT
},
{
WINED3DFMT_V16U16
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
GL_SIGNED_HILO16_NV
,
GL_SIGNED_HILO16_NV
,
GL_HILO_NV
,
GL_SHORT
},
{
WINED3DFMT_W11V11U10
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
0
,
0
,
0
},
{
WINED3DFMT_W11V11U10
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
0
,
0
,
0
,
0
},
{
WINED3DFMT_A2W10V10U10
,
0xb0000000
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
0
,
0
,
0
},
{
WINED3DFMT_A2W10V10U10
,
0xb0000000
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
0
,
0
,
0
,
0
},
/* Depth stencil formats */
/* Depth stencil formats */
{
WINED3DFMT_D16_LOCKABLE
,
0x0
,
0x0
,
0x0
,
0x0
,
2
,
FALSE
,
GL_DEPTH_COMPONENT24_ARB
,
GL_DEPTH_COMPONENT
,
GL_UNSIGNED_SHORT
},
{
WINED3DFMT_D16_LOCKABLE
,
0x0
,
0x0
,
0x0
,
0x0
,
2
,
FALSE
,
GL_DEPTH_COMPONENT24_ARB
,
GL_DEPTH_COMPONENT24_ARB
,
GL_DEPTH_COMPONENT
,
GL_UNSIGNED_SHORT
},
{
WINED3DFMT_D32
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
GL_DEPTH_COMPONENT32_ARB
,
GL_DEPTH_COMPONENT
,
GL_UNSIGNED_INT
},
{
WINED3DFMT_D32
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
GL_DEPTH_COMPONENT32_ARB
,
GL_DEPTH_COMPONENT32_ARB
,
GL_DEPTH_COMPONENT
,
GL_UNSIGNED_INT
},
{
WINED3DFMT_D15S1
,
0x0
,
0x0
,
0x0
,
0x0
,
2
,
FALSE
,
GL_DEPTH_COMPONENT24_ARB
,
GL_DEPTH_COMPONENT
,
GL_UNSIGNED_SHORT
},
{
WINED3DFMT_D15S1
,
0x0
,
0x0
,
0x0
,
0x0
,
2
,
FALSE
,
GL_DEPTH_COMPONENT24_ARB
,
GL_DEPTH_COMPONENT24_ARB
,
GL_DEPTH_COMPONENT
,
GL_UNSIGNED_SHORT
},
{
WINED3DFMT_D24S8
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
GL_DEPTH_COMPONENT24_ARB
,
GL_DEPTH_COMPONENT
,
GL_UNSIGNED_INT
},
{
WINED3DFMT_D24S8
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
GL_DEPTH_COMPONENT24_ARB
,
GL_DEPTH_COMPONENT
,
GL_UNSIGNED_INT
},
{
WINED3DFMT_D24X8
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
GL_DEPTH_COMPONENT24_ARB
,
GL_DEPTH_COMPONENT
,
GL_UNSIGNED_INT
},
{
WINED3DFMT_D24X8
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
GL_DEPTH_COMPONENT24_ARB
,
GL_DEPTH_COMPONENT24_ARB
,
GL_DEPTH_COMPONENT
,
GL_UNSIGNED_INT
},
{
WINED3DFMT_D24X4S4
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
GL_DEPTH_COMPONENT24_ARB
,
GL_DEPTH_COMPONENT
,
GL_UNSIGNED_INT
},
{
WINED3DFMT_D24X4S4
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
GL_DEPTH_COMPONENT24_ARB
,
GL_DEPTH_COMPONENT24_ARB
,
GL_DEPTH_COMPONENT
,
GL_UNSIGNED_INT
},
{
WINED3DFMT_D16
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
GL_DEPTH_COMPONENT24_ARB
,
GL_DEPTH_COMPONENT
,
GL_UNSIGNED_SHORT
},
{
WINED3DFMT_D16
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
GL_DEPTH_COMPONENT24_ARB
,
GL_DEPTH_COMPONENT24_ARB
,
GL_DEPTH_COMPONENT
,
GL_UNSIGNED_SHORT
},
{
WINED3DFMT_L16
,
0x0
,
0x0
,
0x0
,
0x0
,
2
,
FALSE
,
GL_LUMINANCE16_EXT
,
GL_LUMINANCE
,
GL_UNSIGNED_SHORT
},
{
WINED3DFMT_L16
,
0x0
,
0x0
,
0x0
,
0x0
,
2
,
FALSE
,
GL_LUMINANCE16_EXT
,
GL_LUMINANCE16_EXT
,
GL_LUMINANCE
,
GL_UNSIGNED_SHORT
},
{
WINED3DFMT_D32F_LOCKABLE
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
GL_DEPTH_COMPONENT32_ARB
,
GL_DEPTH_COMPONENT
,
GL_FLOAT
},
{
WINED3DFMT_D32F_LOCKABLE
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
GL_DEPTH_COMPONENT32_ARB
,
GL_DEPTH_COMPONENT32_ARB
,
GL_DEPTH_COMPONENT
,
GL_FLOAT
},
{
WINED3DFMT_D24FS8
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
GL_DEPTH_COMPONENT24_ARB
,
GL_DEPTH_COMPONENT
,
GL_FLOAT
},
{
WINED3DFMT_D24FS8
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
GL_DEPTH_COMPONENT24_ARB
,
GL_DEPTH_COMPONENT24_ARB
,
GL_DEPTH_COMPONENT
,
GL_FLOAT
},
/* Is this a vertex buffer? */
/* Is this a vertex buffer? */
{
WINED3DFMT_VERTEXDATA
,
0x0
,
0x0
,
0x0
,
0x0
,
0
,
FALSE
,
0
,
0
,
0
},
{
WINED3DFMT_VERTEXDATA
,
0x0
,
0x0
,
0x0
,
0x0
,
0
,
FALSE
,
0
,
0
,
0
,
0
},
{
WINED3DFMT_INDEX16
,
0x0
,
0x0
,
0x0
,
0x0
,
2
,
FALSE
,
0
,
0
,
0
},
{
WINED3DFMT_INDEX16
,
0x0
,
0x0
,
0x0
,
0x0
,
2
,
FALSE
,
0
,
0
,
0
,
0
},
{
WINED3DFMT_INDEX32
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
0
,
0
,
0
},
{
WINED3DFMT_INDEX32
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
0
,
0
,
0
,
0
},
{
WINED3DFMT_Q16W16V16U16
,
0x0
,
0x0
,
0x0
,
0x0
,
8
,
FALSE
,
GL_COLOR_INDEX
,
GL_COLOR_INDEX
,
GL_UNSIGNED_SHORT
}
{
WINED3DFMT_Q16W16V16U16
,
0x0
,
0x0
,
0x0
,
0x0
,
8
,
FALSE
,
GL_COLOR_INDEX
,
GL_COLOR_INDEX
,
GL_COLOR_INDEX
,
GL_UNSIGNED_SHORT
}
};
};
const
PixelFormatDesc
*
getFormatDescEntry
(
WINED3DFORMAT
fmt
)
const
PixelFormatDesc
*
getFormatDescEntry
(
WINED3DFORMAT
fmt
)
...
...
dlls/wined3d/wined3d_private.h
View file @
08ae3d6f
...
@@ -2000,7 +2000,7 @@ typedef struct {
...
@@ -2000,7 +2000,7 @@ typedef struct {
DWORD
alphaMask
,
redMask
,
greenMask
,
blueMask
;
DWORD
alphaMask
,
redMask
,
greenMask
,
blueMask
;
UINT
bpp
;
UINT
bpp
;
BOOL
isFourcc
;
BOOL
isFourcc
;
GLint
glInternal
,
glFormat
,
glType
;
GLint
glInternal
,
gl
GammaInternal
,
gl
Format
,
glType
;
}
PixelFormatDesc
;
}
PixelFormatDesc
;
const
PixelFormatDesc
*
getFormatDescEntry
(
WINED3DFORMAT
fmt
);
const
PixelFormatDesc
*
getFormatDescEntry
(
WINED3DFORMAT
fmt
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment