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
79e4f660
Commit
79e4f660
authored
Aug 26, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 27, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9_36/tests: Add some more FVF position handling tests.
parent
6e518a1d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
0 deletions
+40
-0
mesh.c
dlls/d3dx9_36/tests/mesh.c
+40
-0
No files found.
dlls/d3dx9_36/tests/mesh.c
View file @
79e4f660
...
...
@@ -679,6 +679,36 @@ static void test_fvf_decl_conversion(void)
};
test_decl_to_fvf
(
decl
,
D3DFVF_NORMAL
,
D3D_OK
,
__LINE__
,
0
);
}
/* D3DFVF_LASTBETA_UBYTE4 and D3DFVF_LASTBETA_D3DCOLOR are ignored if
* there are no blend matrices. */
{
const
D3DVERTEXELEMENT9
decl
[]
=
{
{
0
,
0
,
D3DDECLTYPE_FLOAT3
,
0
,
D3DDECLUSAGE_POSITION
,
0
},
D3DDECL_END
(),
};
test_fvf_to_decl
(
D3DFVF_XYZ
|
D3DFVF_LASTBETA_UBYTE4
,
decl
,
D3D_OK
,
__LINE__
,
0
);
}
{
const
D3DVERTEXELEMENT9
decl
[]
=
{
{
0
,
0
,
D3DDECLTYPE_FLOAT3
,
0
,
D3DDECLUSAGE_POSITION
,
0
},
D3DDECL_END
(),
};
test_fvf_to_decl
(
D3DFVF_XYZ
|
D3DFVF_LASTBETA_D3DCOLOR
,
decl
,
D3D_OK
,
__LINE__
,
0
);
}
/* D3DFVF_LASTBETA_UBYTE4 takes precedence over D3DFVF_LASTBETA_D3DCOLOR. */
{
const
D3DVERTEXELEMENT9
decl
[]
=
{
{
0
,
0
,
D3DDECLTYPE_FLOAT3
,
0
,
D3DDECLUSAGE_POSITION
,
0
},
{
0
,
12
,
D3DDECLTYPE_FLOAT4
,
0
,
D3DDECLUSAGE_BLENDWEIGHT
,
0
},
{
0
,
28
,
D3DDECLTYPE_UBYTE4
,
0
,
D3DDECLUSAGE_BLENDINDICES
,
0
},
D3DDECL_END
(),
};
test_fvf_to_decl
(
D3DFVF_XYZB5
|
D3DFVF_LASTBETA_D3DCOLOR
|
D3DFVF_LASTBETA_UBYTE4
,
decl
,
D3D_OK
,
__LINE__
,
0
);
}
/* These are supposed to fail, both ways. */
{
const
D3DVERTEXELEMENT9
decl
[]
=
...
...
@@ -692,6 +722,16 @@ static void test_fvf_decl_conversion(void)
{
const
D3DVERTEXELEMENT9
decl
[]
=
{
{
0
,
0
,
D3DDECLTYPE_FLOAT4
,
0
,
D3DDECLUSAGE_POSITION
,
0
},
{
0
,
16
,
D3DDECLTYPE_FLOAT3
,
0
,
D3DDECLUSAGE_NORMAL
,
0
},
D3DDECL_END
(),
};
test_decl_to_fvf
(
decl
,
D3DFVF_XYZW
|
D3DFVF_NORMAL
,
D3DERR_INVALIDCALL
,
__LINE__
,
0
);
test_fvf_to_decl
(
D3DFVF_XYZW
|
D3DFVF_NORMAL
,
decl
,
D3DERR_INVALIDCALL
,
__LINE__
,
0
);
}
{
const
D3DVERTEXELEMENT9
decl
[]
=
{
{
0
,
0
,
D3DDECLTYPE_FLOAT3
,
0
,
D3DDECLUSAGE_POSITION
,
0
},
{
0
,
12
,
D3DDECLTYPE_FLOAT4
,
0
,
D3DDECLUSAGE_BLENDWEIGHT
,
0
},
{
0
,
28
,
D3DDECLTYPE_FLOAT1
,
0
,
D3DDECLUSAGE_BLENDINDICES
,
0
},
...
...
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