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
835dedc9
Commit
835dedc9
authored
Sep 30, 2009
by
Rico Schüller
Committed by
Alexandre Julliard
Sep 30, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10: Rename ConstantBuffer's variable to member.
parent
f20f4119
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
15 deletions
+15
-15
d3d10_private.h
dlls/d3d10/d3d10_private.h
+2
-2
effect.c
dlls/d3d10/effect.c
+13
-13
No files found.
dlls/d3d10/d3d10_private.h
View file @
835dedc9
...
...
@@ -109,9 +109,9 @@ struct d3d10_effect_local_buffer
struct
d3d10_effect
*
effect
;
char
*
name
;
DWORD
data_size
;
DWORD
variable
_count
;
DWORD
member
_count
;
DWORD
annotation_count
;
struct
d3d10_effect_variable
*
variable
s
;
struct
d3d10_effect_variable
*
member
s
;
struct
d3d10_effect_variable
*
annotations
;
};
...
...
dlls/d3d10/effect.c
View file @
835dedc9
...
...
@@ -734,8 +734,8 @@ static HRESULT parse_fx10_local_buffer(struct d3d10_effect_local_buffer *l, cons
skip_dword_unknown
(
ptr
,
1
);
read_dword
(
ptr
,
&
l
->
variable
_count
);
TRACE
(
"Local buffer
variable count: %#x.
\n
"
,
l
->
variable
_count
);
read_dword
(
ptr
,
&
l
->
member
_count
);
TRACE
(
"Local buffer
member count: %#x.
\n
"
,
l
->
member
_count
);
skip_dword_unknown
(
ptr
,
1
);
...
...
@@ -759,16 +759,16 @@ static HRESULT parse_fx10_local_buffer(struct d3d10_effect_local_buffer *l, cons
if
(
FAILED
(
hr
))
return
hr
;
}
l
->
variables
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
l
->
variable_count
*
sizeof
(
*
l
->
variable
s
));
if
(
!
l
->
variable
s
)
l
->
members
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
l
->
member_count
*
sizeof
(
*
l
->
member
s
));
if
(
!
l
->
member
s
)
{
ERR
(
"Failed to allocate
variable
s memory.
\n
"
);
ERR
(
"Failed to allocate
member
s memory.
\n
"
);
return
E_OUTOFMEMORY
;
}
for
(
i
=
0
;
i
<
l
->
variable
_count
;
++
i
)
for
(
i
=
0
;
i
<
l
->
member
_count
;
++
i
)
{
struct
d3d10_effect_variable
*
v
=
&
l
->
variable
s
[
i
];
struct
d3d10_effect_variable
*
v
=
&
l
->
member
s
[
i
];
v
->
buffer
=
l
;
v
->
effect
=
l
->
effect
;
...
...
@@ -1068,13 +1068,13 @@ static void d3d10_effect_local_buffer_destroy(struct d3d10_effect_local_buffer *
TRACE
(
"local buffer %p.
\n
"
,
l
);
HeapFree
(
GetProcessHeap
(),
0
,
l
->
name
);
if
(
l
->
variable
s
)
if
(
l
->
member
s
)
{
for
(
i
=
0
;
i
<
l
->
variable
_count
;
++
i
)
for
(
i
=
0
;
i
<
l
->
member
_count
;
++
i
)
{
d3d10_effect_variable_destroy
(
&
l
->
variable
s
[
i
]);
d3d10_effect_variable_destroy
(
&
l
->
member
s
[
i
]);
}
HeapFree
(
GetProcessHeap
(),
0
,
l
->
variable
s
);
HeapFree
(
GetProcessHeap
(),
0
,
l
->
member
s
);
}
if
(
l
->
annotations
)
...
...
@@ -1254,9 +1254,9 @@ static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_GetVariableB
struct
d3d10_effect_local_buffer
*
l
=
&
This
->
local_buffers
[
i
];
unsigned
int
j
;
for
(
j
=
0
;
j
<
l
->
variable
_count
;
++
j
)
for
(
j
=
0
;
j
<
l
->
member
_count
;
++
j
)
{
struct
d3d10_effect_variable
*
v
=
&
l
->
variable
s
[
j
];
struct
d3d10_effect_variable
*
v
=
&
l
->
member
s
[
j
];
if
(
!
strcmp
(
v
->
name
,
name
))
{
...
...
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