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
73f9d9f5
Commit
73f9d9f5
authored
Feb 21, 2011
by
Rico Schüller
Committed by
Alexandre Julliard
Feb 22, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dcompiler: Implement ID3D11ShaderReflectionConstantBuffer::GetVariableByIndex().
parent
debfb061
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
reflection.c
dlls/d3dcompiler_43/reflection.c
+12
-2
No files found.
dlls/d3dcompiler_43/reflection.c
View file @
73f9d9f5
...
...
@@ -32,9 +32,11 @@ enum D3DCOMPILER_SIGNATURE_ELEMENT_SIZE
};
const
struct
ID3D11ShaderReflectionConstantBufferVtbl
d3dcompiler_shader_reflection_constant_buffer_vtbl
;
const
struct
ID3D11ShaderReflectionVariableVtbl
d3dcompiler_shader_reflection_variable_vtbl
;
/* null objects - needed for invalid calls */
static
struct
d3dcompiler_shader_reflection_constant_buffer
null_constant_buffer
=
{{
&
d3dcompiler_shader_reflection_constant_buffer_vtbl
}};
static
struct
d3dcompiler_shader_reflection_variable
null_variable
=
{{
&
d3dcompiler_shader_reflection_variable_vtbl
}};
static
BOOL
copy_name
(
const
char
*
ptr
,
char
**
name
)
{
...
...
@@ -593,9 +595,17 @@ static HRESULT STDMETHODCALLTYPE d3dcompiler_shader_reflection_constant_buffer_G
static
ID3D11ShaderReflectionVariable
*
STDMETHODCALLTYPE
d3dcompiler_shader_reflection_constant_buffer_GetVariableByIndex
(
ID3D11ShaderReflectionConstantBuffer
*
iface
,
UINT
index
)
{
FIXME
(
"iface %p, index %u stub!
\n
"
,
iface
,
index
);
struct
d3dcompiler_shader_reflection_constant_buffer
*
This
=
impl_from_ID3D11ShaderReflectionConstantBuffer
(
iface
);
return
NULL
;
TRACE
(
"iface %p, index %u
\n
"
,
iface
,
index
);
if
(
index
>=
This
->
variable_count
)
{
WARN
(
"Invalid index specified
\n
"
);
return
&
null_variable
.
ID3D11ShaderReflectionVariable_iface
;
}
return
&
This
->
variables
[
index
].
ID3D11ShaderReflectionVariable_iface
;
}
static
ID3D11ShaderReflectionVariable
*
STDMETHODCALLTYPE
d3dcompiler_shader_reflection_constant_buffer_GetVariableByName
(
...
...
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