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
f7571743
Commit
f7571743
authored
Feb 28, 2011
by
Rico Schüller
Committed by
Alexandre Julliard
Mar 01, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dcompiler: Use defines for shader target masks.
parent
f9696983
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
reflection.c
dlls/d3dcompiler_43/reflection.c
+7
-4
No files found.
dlls/d3dcompiler_43/reflection.c
View file @
f7571743
...
...
@@ -31,6 +31,9 @@ enum D3DCOMPILER_SIGNATURE_ELEMENT_SIZE
D3DCOMPILER_SIGNATURE_ELEMENT_SIZE7
=
7
,
};
#define D3DCOMPILER_SHADER_TARGET_VERSION_MASK 0xffff
#define D3DCOMPILER_SHADER_TARGET_SHADERTYPE_MASK 0xffff0000
static
struct
d3dcompiler_shader_reflection_type
*
get_reflection_type
(
struct
d3dcompiler_shader_reflection
*
reflection
,
const
char
*
data
,
DWORD
offset
);
const
struct
ID3D11ShaderReflectionConstantBufferVtbl
d3dcompiler_shader_reflection_constant_buffer_vtbl
;
...
...
@@ -1108,7 +1111,7 @@ static HRESULT d3dcompiler_parse_type(struct d3dcompiler_shader_reflection_type
read_dword
(
&
ptr
,
&
member_offset
);
TRACE
(
"Member Offset %u
\n
"
,
member_offset
);
if
((
type
->
reflection
->
target
&
0xffff
)
>=
0x500
)
if
((
type
->
reflection
->
target
&
D3DCOMPILER_SHADER_TARGET_VERSION_MASK
)
>=
0x500
)
skip_dword_unknown
(
&
ptr
,
4
);
if
(
desc
->
Members
)
...
...
@@ -1247,7 +1250,7 @@ static HRESULT d3dcompiler_parse_variables(struct d3dcompiler_shader_reflection_
goto
err_out
;
}
if
((
cb
->
reflection
->
target
&
0xffff
)
>=
0x500
)
if
((
cb
->
reflection
->
target
&
D3DCOMPILER_SHADER_TARGET_VERSION_MASK
)
>=
0x500
)
skip_dword_unknown
(
&
ptr
,
4
);
}
...
...
@@ -1306,7 +1309,7 @@ static HRESULT d3dcompiler_parse_rdef(struct d3dcompiler_shader_reflection *r, c
TRACE
(
"Creator: %s.
\n
"
,
debugstr_a
(
creator
));
/* todo: Parse RD11 */
if
((
r
->
target
&
0x0000ffff
)
>=
0x500
)
if
((
r
->
target
&
D3DCOMPILER_SHADER_TARGET_VERSION_MASK
)
>=
0x500
)
{
skip_dword_unknown
(
&
ptr
,
8
);
}
...
...
@@ -1516,7 +1519,7 @@ static HRESULT d3dcompiler_parse_signature(struct d3dcompiler_shader_signature *
d
[
i
].
Mask
=
mask
&
0xff
;
/* pixel shaders have a special handling for SystemValueType in the output signature */
if
(((
target
&
0xffff0000
)
==
0xffff0000
)
&&
(
section
->
tag
==
TAG_OSG5
||
section
->
tag
==
TAG_OSGN
))
if
(((
target
&
D3DCOMPILER_SHADER_TARGET_SHADERTYPE_MASK
)
==
0xffff0000
)
&&
(
section
->
tag
==
TAG_OSG5
||
section
->
tag
==
TAG_OSGN
))
{
TRACE
(
"Pixelshader output signature fixup.
\n
"
);
...
...
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