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
c982e5f6
Commit
c982e5f6
authored
Sep 17, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 17, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Implement WINED3DSIH_CUT in the GLSL shader backend.
parent
a67ee02a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
glsl_shader.c
dlls/wined3d/glsl_shader.c
+6
-1
No files found.
dlls/wined3d/glsl_shader.c
View file @
c982e5f6
...
...
@@ -2202,6 +2202,11 @@ static void shader_glsl_cross(const struct wined3d_shader_instruction *ins)
shader_addline
(
ins
->
ctx
->
buffer
,
"cross(%s, %s)%s);
\n
"
,
src0_param
.
param_str
,
src1_param
.
param_str
,
dst_mask
);
}
static
void
shader_glsl_cut
(
const
struct
wined3d_shader_instruction
*
ins
)
{
shader_addline
(
ins
->
ctx
->
buffer
,
"EndPrimitive();
\n
"
);
}
/* Process the WINED3DSIO_POW instruction in GLSL (dst = |src0|^src1)
* Src0 and src1 are scalars. Note that D3D uses the absolute of src0, while
* GLSL uses the value as-is. */
...
...
@@ -5029,7 +5034,7 @@ static const SHADER_HANDLER shader_glsl_instruction_handler_table[WINED3DSIH_TAB
/* WINED3DSIH_CMP */
shader_glsl_cmp
,
/* WINED3DSIH_CND */
shader_glsl_cnd
,
/* WINED3DSIH_CRS */
shader_glsl_cross
,
/* WINED3DSIH_CUT */
NULL
,
/* WINED3DSIH_CUT */
shader_glsl_cut
,
/* WINED3DSIH_DCL */
shader_glsl_nop
,
/* WINED3DSIH_DCL_INPUT_PRIMITIVE */
shader_glsl_nop
,
/* WINED3DSIH_DCL_OUTPUT_TOPOLOGY */
shader_glsl_nop
,
...
...
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