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
45e8a644
Commit
45e8a644
authored
Jul 10, 2012
by
Matteo Bruni
Committed by
Alexandre Julliard
Jul 10, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dcompiler: Parse compilation target.
parent
29ba39fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
3 deletions
+32
-3
compiler.c
dlls/d3dcompiler_43/compiler.c
+32
-3
No files found.
dlls/d3dcompiler_43/compiler.c
View file @
45e8a644
...
...
@@ -496,14 +496,43 @@ static HRESULT compile_shader(const char *preproc_shader, const char *target, co
struct
bwriter_shader
*
shader
;
char
*
messages
=
NULL
;
HRESULT
hr
;
DWORD
*
res
,
size
;
DWORD
*
res
,
size
,
major
,
minor
;
ID3DBlob
*
buffer
;
char
*
pos
;
enum
shader_type
shader_type
;
TRACE
(
"Preprocessed shader source: %s
\n
"
,
debugstr_a
(
preproc_shader
));
FIXME
(
"Parse compilation target.
\n
"
);
shader
=
parse_hlsl_shader
(
preproc_shader
,
ST_VERTEX
,
2
,
0
,
entrypoint
,
&
messages
);
TRACE
(
"Parsing compilation target %s.
\n
"
,
debugstr_a
(
target
));
if
(
strlen
(
target
)
!=
6
||
target
[
1
]
!=
's'
||
target
[
2
]
!=
'_'
||
target
[
4
]
!=
'_'
)
{
FIXME
(
"Unknown compilation target %s.
\n
"
,
debugstr_a
(
target
));
return
D3DERR_INVALIDCALL
;
}
if
(
target
[
0
]
==
'v'
)
shader_type
=
ST_VERTEX
;
else
if
(
target
[
0
]
==
'p'
)
shader_type
=
ST_PIXEL
;
else
{
FIXME
(
"Unsupported shader target type %s.
\n
"
,
debugstr_a
(
target
));
return
D3DERR_INVALIDCALL
;
}
major
=
target
[
3
]
-
'0'
;
if
(
major
==
0
||
major
>
5
)
{
FIXME
(
"Unsupported shader target major version %d.
\n
"
,
major
);
return
D3DERR_INVALIDCALL
;
}
minor
=
target
[
5
]
-
'0'
;
if
(
minor
>
1
||
(
minor
==
1
&&
(
shader_type
!=
ST_VERTEX
||
major
>
1
)))
{
FIXME
(
"Unsupported shader target minor version %d.
\n
"
,
minor
);
return
D3DERR_INVALIDCALL
;
}
shader
=
parse_hlsl_shader
(
preproc_shader
,
shader_type
,
major
,
minor
,
entrypoint
,
&
messages
);
if
(
messages
)
{
...
...
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