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
3f99f4bf
Commit
3f99f4bf
authored
Sep 08, 2009
by
Rico Schüller
Committed by
Alexandre Julliard
Sep 09, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10: Add initial type parsing code.
parent
d451778b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
0 deletions
+41
-0
effect.c
dlls/d3d10/effect.c
+41
-0
No files found.
dlls/d3d10/effect.c
View file @
3f99f4bf
...
...
@@ -31,6 +31,12 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d10);
#define TAG_FX10 MAKE_TAG('F', 'X', '1', '0')
#define TAG_ISGN MAKE_TAG('I', 'S', 'G', 'N')
#define D3D10_FX10_TYPE_COLUMN_SHIFT 11
#define D3D10_FX10_TYPE_COLUMN_MASK (0x7 << D3D10_FX10_TYPE_COLUMN_SHIFT)
#define D3D10_FX10_TYPE_ROW_SHIFT 8
#define D3D10_FX10_TYPE_ROW_MASK (0x7 << D3D10_FX10_TYPE_ROW_SHIFT)
static
const
struct
ID3D10EffectTechniqueVtbl
d3d10_effect_technique_vtbl
;
static
const
struct
ID3D10EffectPassVtbl
d3d10_effect_pass_vtbl
;
static
const
struct
ID3D10EffectVariableVtbl
d3d10_effect_variable_vtbl
;
...
...
@@ -410,6 +416,40 @@ static HRESULT parse_fx10_technique(struct d3d10_effect_technique *t, const char
return
S_OK
;
}
static
void
parse_fx10_type
(
const
char
*
ptr
,
const
char
*
data
)
{
DWORD
unknown0
;
DWORD
tmp
;
read_dword
(
&
ptr
,
&
tmp
);
TRACE
(
"Type name at offset %#x.
\n
"
,
tmp
);
TRACE
(
"Type name: %s.
\n
"
,
debugstr_a
(
data
+
tmp
));
read_dword
(
&
ptr
,
&
unknown0
);
TRACE
(
"Unknown 0: %u.
\n
"
,
unknown0
);
read_dword
(
&
ptr
,
&
tmp
);
TRACE
(
"Element count: %u.
\n
"
,
tmp
);
read_dword
(
&
ptr
,
&
tmp
);
TRACE
(
"Unpacked size: %#x.
\n
"
,
tmp
);
read_dword
(
&
ptr
,
&
tmp
);
TRACE
(
"Stride: %#x.
\n
"
,
tmp
);
read_dword
(
&
ptr
,
&
tmp
);
TRACE
(
"Packed size %#x.
\n
"
,
tmp
);
if
(
unknown0
==
1
)
{
read_dword
(
&
ptr
,
&
tmp
);
TRACE
(
"Type description: %#x.
\n
"
,
tmp
);
TRACE
(
"
\t
columns: %u.
\n
"
,
(
tmp
&
D3D10_FX10_TYPE_COLUMN_MASK
)
>>
D3D10_FX10_TYPE_COLUMN_SHIFT
);
TRACE
(
"
\t
rows: %u.
\n
"
,
(
tmp
&
D3D10_FX10_TYPE_ROW_MASK
)
>>
D3D10_FX10_TYPE_ROW_SHIFT
);
TRACE
(
"
\t
unknown bits: %#x.
\n
"
,
tmp
&
~
(
D3D10_FX10_TYPE_COLUMN_MASK
|
D3D10_FX10_TYPE_ROW_MASK
));
}
}
static
HRESULT
parse_fx10_variable
(
struct
d3d10_effect_variable
*
v
,
const
char
**
ptr
,
const
char
*
data
)
{
DWORD
offset
;
...
...
@@ -428,6 +468,7 @@ static HRESULT parse_fx10_variable(struct d3d10_effect_variable *v, const char *
read_dword
(
ptr
,
&
offset
);
TRACE
(
"Variable type info at offset %#x.
\n
"
,
offset
);
parse_fx10_type
(
data
+
offset
,
data
);
skip_dword_unknown
(
ptr
,
1
);
...
...
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