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
1e2fbcc9
Commit
1e2fbcc9
authored
Mar 17, 2014
by
Matteo Bruni
Committed by
Alexandre Julliard
Mar 18, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Split out set_matrix_transpose from set_matrix.
parent
babf0dca
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
8 deletions
+22
-8
effect.c
dlls/d3dx9_36/effect.c
+22
-8
No files found.
dlls/d3dx9_36/effect.c
View file @
1e2fbcc9
...
...
@@ -764,7 +764,7 @@ static void get_matrix(struct d3dx_parameter *param, D3DXMATRIX *matrix, BOOL tr
}
}
static
void
set_matrix
(
struct
d3dx_parameter
*
param
,
const
D3DXMATRIX
*
matrix
,
BOOL
transpose
)
static
void
set_matrix
(
struct
d3dx_parameter
*
param
,
const
D3DXMATRIX
*
matrix
)
{
UINT
i
,
k
;
...
...
@@ -773,7 +773,21 @@ static void set_matrix(struct d3dx_parameter *param, const D3DXMATRIX *matrix, B
for
(
k
=
0
;
k
<
param
->
columns
;
++
k
)
{
set_number
((
FLOAT
*
)
param
->
data
+
i
*
param
->
columns
+
k
,
param
->
type
,
transpose
?
&
matrix
->
u
.
m
[
k
][
i
]
:
&
matrix
->
u
.
m
[
i
][
k
],
D3DXPT_FLOAT
);
&
matrix
->
u
.
m
[
i
][
k
],
D3DXPT_FLOAT
);
}
}
}
static
void
set_matrix_transpose
(
struct
d3dx_parameter
*
param
,
const
D3DXMATRIX
*
matrix
)
{
UINT
i
,
k
;
for
(
i
=
0
;
i
<
param
->
rows
;
++
i
)
{
for
(
k
=
0
;
k
<
param
->
columns
;
++
k
)
{
set_number
((
FLOAT
*
)
param
->
data
+
i
*
param
->
columns
+
k
,
param
->
type
,
&
matrix
->
u
.
m
[
k
][
i
],
D3DXPT_FLOAT
);
}
}
}
...
...
@@ -1916,7 +1930,7 @@ static HRESULT d3dx9_base_effect_set_matrix(struct d3dx9_base_effect *base,
switch
(
param
->
class
)
{
case
D3DXPC_MATRIX_ROWS
:
set_matrix
(
param
,
matrix
,
FALSE
);
set_matrix
(
param
,
matrix
);
return
D3D_OK
;
case
D3DXPC_SCALAR
:
...
...
@@ -1984,7 +1998,7 @@ static HRESULT d3dx9_base_effect_set_matrix_array(struct d3dx9_base_effect *base
case
D3DXPC_MATRIX_ROWS
:
for
(
i
=
0
;
i
<
count
;
++
i
)
{
set_matrix
(
&
param
->
members
[
i
],
&
matrix
[
i
]
,
FALSE
);
set_matrix
(
&
param
->
members
[
i
],
&
matrix
[
i
]);
}
return
D3D_OK
;
...
...
@@ -2058,7 +2072,7 @@ static HRESULT d3dx9_base_effect_set_matrix_pointer_array(struct d3dx9_base_effe
case
D3DXPC_MATRIX_ROWS
:
for
(
i
=
0
;
i
<
count
;
++
i
)
{
set_matrix
(
&
param
->
members
[
i
],
matrix
[
i
]
,
FALSE
);
set_matrix
(
&
param
->
members
[
i
],
matrix
[
i
]);
}
return
D3D_OK
;
...
...
@@ -2128,7 +2142,7 @@ static HRESULT d3dx9_base_effect_set_matrix_transpose(struct d3dx9_base_effect *
switch
(
param
->
class
)
{
case
D3DXPC_MATRIX_ROWS
:
set_matrix
(
param
,
matrix
,
TRUE
);
set_matrix
_transpose
(
param
,
matrix
);
return
D3D_OK
;
case
D3DXPC_SCALAR
:
...
...
@@ -2199,7 +2213,7 @@ static HRESULT d3dx9_base_effect_set_matrix_transpose_array(struct d3dx9_base_ef
case
D3DXPC_MATRIX_ROWS
:
for
(
i
=
0
;
i
<
count
;
++
i
)
{
set_matrix
(
&
param
->
members
[
i
],
&
matrix
[
i
],
TRUE
);
set_matrix
_transpose
(
&
param
->
members
[
i
],
&
matrix
[
i
]
);
}
return
D3D_OK
;
...
...
@@ -2273,7 +2287,7 @@ static HRESULT d3dx9_base_effect_set_matrix_transpose_pointer_array(struct d3dx9
case
D3DXPC_MATRIX_ROWS
:
for
(
i
=
0
;
i
<
count
;
++
i
)
{
set_matrix
(
&
param
->
members
[
i
],
matrix
[
i
],
TRUE
);
set_matrix
_transpose
(
&
param
->
members
[
i
],
matrix
[
i
]
);
}
return
D3D_OK
;
...
...
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