Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
bfcd4135
Commit
bfcd4135
authored
Dec 22, 2010
by
Rico Schüller
Committed by
Alexandre Julliard
Dec 22, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dcompiler: Parse PCSG in the reflection interface.
parent
ae98cb46
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
d3dcompiler_private.h
dlls/d3dcompiler_43/d3dcompiler_private.h
+1
-0
reflection.c
dlls/d3dcompiler_43/reflection.c
+23
-0
No files found.
dlls/d3dcompiler_43/d3dcompiler_private.h
View file @
bfcd4135
...
@@ -99,6 +99,7 @@ struct d3dcompiler_shader_reflection
...
@@ -99,6 +99,7 @@ struct d3dcompiler_shader_reflection
struct
d3dcompiler_shader_signature
*
isgn
;
struct
d3dcompiler_shader_signature
*
isgn
;
struct
d3dcompiler_shader_signature
*
osgn
;
struct
d3dcompiler_shader_signature
*
osgn
;
struct
d3dcompiler_shader_signature
*
pcsg
;
};
};
/* reflection handling */
/* reflection handling */
...
...
dlls/d3dcompiler_43/reflection.c
View file @
bfcd4135
...
@@ -48,6 +48,12 @@ static void reflection_cleanup(struct d3dcompiler_shader_reflection *ref)
...
@@ -48,6 +48,12 @@ static void reflection_cleanup(struct d3dcompiler_shader_reflection *ref)
free_signature
(
ref
->
osgn
);
free_signature
(
ref
->
osgn
);
HeapFree
(
GetProcessHeap
(),
0
,
ref
->
osgn
);
HeapFree
(
GetProcessHeap
(),
0
,
ref
->
osgn
);
}
}
if
(
ref
->
pcsg
)
{
free_signature
(
ref
->
pcsg
);
HeapFree
(
GetProcessHeap
(),
0
,
ref
->
pcsg
);
}
}
}
static
inline
struct
d3dcompiler_shader_reflection
*
impl_from_ID3D11ShaderReflection
(
ID3D11ShaderReflection
*
iface
)
static
inline
struct
d3dcompiler_shader_reflection
*
impl_from_ID3D11ShaderReflection
(
ID3D11ShaderReflection
*
iface
)
...
@@ -518,6 +524,23 @@ HRESULT d3dcompiler_shader_reflection_init(struct d3dcompiler_shader_reflection
...
@@ -518,6 +524,23 @@ HRESULT d3dcompiler_shader_reflection_init(struct d3dcompiler_shader_reflection
}
}
break
;
break
;
case
TAG_PCSG
:
reflection
->
pcsg
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
reflection
->
pcsg
));
if
(
!
reflection
->
pcsg
)
{
ERR
(
"Failed to allocate PCSG memory.
\n
"
);
hr
=
E_OUTOFMEMORY
;
goto
err_out
;
}
hr
=
d3dcompiler_parse_signature
(
reflection
->
pcsg
,
section
->
data
,
section
->
data_size
);
if
(
FAILED
(
hr
))
{
WARN
(
"Failed to parse section PCSG.
\n
"
);
goto
err_out
;
}
break
;
default:
default:
FIXME
(
"Unhandled section %s!
\n
"
,
debugstr_an
((
const
char
*
)
&
section
->
tag
,
4
));
FIXME
(
"Unhandled section %s!
\n
"
,
debugstr_an
((
const
char
*
)
&
section
->
tag
,
4
));
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