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
127d07a3
Commit
127d07a3
authored
Dec 28, 2010
by
Rico Schüller
Committed by
Alexandre Julliard
Dec 28, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dcompiler: Add initial SHDR and SHEX parsing.
parent
a2a7000e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
d3dcompiler_private.h
dlls/d3dcompiler_43/d3dcompiler_private.h
+3
-0
reflection.c
dlls/d3dcompiler_43/reflection.c
+22
-0
No files found.
dlls/d3dcompiler_43/d3dcompiler_private.h
View file @
127d07a3
...
...
@@ -72,6 +72,7 @@ struct d3dcompiler_shader_reflection
char
*
creator
;
UINT
flags
;
UINT
version
;
UINT
bound_resource_count
;
UINT
constant_buffer_count
;
...
...
@@ -630,6 +631,8 @@ void SlDeleteShader(struct bwriter_shader *shader) DECLSPEC_HIDDEN;
#define TAG_PCSG MAKE_TAG('P', 'C', 'S', 'G')
#define TAG_RDEF MAKE_TAG('R', 'D', 'E', 'F')
#define TAG_SDBG MAKE_TAG('S', 'D', 'B', 'G')
#define TAG_SHDR MAKE_TAG('S', 'H', 'D', 'R')
#define TAG_SHEX MAKE_TAG('S', 'H', 'E', 'X')
#define TAG_STAT MAKE_TAG('S', 'T', 'A', 'T')
#define TAG_XNAP MAKE_TAG('X', 'N', 'A', 'P')
#define TAG_XNAS MAKE_TAG('X', 'N', 'A', 'S')
...
...
dlls/d3dcompiler_43/reflection.c
View file @
127d07a3
...
...
@@ -556,6 +556,18 @@ HRESULT d3dcompiler_parse_signature(struct d3dcompiler_shader_signature *s, cons
return
S_OK
;
}
static
HRESULT
d3dcompiler_parse_shdr
(
struct
d3dcompiler_shader_reflection
*
r
,
const
char
*
data
,
DWORD
data_size
)
{
const
char
*
ptr
=
data
;
read_dword
(
&
ptr
,
&
r
->
version
);
TRACE
(
"Shader version: %u
\n
"
,
r
->
version
);
/* todo: Check if anything else is needed from the shdr or shex blob. */
return
S_OK
;
}
HRESULT
d3dcompiler_shader_reflection_init
(
struct
d3dcompiler_shader_reflection
*
reflection
,
const
void
*
data
,
SIZE_T
data_size
)
{
...
...
@@ -588,6 +600,16 @@ HRESULT d3dcompiler_shader_reflection_init(struct d3dcompiler_shader_reflection
}
break
;
case
TAG_SHEX
:
case
TAG_SHDR
:
hr
=
d3dcompiler_parse_shdr
(
reflection
,
section
->
data
,
section
->
data_size
);
if
(
FAILED
(
hr
))
{
WARN
(
"Failed to parse SHDR section.
\n
"
);
goto
err_out
;
}
break
;
case
TAG_RDEF
:
hr
=
d3dcompiler_parse_rdef
(
reflection
,
section
->
data
,
section
->
data_size
);
if
(
FAILED
(
hr
))
...
...
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