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
babf0dca
Commit
babf0dca
authored
Mar 17, 2014
by
Matteo Bruni
Committed by
Alexandre Julliard
Mar 18, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Parse "usage 2" effect resources.
parent
0e0b6131
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
effect.c
dlls/d3dx9_36/effect.c
+34
-0
No files found.
dlls/d3dx9_36/effect.c
View file @
babf0dca
...
@@ -96,6 +96,7 @@ enum STATE_TYPE
...
@@ -96,6 +96,7 @@ enum STATE_TYPE
ST_CONSTANT
,
ST_CONSTANT
,
ST_PARAMETER
,
ST_PARAMETER
,
ST_FXLC
,
ST_FXLC
,
ST_ARRAY_SELECTOR
,
};
};
struct
d3dx_parameter
struct
d3dx_parameter
...
@@ -4983,6 +4984,32 @@ static HRESULT d3dx9_create_object(struct d3dx9_base_effect *base, struct d3dx_o
...
@@ -4983,6 +4984,32 @@ static HRESULT d3dx9_create_object(struct d3dx9_base_effect *base, struct d3dx_o
return
D3D_OK
;
return
D3D_OK
;
}
}
static
HRESULT
d3dx9_parse_array_selector
(
struct
d3dx9_base_effect
*
base
,
struct
d3dx_parameter
*
param
)
{
DWORD
string_size
;
struct
d3dx_object
*
object
=
&
base
->
objects
[
param
->
object_id
];
char
*
ptr
=
object
->
data
;
TRACE
(
"Parsing array entry selection state for parameter %p.
\n
"
,
param
);
string_size
=
*
(
DWORD
*
)
ptr
;
param
->
referenced_param
=
get_parameter_by_name
(
base
,
NULL
,
ptr
+
4
);
if
(
param
->
referenced_param
)
{
TRACE
(
"Mapping to parameter %s.
\n
"
,
debugstr_a
(
param
->
referenced_param
->
name
));
}
else
{
FIXME
(
"Referenced parameter %s not found.
\n
"
,
ptr
+
4
);
return
D3DXERR_INVALIDDATA
;
}
TRACE
(
"Unknown DWORD: 0x%.8x.
\n
"
,
*
(
DWORD
*
)(
ptr
+
string_size
));
FIXME
(
"Parse preshader.
\n
"
);
return
D3D_OK
;
}
static
HRESULT
d3dx9_parse_resource
(
struct
d3dx9_base_effect
*
base
,
const
char
*
data
,
const
char
**
ptr
)
static
HRESULT
d3dx9_parse_resource
(
struct
d3dx9_base_effect
*
base
,
const
char
*
data
,
const
char
**
ptr
)
{
{
DWORD
technique_index
;
DWORD
technique_index
;
...
@@ -5121,6 +5148,13 @@ static HRESULT d3dx9_parse_resource(struct d3dx9_base_effect *base, const char *
...
@@ -5121,6 +5148,13 @@ static HRESULT d3dx9_parse_resource(struct d3dx9_base_effect *base, const char *
}
}
break
;
break
;
case
2
:
state
->
type
=
ST_ARRAY_SELECTOR
;
if
(
FAILED
(
hr
=
d3dx9_copy_data
(
object
,
ptr
)))
return
hr
;
hr
=
d3dx9_parse_array_selector
(
base
,
param
);
break
;
default:
default:
FIXME
(
"Unknown usage %x
\n
"
,
usage
);
FIXME
(
"Unknown usage %x
\n
"
,
usage
);
break
;
break
;
...
...
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