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
569a2fa7
Commit
569a2fa7
authored
Dec 19, 2006
by
Stefan Dösinger
Committed by
Alexandre Julliard
Dec 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Add empty texture stage states to the state table.
parent
1e264e5d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
268 additions
and
1 deletion
+268
-1
state.c
dlls/wined3d/state.c
+264
-0
wined3d_private.h
dlls/wined3d/wined3d_private.h
+4
-1
No files found.
dlls/wined3d/state.c
View file @
569a2fa7
...
...
@@ -1516,4 +1516,268 @@ const struct StateEntry StateTable[] =
{
/*207, WINED3DRS_SRCBLENDALPHA */
STATE_RENDER
(
WINED3DRS_SEPARATEALPHABLENDENABLE
),
state_seperateblend
},
{
/*208, WINED3DRS_DESTBLENDALPHA */
STATE_RENDER
(
WINED3DRS_SEPARATEALPHABLENDENABLE
),
state_seperateblend
},
{
/*209, WINED3DRS_BLENDOPALPHA */
STATE_RENDER
(
WINED3DRS_SEPARATEALPHABLENDENABLE
),
state_seperateblend
},
/* Texture stage states */
{
/*0, 01, WINED3DTSS_COLOROP */
STATE_TEXTURESTAGE
(
0
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*0, 02, WINED3DTSS_COLORARG1 */
STATE_TEXTURESTAGE
(
0
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*0, 03, WINED3DTSS_COLORARG2 */
STATE_TEXTURESTAGE
(
0
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*0, 04, WINED3DTSS_ALPHAOP */
STATE_TEXTURESTAGE
(
0
,
WINED3DTSS_ALPHAOP
),
state_undefined
},
{
/*0, 05, WINED3DTSS_ALPHAARG1 */
STATE_TEXTURESTAGE
(
0
,
WINED3DTSS_ALPHAOP
),
state_undefined
},
{
/*0, 06, WINED3DTSS_ALPHAARG2 */
STATE_TEXTURESTAGE
(
0
,
WINED3DTSS_ALPHAOP
),
state_undefined
},
{
/*0, 07, WINED3DTSS_BUMPENVMAT00 */
STATE_TEXTURESTAGE
(
0
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*0, 08, WINED3DTSS_BUMPENVMAT01 */
STATE_TEXTURESTAGE
(
0
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*0, 09, WINED3DTSS_BUMPENVMAT10 */
STATE_TEXTURESTAGE
(
0
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*0, 10, WINED3DTSS_BUMPENVMAT11 */
STATE_TEXTURESTAGE
(
0
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*0, 11, WINED3DTSS_TEXCOORDINDEX */
STATE_TEXTURESTAGE
(
0
,
WINED3DTSS_TEXCOORDINDEX
),
state_undefined
},
{
/*0, 12, WINED3DTSS_ADDRESS */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*0, 13, WINED3DTSS_ADDRESSU */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*0, 14, WINED3DTSS_ADDRESSV */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*0, 15, WINED3DTSS_BORDERCOLOR */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*0, 16, WINED3DTSS_MAGFILTER */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*0, 17, WINED3DTSS_MINFILTER */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*0, 18, WINED3DTSS_MIPFILTER */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*0, 19, WINED3DTSS_MIPMAPLODBIAS */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*0, 20, WINED3DTSS_MAXMIPLEVEL */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*0, 21, WINED3DTSS_MAXANISOTROPY */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*0, 22, WINED3DTSS_BUMPENVLSCALE */
STATE_TEXTURESTAGE
(
0
,
WINED3DTSS_BUMPENVLSCALE
),
state_undefined
},
{
/*0, 23, WINED3DTSS_BUMPENVLOFFSET */
STATE_TEXTURESTAGE
(
0
,
WINED3DTSS_BUMPENVLOFFSET
),
state_undefined
},
{
/*0, 24, WINED3DTSS_TEXTURETRANSFORMFLAGS */
STATE_TEXTURESTAGE
(
0
,
WINED3DTSS_TEXTURETRANSFORMFLAGS
),
state_undefined
},
{
/*0, 25, WINED3DTSS_ADDRESSW */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*0, 26, WINED3DTSS_COLORARG0 */
STATE_TEXTURESTAGE
(
0
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*0, 27, WINED3DTSS_ALPHAARG0 */
STATE_TEXTURESTAGE
(
0
,
WINED3DTSS_ALPHAOP
),
state_undefined
},
{
/*0, 28, WINED3DTSS_RESULTARG */
STATE_TEXTURESTAGE
(
0
,
WINED3DTSS_RESULTARG
),
state_undefined
},
{
/*0, 29, undefined */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*0, 30, undefined */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*0, 31, undefined */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*0, 32, WINED3DTSS_CONSTANT */
STATE_TEXTURESTAGE
(
0
,
WINED3DTSS_CONSTANT
),
state_undefined
},
{
/*1, 01, WINED3DTSS_COLOROP */
STATE_TEXTURESTAGE
(
1
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*1, 02, WINED3DTSS_COLORARG1 */
STATE_TEXTURESTAGE
(
1
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*1, 03, WINED3DTSS_COLORARG2 */
STATE_TEXTURESTAGE
(
1
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*1, 04, WINED3DTSS_ALPHAOP */
STATE_TEXTURESTAGE
(
1
,
WINED3DTSS_ALPHAOP
),
state_undefined
},
{
/*1, 05, WINED3DTSS_ALPHAARG1 */
STATE_TEXTURESTAGE
(
1
,
WINED3DTSS_ALPHAOP
),
state_undefined
},
{
/*1, 06, WINED3DTSS_ALPHAARG2 */
STATE_TEXTURESTAGE
(
1
,
WINED3DTSS_ALPHAOP
),
state_undefined
},
{
/*1, 07, WINED3DTSS_BUMPENVMAT00 */
STATE_TEXTURESTAGE
(
1
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*1, 08, WINED3DTSS_BUMPENVMAT01 */
STATE_TEXTURESTAGE
(
1
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*1, 09, WINED3DTSS_BUMPENVMAT10 */
STATE_TEXTURESTAGE
(
1
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*1, 10, WINED3DTSS_BUMPENVMAT11 */
STATE_TEXTURESTAGE
(
1
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*1, 11, WINED3DTSS_TEXCOORDINDEX */
STATE_TEXTURESTAGE
(
1
,
WINED3DTSS_TEXCOORDINDEX
),
state_undefined
},
{
/*1, 12, WINED3DTSS_ADDRESS */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*1, 13, WINED3DTSS_ADDRESSU */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*1, 14, WINED3DTSS_ADDRESSV */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*1, 15, WINED3DTSS_BORDERCOLOR */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*1, 16, WINED3DTSS_MAGFILTER */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*1, 17, WINED3DTSS_MINFILTER */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*1, 18, WINED3DTSS_MIPFILTER */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*1, 19, WINED3DTSS_MIPMAPLODBIAS */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*1, 20, WINED3DTSS_MAXMIPLEVEL */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*1, 21, WINED3DTSS_MAXANISOTROPY */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*1, 22, WINED3DTSS_BUMPENVLSCALE */
STATE_TEXTURESTAGE
(
1
,
WINED3DTSS_BUMPENVLSCALE
),
state_undefined
},
{
/*1, 23, WINED3DTSS_BUMPENVLOFFSET */
STATE_TEXTURESTAGE
(
1
,
WINED3DTSS_BUMPENVLOFFSET
),
state_undefined
},
{
/*1, 24, WINED3DTSS_TEXTURETRANSFORMFLAGS */
STATE_TEXTURESTAGE
(
1
,
WINED3DTSS_TEXTURETRANSFORMFLAGS
),
state_undefined
},
{
/*1, 25, WINED3DTSS_ADDRESSW */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*1, 26, WINED3DTSS_COLORARG0 */
STATE_TEXTURESTAGE
(
1
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*1, 27, WINED3DTSS_ALPHAARG0 */
STATE_TEXTURESTAGE
(
1
,
WINED3DTSS_ALPHAOP
),
state_undefined
},
{
/*1, 28, WINED3DTSS_RESULTARG */
STATE_TEXTURESTAGE
(
1
,
WINED3DTSS_RESULTARG
),
state_undefined
},
{
/*1, 29, undefined */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*1, 30, undefined */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*1, 31, undefined */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*1, 32, WINED3DTSS_CONSTANT */
STATE_TEXTURESTAGE
(
1
,
WINED3DTSS_CONSTANT
),
state_undefined
},
{
/*2, 01, WINED3DTSS_COLOROP */
STATE_TEXTURESTAGE
(
2
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*2, 02, WINED3DTSS_COLORARG1 */
STATE_TEXTURESTAGE
(
2
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*2, 03, WINED3DTSS_COLORARG2 */
STATE_TEXTURESTAGE
(
2
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*2, 04, WINED3DTSS_ALPHAOP */
STATE_TEXTURESTAGE
(
2
,
WINED3DTSS_ALPHAOP
),
state_undefined
},
{
/*2, 05, WINED3DTSS_ALPHAARG1 */
STATE_TEXTURESTAGE
(
2
,
WINED3DTSS_ALPHAOP
),
state_undefined
},
{
/*2, 06, WINED3DTSS_ALPHAARG2 */
STATE_TEXTURESTAGE
(
2
,
WINED3DTSS_ALPHAOP
),
state_undefined
},
{
/*2, 07, WINED3DTSS_BUMPENVMAT00 */
STATE_TEXTURESTAGE
(
2
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*2, 08, WINED3DTSS_BUMPENVMAT01 */
STATE_TEXTURESTAGE
(
2
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*2, 09, WINED3DTSS_BUMPENVMAT10 */
STATE_TEXTURESTAGE
(
2
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*2, 10, WINED3DTSS_BUMPENVMAT11 */
STATE_TEXTURESTAGE
(
2
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*2, 11, WINED3DTSS_TEXCOORDINDEX */
STATE_TEXTURESTAGE
(
2
,
WINED3DTSS_TEXCOORDINDEX
),
state_undefined
},
{
/*2, 12, WINED3DTSS_ADDRESS */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*2, 13, WINED3DTSS_ADDRESSU */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*2, 14, WINED3DTSS_ADDRESSV */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*2, 15, WINED3DTSS_BORDERCOLOR */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*2, 16, WINED3DTSS_MAGFILTER */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*2, 17, WINED3DTSS_MINFILTER */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*2, 18, WINED3DTSS_MIPFILTER */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*2, 19, WINED3DTSS_MIPMAPLODBIAS */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*2, 20, WINED3DTSS_MAXMIPLEVEL */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*2, 21, WINED3DTSS_MAXANISOTROPY */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*2, 22, WINED3DTSS_BUMPENVLSCALE */
STATE_TEXTURESTAGE
(
2
,
WINED3DTSS_BUMPENVLSCALE
),
state_undefined
},
{
/*2, 23, WINED3DTSS_BUMPENVLOFFSET */
STATE_TEXTURESTAGE
(
2
,
WINED3DTSS_BUMPENVLOFFSET
),
state_undefined
},
{
/*2, 24, WINED3DTSS_TEXTURETRANSFORMFLAGS */
STATE_TEXTURESTAGE
(
2
,
WINED3DTSS_TEXTURETRANSFORMFLAGS
),
state_undefined
},
{
/*2, 25, WINED3DTSS_ADDRESSW */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*2, 26, WINED3DTSS_COLORARG0 */
STATE_TEXTURESTAGE
(
2
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*2, 27, WINED3DTSS_ALPHAARG0 */
STATE_TEXTURESTAGE
(
2
,
WINED3DTSS_ALPHAOP
),
state_undefined
},
{
/*2, 28, WINED3DTSS_RESULTARG */
STATE_TEXTURESTAGE
(
2
,
WINED3DTSS_RESULTARG
),
state_undefined
},
{
/*2, 29, undefined */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*2, 30, undefined */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*2, 31, undefined */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*2, 32, WINED3DTSS_CONSTANT */
STATE_TEXTURESTAGE
(
2
,
WINED3DTSS_CONSTANT
),
state_undefined
},
{
/*3, 01, WINED3DTSS_COLOROP */
STATE_TEXTURESTAGE
(
3
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*3, 02, WINED3DTSS_COLORARG1 */
STATE_TEXTURESTAGE
(
3
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*3, 03, WINED3DTSS_COLORARG2 */
STATE_TEXTURESTAGE
(
3
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*3, 04, WINED3DTSS_ALPHAOP */
STATE_TEXTURESTAGE
(
3
,
WINED3DTSS_ALPHAOP
),
state_undefined
},
{
/*3, 05, WINED3DTSS_ALPHAARG1 */
STATE_TEXTURESTAGE
(
3
,
WINED3DTSS_ALPHAOP
),
state_undefined
},
{
/*3, 06, WINED3DTSS_ALPHAARG2 */
STATE_TEXTURESTAGE
(
3
,
WINED3DTSS_ALPHAOP
),
state_undefined
},
{
/*3, 07, WINED3DTSS_BUMPENVMAT00 */
STATE_TEXTURESTAGE
(
3
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*3, 08, WINED3DTSS_BUMPENVMAT01 */
STATE_TEXTURESTAGE
(
3
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*3, 09, WINED3DTSS_BUMPENVMAT10 */
STATE_TEXTURESTAGE
(
3
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*3, 10, WINED3DTSS_BUMPENVMAT11 */
STATE_TEXTURESTAGE
(
3
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*3, 11, WINED3DTSS_TEXCOORDINDEX */
STATE_TEXTURESTAGE
(
3
,
WINED3DTSS_TEXCOORDINDEX
),
state_undefined
},
{
/*3, 12, WINED3DTSS_ADDRESS */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*3, 13, WINED3DTSS_ADDRESSU */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*3, 14, WINED3DTSS_ADDRESSV */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*3, 15, WINED3DTSS_BORDERCOLOR */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*3, 16, WINED3DTSS_MAGFILTER */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*3, 17, WINED3DTSS_MINFILTER */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*3, 18, WINED3DTSS_MIPFILTER */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*3, 19, WINED3DTSS_MIPMAPLODBIAS */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*3, 20, WINED3DTSS_MAXMIPLEVEL */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*3, 21, WINED3DTSS_MAXANISOTROPY */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*3, 22, WINED3DTSS_BUMPENVLSCALE */
STATE_TEXTURESTAGE
(
3
,
WINED3DTSS_BUMPENVLSCALE
),
state_undefined
},
{
/*3, 23, WINED3DTSS_BUMPENVLOFFSET */
STATE_TEXTURESTAGE
(
3
,
WINED3DTSS_BUMPENVLOFFSET
),
state_undefined
},
{
/*3, 24, WINED3DTSS_TEXTURETRANSFORMFLAGS */
STATE_TEXTURESTAGE
(
3
,
WINED3DTSS_TEXTURETRANSFORMFLAGS
),
state_undefined
},
{
/*3, 25, WINED3DTSS_ADDRESSW */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*3, 26, WINED3DTSS_COLORARG0 */
STATE_TEXTURESTAGE
(
3
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*3, 27, WINED3DTSS_ALPHAARG0 */
STATE_TEXTURESTAGE
(
3
,
WINED3DTSS_ALPHAOP
),
state_undefined
},
{
/*3, 28, WINED3DTSS_RESULTARG */
STATE_TEXTURESTAGE
(
3
,
WINED3DTSS_RESULTARG
),
state_undefined
},
{
/*3, 29, undefined */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*3, 30, undefined */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*3, 31, undefined */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*3, 32, WINED3DTSS_CONSTANT */
STATE_TEXTURESTAGE
(
3
,
WINED3DTSS_CONSTANT
),
state_undefined
},
{
/*4, 01, WINED3DTSS_COLOROP */
STATE_TEXTURESTAGE
(
4
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*4, 02, WINED3DTSS_COLORARG1 */
STATE_TEXTURESTAGE
(
4
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*4, 03, WINED3DTSS_COLORARG2 */
STATE_TEXTURESTAGE
(
4
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*4, 04, WINED3DTSS_ALPHAOP */
STATE_TEXTURESTAGE
(
4
,
WINED3DTSS_ALPHAOP
),
state_undefined
},
{
/*4, 05, WINED3DTSS_ALPHAARG1 */
STATE_TEXTURESTAGE
(
4
,
WINED3DTSS_ALPHAOP
),
state_undefined
},
{
/*4, 06, WINED3DTSS_ALPHAARG2 */
STATE_TEXTURESTAGE
(
4
,
WINED3DTSS_ALPHAOP
),
state_undefined
},
{
/*4, 07, WINED3DTSS_BUMPENVMAT00 */
STATE_TEXTURESTAGE
(
4
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*4, 08, WINED3DTSS_BUMPENVMAT01 */
STATE_TEXTURESTAGE
(
4
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*4, 09, WINED3DTSS_BUMPENVMAT10 */
STATE_TEXTURESTAGE
(
4
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*4, 10, WINED3DTSS_BUMPENVMAT11 */
STATE_TEXTURESTAGE
(
4
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*4, 11, WINED3DTSS_TEXCOORDINDEX */
STATE_TEXTURESTAGE
(
4
,
WINED3DTSS_TEXCOORDINDEX
),
state_undefined
},
{
/*4, 12, WINED3DTSS_ADDRESS */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*4, 13, WINED3DTSS_ADDRESSU */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*4, 14, WINED3DTSS_ADDRESSV */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*4, 15, WINED3DTSS_BORDERCOLOR */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*4, 16, WINED3DTSS_MAGFILTER */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*4, 17, WINED3DTSS_MINFILTER */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*4, 18, WINED3DTSS_MIPFILTER */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*4, 19, WINED3DTSS_MIPMAPLODBIAS */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*4, 20, WINED3DTSS_MAXMIPLEVEL */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*4, 21, WINED3DTSS_MAXANISOTROPY */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*4, 22, WINED3DTSS_BUMPENVLSCALE */
STATE_TEXTURESTAGE
(
4
,
WINED3DTSS_BUMPENVLSCALE
),
state_undefined
},
{
/*4, 23, WINED3DTSS_BUMPENVLOFFSET */
STATE_TEXTURESTAGE
(
4
,
WINED3DTSS_BUMPENVLOFFSET
),
state_undefined
},
{
/*4, 24, WINED3DTSS_TEXTURETRANSFORMFLAGS */
STATE_TEXTURESTAGE
(
4
,
WINED3DTSS_TEXTURETRANSFORMFLAGS
),
state_undefined
},
{
/*4, 25, WINED3DTSS_ADDRESSW */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*4, 26, WINED3DTSS_COLORARG0 */
STATE_TEXTURESTAGE
(
4
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*4, 27, WINED3DTSS_ALPHAARG0 */
STATE_TEXTURESTAGE
(
4
,
WINED3DTSS_ALPHAOP
),
state_undefined
},
{
/*4, 28, WINED3DTSS_RESULTARG */
STATE_TEXTURESTAGE
(
4
,
WINED3DTSS_RESULTARG
),
state_undefined
},
{
/*4, 29, undefined */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*4, 30, undefined */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*4, 31, undefined */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*4, 32, WINED3DTSS_CONSTANT */
STATE_TEXTURESTAGE
(
4
,
WINED3DTSS_CONSTANT
),
state_undefined
},
{
/*5, 01, WINED3DTSS_COLOROP */
STATE_TEXTURESTAGE
(
5
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*5, 02, WINED3DTSS_COLORARG1 */
STATE_TEXTURESTAGE
(
5
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*5, 03, WINED3DTSS_COLORARG2 */
STATE_TEXTURESTAGE
(
5
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*5, 04, WINED3DTSS_ALPHAOP */
STATE_TEXTURESTAGE
(
5
,
WINED3DTSS_ALPHAOP
),
state_undefined
},
{
/*5, 05, WINED3DTSS_ALPHAARG1 */
STATE_TEXTURESTAGE
(
5
,
WINED3DTSS_ALPHAOP
),
state_undefined
},
{
/*5, 06, WINED3DTSS_ALPHAARG2 */
STATE_TEXTURESTAGE
(
5
,
WINED3DTSS_ALPHAOP
),
state_undefined
},
{
/*5, 07, WINED3DTSS_BUMPENVMAT00 */
STATE_TEXTURESTAGE
(
5
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*5, 08, WINED3DTSS_BUMPENVMAT01 */
STATE_TEXTURESTAGE
(
5
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*5, 09, WINED3DTSS_BUMPENVMAT10 */
STATE_TEXTURESTAGE
(
5
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*5, 10, WINED3DTSS_BUMPENVMAT11 */
STATE_TEXTURESTAGE
(
5
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*5, 11, WINED3DTSS_TEXCOORDINDEX */
STATE_TEXTURESTAGE
(
5
,
WINED3DTSS_TEXCOORDINDEX
),
state_undefined
},
{
/*5, 12, WINED3DTSS_ADDRESS */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*5, 13, WINED3DTSS_ADDRESSU */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*5, 14, WINED3DTSS_ADDRESSV */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*5, 15, WINED3DTSS_BORDERCOLOR */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*5, 16, WINED3DTSS_MAGFILTER */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*5, 17, WINED3DTSS_MINFILTER */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*5, 18, WINED3DTSS_MIPFILTER */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*5, 19, WINED3DTSS_MIPMAPLODBIAS */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*5, 20, WINED3DTSS_MAXMIPLEVEL */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*5, 21, WINED3DTSS_MAXANISOTROPY */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*5, 22, WINED3DTSS_BUMPENVLSCALE */
STATE_TEXTURESTAGE
(
5
,
WINED3DTSS_BUMPENVLSCALE
),
state_undefined
},
{
/*5, 23, WINED3DTSS_BUMPENVLOFFSET */
STATE_TEXTURESTAGE
(
5
,
WINED3DTSS_BUMPENVLOFFSET
),
state_undefined
},
{
/*5, 24, WINED3DTSS_TEXTURETRANSFORMFLAGS */
STATE_TEXTURESTAGE
(
5
,
WINED3DTSS_TEXTURETRANSFORMFLAGS
),
state_undefined
},
{
/*5, 25, WINED3DTSS_ADDRESSW */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*5, 26, WINED3DTSS_COLORARG0 */
STATE_TEXTURESTAGE
(
5
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*5, 27, WINED3DTSS_ALPHAARG0 */
STATE_TEXTURESTAGE
(
5
,
WINED3DTSS_ALPHAOP
),
state_undefined
},
{
/*5, 28, WINED3DTSS_RESULTARG */
STATE_TEXTURESTAGE
(
5
,
WINED3DTSS_RESULTARG
),
state_undefined
},
{
/*5, 29, undefined */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*5, 30, undefined */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*5, 31, undefined */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*5, 32, WINED3DTSS_CONSTANT */
STATE_TEXTURESTAGE
(
5
,
WINED3DTSS_CONSTANT
),
state_undefined
},
{
/*6, 01, WINED3DTSS_COLOROP */
STATE_TEXTURESTAGE
(
6
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*6, 02, WINED3DTSS_COLORARG1 */
STATE_TEXTURESTAGE
(
6
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*6, 03, WINED3DTSS_COLORARG2 */
STATE_TEXTURESTAGE
(
6
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*6, 04, WINED3DTSS_ALPHAOP */
STATE_TEXTURESTAGE
(
6
,
WINED3DTSS_ALPHAOP
),
state_undefined
},
{
/*6, 05, WINED3DTSS_ALPHAARG1 */
STATE_TEXTURESTAGE
(
6
,
WINED3DTSS_ALPHAOP
),
state_undefined
},
{
/*6, 06, WINED3DTSS_ALPHAARG2 */
STATE_TEXTURESTAGE
(
6
,
WINED3DTSS_ALPHAOP
),
state_undefined
},
{
/*6, 07, WINED3DTSS_BUMPENVMAT00 */
STATE_TEXTURESTAGE
(
6
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*6, 08, WINED3DTSS_BUMPENVMAT01 */
STATE_TEXTURESTAGE
(
6
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*6, 09, WINED3DTSS_BUMPENVMAT10 */
STATE_TEXTURESTAGE
(
6
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*6, 10, WINED3DTSS_BUMPENVMAT11 */
STATE_TEXTURESTAGE
(
6
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*6, 11, WINED3DTSS_TEXCOORDINDEX */
STATE_TEXTURESTAGE
(
6
,
WINED3DTSS_TEXCOORDINDEX
),
state_undefined
},
{
/*6, 12, WINED3DTSS_ADDRESS */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*6, 13, WINED3DTSS_ADDRESSU */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*6, 14, WINED3DTSS_ADDRESSV */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*6, 15, WINED3DTSS_BORDERCOLOR */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*6, 16, WINED3DTSS_MAGFILTER */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*6, 17, WINED3DTSS_MINFILTER */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*6, 18, WINED3DTSS_MIPFILTER */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*6, 19, WINED3DTSS_MIPMAPLODBIAS */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*6, 20, WINED3DTSS_MAXMIPLEVEL */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*6, 21, WINED3DTSS_MAXANISOTROPY */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*6, 22, WINED3DTSS_BUMPENVLSCALE */
STATE_TEXTURESTAGE
(
6
,
WINED3DTSS_BUMPENVLSCALE
),
state_undefined
},
{
/*6, 23, WINED3DTSS_BUMPENVLOFFSET */
STATE_TEXTURESTAGE
(
6
,
WINED3DTSS_BUMPENVLOFFSET
),
state_undefined
},
{
/*6, 24, WINED3DTSS_TEXTURETRANSFORMFLAGS */
STATE_TEXTURESTAGE
(
6
,
WINED3DTSS_TEXTURETRANSFORMFLAGS
),
state_undefined
},
{
/*6, 25, WINED3DTSS_ADDRESSW */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*6, 26, WINED3DTSS_COLORARG0 */
STATE_TEXTURESTAGE
(
6
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*6, 27, WINED3DTSS_ALPHAARG0 */
STATE_TEXTURESTAGE
(
6
,
WINED3DTSS_ALPHAOP
),
state_undefined
},
{
/*6, 28, WINED3DTSS_RESULTARG */
STATE_TEXTURESTAGE
(
6
,
WINED3DTSS_RESULTARG
),
state_undefined
},
{
/*6, 29, undefined */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*6, 30, undefined */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*6, 31, undefined */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*6, 32, WINED3DTSS_CONSTANT */
STATE_TEXTURESTAGE
(
6
,
WINED3DTSS_CONSTANT
),
state_undefined
},
{
/*7, 01, WINED3DTSS_COLOROP */
STATE_TEXTURESTAGE
(
7
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*7, 02, WINED3DTSS_COLORARG1 */
STATE_TEXTURESTAGE
(
7
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*7, 03, WINED3DTSS_COLORARG2 */
STATE_TEXTURESTAGE
(
7
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*7, 04, WINED3DTSS_ALPHAOP */
STATE_TEXTURESTAGE
(
7
,
WINED3DTSS_ALPHAOP
),
state_undefined
},
{
/*7, 05, WINED3DTSS_ALPHAARG1 */
STATE_TEXTURESTAGE
(
7
,
WINED3DTSS_ALPHAOP
),
state_undefined
},
{
/*7, 06, WINED3DTSS_ALPHAARG2 */
STATE_TEXTURESTAGE
(
7
,
WINED3DTSS_ALPHAOP
),
state_undefined
},
{
/*7, 07, WINED3DTSS_BUMPENVMAT00 */
STATE_TEXTURESTAGE
(
7
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*7, 08, WINED3DTSS_BUMPENVMAT01 */
STATE_TEXTURESTAGE
(
7
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*7, 09, WINED3DTSS_BUMPENVMAT10 */
STATE_TEXTURESTAGE
(
7
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*7, 10, WINED3DTSS_BUMPENVMAT11 */
STATE_TEXTURESTAGE
(
7
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*7, 11, WINED3DTSS_TEXCOORDINDEX */
STATE_TEXTURESTAGE
(
7
,
WINED3DTSS_TEXCOORDINDEX
),
state_undefined
},
{
/*7, 12, WINED3DTSS_ADDRESS */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*7, 13, WINED3DTSS_ADDRESSU */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*7, 14, WINED3DTSS_ADDRESSV */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*7, 15, WINED3DTSS_BORDERCOLOR */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*7, 16, WINED3DTSS_MAGFILTER */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*7, 17, WINED3DTSS_MINFILTER */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*7, 18, WINED3DTSS_MIPFILTER */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*7, 19, WINED3DTSS_MIPMAPLODBIAS */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*7, 20, WINED3DTSS_MAXMIPLEVEL */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*7, 21, WINED3DTSS_MAXANISOTROPY */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*7, 22, WINED3DTSS_BUMPENVLSCALE */
STATE_TEXTURESTAGE
(
7
,
WINED3DTSS_BUMPENVLSCALE
),
state_undefined
},
{
/*7, 23, WINED3DTSS_BUMPENVLOFFSET */
STATE_TEXTURESTAGE
(
7
,
WINED3DTSS_BUMPENVLOFFSET
),
state_undefined
},
{
/*7, 24, WINED3DTSS_TEXTURETRANSFORMFLAGS */
STATE_TEXTURESTAGE
(
7
,
WINED3DTSS_TEXTURETRANSFORMFLAGS
),
state_undefined
},
{
/*7, 25, WINED3DTSS_ADDRESSW */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*7, 26, WINED3DTSS_COLORARG0 */
STATE_TEXTURESTAGE
(
7
,
WINED3DTSS_COLOROP
),
state_undefined
},
{
/*7, 27, WINED3DTSS_ALPHAARG0 */
STATE_TEXTURESTAGE
(
7
,
WINED3DTSS_ALPHAOP
),
state_undefined
},
{
/*7, 28, WINED3DTSS_RESULTARG */
STATE_TEXTURESTAGE
(
7
,
WINED3DTSS_RESULTARG
),
state_undefined
},
{
/*7, 29, undefined */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*7, 30, undefined */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*7, 31, undefined */
0
/* -> sampler state in ddraw / d3d8 */
,
state_undefined
},
{
/*7, 32, WINED3DTSS_CONSTANT */
STATE_TEXTURESTAGE
(
7
,
WINED3DTSS_CONSTANT
),
state_undefined
},
};
dlls/wined3d/wined3d_private.h
View file @
569a2fa7
...
...
@@ -413,7 +413,10 @@ typedef void (*APPLYSTATEFUNC)(DWORD state, IWineD3DStateBlockImpl *stateblock);
#define STATE_RENDER(a) (a)
#define STATE_IS_RENDER(a) ((a) >= STATE_RENDER(1) && (a) <= STATE_RENDER(WINEHIGHEST_RENDER_STATE))
#define STATE_HIGHEST (STATE_RENDER(WINEHIGHEST_RENDER_STATE))
#define STATE_TEXTURESTAGE(stage, num) (STATE_RENDER(WINEHIGHEST_RENDER_STATE) + (stage) * WINED3D_HIGHEST_TEXTURE_STATE + (num))
#define STATE_IS_TEXTURESTAGE(a) ((a) >= STATE_TEXTURESTAGE(0, 1) && (a) <= STATE_TEXTURESTAGE(MAX_TEXTURES - 1, WINED3D_HIGHEST_TEXTURE_STATE))
#define STATE_HIGHEST (STATE_TEXTURESTAGE(MAX_TEXTURES - 1, WINED3D_HIGHEST_TEXTURE_STATE))
struct
StateEntry
{
...
...
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