Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
3f99f4bf
Commit
3f99f4bf
authored
15 years ago
by
Rico Schüller
Committed by
Alexandre Julliard
15 years ago
Browse files
Options
Downloads
Patches
Plain Diff
d3d10: Add initial type parsing code.
parent
d451778b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/d3d10/effect.c
+41
-0
41 additions, 0 deletions
dlls/d3d10/effect.c
with
41 additions
and
0 deletions
dlls/d3d10/effect.c
+
41
−
0
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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment