Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
903c7742
Commit
903c7742
authored
Jan 01, 2009
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jan 13, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Use D3DFOG_* constants instead of plain integers.
parent
b3b60f96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
22 deletions
+22
-22
visual.c
dlls/d3d9/tests/visual.c
+22
-22
No files found.
dlls/d3d9/tests/visual.c
View file @
903c7742
...
...
@@ -1385,83 +1385,83 @@ static void fog_with_shader_test(IDirect3DDevice9 *device)
unsigned
int
color
[
11
];
}
test_data
[]
=
{
/* only pixel shader: */
{
0
,
1
,
0
,
3
,
{
0
,
1
,
D3DFOG_NONE
,
D3DFOG_LINEAR
,
{
0x00ff0000
,
0x00ff0000
,
0x00df2000
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
0x005fa000
,
0x0040bf00
,
0x0020df00
,
0x0000ff00
,
0x0000ff00
}},
{
0
,
1
,
1
,
3
,
{
0
,
1
,
D3DFOG_EXP
,
D3DFOG_LINEAR
,
{
0x00ff0000
,
0x00ff0000
,
0x00df2000
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
0x005fa000
,
0x0040bf00
,
0x0020df00
,
0x0000ff00
,
0x0000ff00
}},
{
0
,
1
,
2
,
3
,
{
0
,
1
,
D3DFOG_EXP2
,
D3DFOG_LINEAR
,
{
0x00ff0000
,
0x00ff0000
,
0x00df2000
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
0x005fa000
,
0x0040bf00
,
0x0020df00
,
0x0000ff00
,
0x0000ff00
}},
{
0
,
1
,
3
,
0
,
{
0
,
1
,
D3DFOG_LINEAR
,
D3DFOG_NONE
,
{
0x00ff0000
,
0x00ff0000
,
0x00df2000
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
0x005fa000
,
0x0040bf00
,
0x0020df00
,
0x0000ff00
,
0x0000ff00
}},
{
0
,
1
,
3
,
3
,
{
0
,
1
,
D3DFOG_LINEAR
,
D3DFOG_LINEAR
,
{
0x00ff0000
,
0x00ff0000
,
0x00df2000
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
0x005fa000
,
0x0040bf00
,
0x0020df00
,
0x0000ff00
,
0x0000ff00
}},
/* vertex shader */
{
1
,
0
,
0
,
0
,
{
1
,
0
,
D3DFOG_NONE
,
D3DFOG_NONE
,
{
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
}},
{
1
,
0
,
0
,
3
,
{
1
,
0
,
D3DFOG_NONE
,
D3DFOG_LINEAR
,
{
0x00ff0000
,
0x00ff0000
,
0x00df2000
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
0x005fa000
,
0x0040bf00
,
0x0020df00
,
0x0000ff00
,
0x0000ff00
}},
{
1
,
0
,
1
,
3
,
{
1
,
0
,
D3DFOG_EXP
,
D3DFOG_LINEAR
,
{
0x00ff0000
,
0x00ff0000
,
0x00df2000
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
0x005fa000
,
0x0040bf00
,
0x0020df00
,
0x0000ff00
,
0x0000ff00
}},
{
1
,
0
,
2
,
3
,
{
1
,
0
,
D3DFOG_EXP2
,
D3DFOG_LINEAR
,
{
0x00ff0000
,
0x00ff0000
,
0x00df2000
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
0x005fa000
,
0x0040bf00
,
0x0020df00
,
0x0000ff00
,
0x0000ff00
}},
{
1
,
0
,
3
,
3
,
{
1
,
0
,
D3DFOG_LINEAR
,
D3DFOG_LINEAR
,
{
0x00ff0000
,
0x00ff0000
,
0x00df2000
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
0x005fa000
,
0x0040bf00
,
0x0020df00
,
0x0000ff00
,
0x0000ff00
}},
/* vertex shader and pixel shader */
{
1
,
1
,
0
,
3
,
{
1
,
1
,
D3DFOG_NONE
,
D3DFOG_LINEAR
,
{
0x00ff0000
,
0x00ff0000
,
0x00df2000
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
0x005fa000
,
0x0040bf00
,
0x0020df00
,
0x0000ff00
,
0x0000ff00
}},
{
1
,
1
,
1
,
3
,
{
1
,
1
,
D3DFOG_EXP
,
D3DFOG_LINEAR
,
{
0x00ff0000
,
0x00ff0000
,
0x00df2000
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
0x005fa000
,
0x0040bf00
,
0x0020df00
,
0x0000ff00
,
0x0000ff00
}},
{
1
,
1
,
2
,
3
,
{
1
,
1
,
D3DFOG_EXP2
,
D3DFOG_LINEAR
,
{
0x00ff0000
,
0x00ff0000
,
0x00df2000
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
0x005fa000
,
0x0040bf00
,
0x0020df00
,
0x0000ff00
,
0x0000ff00
}},
{
1
,
1
,
3
,
3
,
{
1
,
1
,
D3DFOG_LINEAR
,
D3DFOG_LINEAR
,
{
0x00ff0000
,
0x00ff0000
,
0x00df2000
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
0x005fa000
,
0x0040bf00
,
0x0020df00
,
0x0000ff00
,
0x0000ff00
}},
#if 0 /* FIXME: these fail on GeForce 8500 */
/* foggy vertex shader */
{2, 0,
0, 0
,
{2, 0,
D3DFOG_NONE, D3DFOG_NONE
,
{0x00ff0000, 0x00fe0100, 0x00de2100, 0x00bf4000, 0x009f6000, 0x007f8000,
0x005fa000, 0x003fc000, 0x001fe000, 0x0000ff00, 0x0000ff00}},
{2, 0,
1, 0
,
{2, 0,
D3DFOG_EXP, D3DFOG_NONE
,
{0x00ff0000, 0x00fe0100, 0x00de2100, 0x00bf4000, 0x009f6000, 0x007f8000,
0x005fa000, 0x003fc000, 0x001fe000, 0x0000ff00, 0x0000ff00}},
{2, 0,
2, 0
,
{2, 0,
D3DFOG_EXP2, D3DFOG_NONE
,
{0x00ff0000, 0x00fe0100, 0x00de2100, 0x00bf4000, 0x009f6000, 0x007f8000,
0x005fa000, 0x003fc000, 0x001fe000, 0x0000ff00, 0x0000ff00}},
{2, 0,
3, 0
,
{2, 0,
D3DFOG_LINEAR, D3DFOG_NONE
,
{0x00ff0000, 0x00fe0100, 0x00de2100, 0x00bf4000, 0x009f6000, 0x007f8000,
0x005fa000, 0x003fc000, 0x001fe000, 0x0000ff00, 0x0000ff00}},
#endif
/* foggy vertex shader and pixel shader */
{
2
,
1
,
0
,
0
,
{
2
,
1
,
D3DFOG_NONE
,
D3DFOG_NONE
,
{
0x00ff0000
,
0x00fe0100
,
0x00de2100
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
0x005fa000
,
0x003fc000
,
0x001fe000
,
0x0000ff00
,
0x0000ff00
}},
{
2
,
1
,
1
,
0
,
{
2
,
1
,
D3DFOG_EXP
,
D3DFOG_NONE
,
{
0x00ff0000
,
0x00fe0100
,
0x00de2100
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
0x005fa000
,
0x003fc000
,
0x001fe000
,
0x0000ff00
,
0x0000ff00
}},
{
2
,
1
,
2
,
0
,
{
2
,
1
,
D3DFOG_EXP2
,
D3DFOG_NONE
,
{
0x00ff0000
,
0x00fe0100
,
0x00de2100
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
0x005fa000
,
0x003fc000
,
0x001fe000
,
0x0000ff00
,
0x0000ff00
}},
{
2
,
1
,
3
,
0
,
{
2
,
1
,
D3DFOG_LINEAR
,
D3DFOG_NONE
,
{
0x00ff0000
,
0x00fe0100
,
0x00de2100
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
0x005fa000
,
0x003fc000
,
0x001fe000
,
0x0000ff00
,
0x0000ff00
}},
...
...
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