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
30c33c2f
Commit
30c33c2f
authored
Nov 30, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 30, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10/effect: Add sin/cos instruction support for expressions.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
8dcadad5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
effect.c
dlls/d3d10/effect.c
+20
-0
effect.c
dlls/d3d10/tests/effect.c
+0
-0
No files found.
dlls/d3d10/effect.c
View file @
30c33c2f
...
...
@@ -216,6 +216,24 @@ static void pres_neg(float **args, unsigned int n, const struct preshader_instr
retval
[
i
]
=
-
args
[
0
][
i
];
}
static
void
pres_sin
(
float
**
args
,
unsigned
int
n
,
const
struct
preshader_instr
*
instr
)
{
float
*
retval
=
args
[
1
];
unsigned
int
i
;
for
(
i
=
0
;
i
<
instr
->
comp_count
;
++
i
)
retval
[
i
]
=
sin
(
args
[
0
][
i
]);
}
static
void
pres_cos
(
float
**
args
,
unsigned
int
n
,
const
struct
preshader_instr
*
instr
)
{
float
*
retval
=
args
[
1
];
unsigned
int
i
;
for
(
i
=
0
;
i
<
instr
->
comp_count
;
++
i
)
retval
[
i
]
=
cos
(
args
[
0
][
i
]);
}
static
void
pres_ftou
(
float
**
args
,
unsigned
int
n
,
const
struct
preshader_instr
*
instr
)
{
float
*
retval
=
args
[
1
];
...
...
@@ -274,6 +292,8 @@ struct preshader_op_info
static
const
struct
preshader_op_info
preshader_ops
[]
=
{
{
0x101
,
"neg"
,
pres_neg
},
{
0x108
,
"sin"
,
pres_sin
},
{
0x109
,
"cos"
,
pres_cos
},
{
0x133
,
"ftou"
,
pres_ftou
},
{
0x200
,
"min"
,
pres_min
},
{
0x201
,
"max"
,
pres_max
},
...
...
dlls/d3d10/tests/effect.c
View file @
30c33c2f
This diff is collapsed.
Click to expand it.
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