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
0b09ecb2
Commit
0b09ecb2
authored
Jun 19, 2006
by
Jason Green
Committed by
Alexandre Julliard
Jun 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Move D3DSIO_DEF instruction for ARB shaders into arb_program_shader.c.
parent
99c855e6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
16 deletions
+17
-16
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+17
-0
baseshader.c
dlls/wined3d/baseshader.c
+0
-16
No files found.
dlls/wined3d/arb_program_shader.c
View file @
0b09ecb2
...
...
@@ -144,4 +144,21 @@ void shader_generate_arb_declarations(
This
->
baseShader
.
limits
.
constant_float
-
1
);
}
/** Process the D3DSIO_DEF opcode into an ARB string - creates a local vec4
* float constant, and stores it's usage on the regmaps. */
void
shader_hw_def
(
SHADER_OPCODE_ARG
*
arg
)
{
DWORD
reg
=
arg
->
dst
&
D3DSP_REGNUM_MASK
;
shader_addline
(
arg
->
buffer
,
"PARAM C%lu = { %f, %f, %f, %f };
\n
"
,
reg
,
*
((
const
float
*
)(
arg
->
src
+
0
)),
*
((
const
float
*
)(
arg
->
src
+
1
)),
*
((
const
float
*
)(
arg
->
src
+
2
)),
*
((
const
float
*
)(
arg
->
src
+
3
))
);
arg
->
reg_maps
->
constantsF
[
reg
]
=
1
;
}
/* TODO: Add more ARB_[vertex/fragment]_program specific code here */
dlls/wined3d/baseshader.c
View file @
0b09ecb2
...
...
@@ -823,22 +823,6 @@ void shader_dump_ins_modifiers(const DWORD output) {
FIXME
(
"_unrecognized_modifier(%#lx)"
,
mmask
>>
D3DSP_DSTMOD_SHIFT
);
}
/** Process the D3DSIO_DEF opcode into an ARB string - creates a local vec4
* float constant, and stores it's usage on the regmaps. */
void
shader_hw_def
(
SHADER_OPCODE_ARG
*
arg
)
{
DWORD
reg
=
arg
->
dst
&
D3DSP_REGNUM_MASK
;
shader_addline
(
arg
->
buffer
,
"PARAM C%lu = { %f, %f, %f, %f };
\n
"
,
reg
,
*
((
const
float
*
)(
arg
->
src
+
0
)),
*
((
const
float
*
)(
arg
->
src
+
1
)),
*
((
const
float
*
)(
arg
->
src
+
2
)),
*
((
const
float
*
)(
arg
->
src
+
3
))
);
arg
->
reg_maps
->
constantsF
[
reg
]
=
1
;
}
/* First pass: trace shader, initialize length and version */
void
shader_trace_init
(
IWineD3DBaseShader
*
iface
,
...
...
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