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
3c75a985
Commit
3c75a985
authored
Feb 22, 2011
by
Rico Schüller
Committed by
Alexandre Julliard
Feb 23, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dcompiler: Implement ID3D11ShaderRefleflection::GetVariableByName().
parent
0d198362
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
2 deletions
+29
-2
reflection.c
dlls/d3dcompiler_43/reflection.c
+29
-2
No files found.
dlls/d3dcompiler_43/reflection.c
View file @
3c75a985
...
...
@@ -418,9 +418,36 @@ static HRESULT STDMETHODCALLTYPE d3dcompiler_shader_reflection_GetPatchConstantP
static
struct
ID3D11ShaderReflectionVariable
*
STDMETHODCALLTYPE
d3dcompiler_shader_reflection_GetVariableByName
(
ID3D11ShaderReflection
*
iface
,
LPCSTR
name
)
{
FIXME
(
"iface %p, name %s stub!
\n
"
,
iface
,
name
);
struct
d3dcompiler_shader_reflection
*
This
=
impl_from_ID3D11ShaderReflection
(
iface
);
unsigned
int
i
,
k
;
return
NULL
;
TRACE
(
"iface %p, name %s
\n
"
,
iface
,
debugstr_a
(
name
));
if
(
!
name
)
{
WARN
(
"Invalid name specified
\n
"
);
return
&
null_variable
.
ID3D11ShaderReflectionVariable_iface
;
}
for
(
i
=
0
;
i
<
This
->
constant_buffer_count
;
++
i
)
{
struct
d3dcompiler_shader_reflection_constant_buffer
*
cb
=
&
This
->
constant_buffers
[
i
];
for
(
k
=
0
;
k
<
cb
->
variable_count
;
++
k
)
{
struct
d3dcompiler_shader_reflection_variable
*
v
=
&
cb
->
variables
[
k
];
if
(
!
strcmp
(
v
->
name
,
name
))
{
TRACE
(
"Returning ID3D11ShaderReflectionVariable %p.
\n
"
,
v
);
return
&
v
->
ID3D11ShaderReflectionVariable_iface
;
}
}
}
WARN
(
"Invalid name specified
\n
"
);
return
&
null_variable
.
ID3D11ShaderReflectionVariable_iface
;
}
static
HRESULT
STDMETHODCALLTYPE
d3dcompiler_shader_reflection_GetResourceBindingDescByName
(
...
...
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