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
333de16f
Commit
333de16f
authored
Mar 29, 2007
by
Fabian Bieler
Committed by
Alexandre Julliard
Mar 29, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Implement support for projective textures in ps 2.0 and later.
parent
bb00c95c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
2 deletions
+13
-2
baseshader.c
dlls/wined3d/baseshader.c
+3
-0
glsl_shader.c
dlls/wined3d/glsl_shader.c
+7
-2
wined3d_private_types.h
dlls/wined3d/wined3d_private_types.h
+3
-0
No files found.
dlls/wined3d/baseshader.c
View file @
333de16f
...
...
@@ -941,6 +941,9 @@ void shader_trace_init(
default:
TRACE
(
"_(%u)"
,
op
);
}
}
else
if
(
curOpcode
->
opcode
==
WINED3DSIO_TEX
&&
This
->
baseShader
.
hex_version
>=
WINED3DPS_VERSION
(
2
,
0
))
{
if
(
opcode_token
&
WINED3DSI_TEXLD_PROJECT
)
TRACE
(
"p"
);
}
/* Destination token */
...
...
dlls/wined3d/glsl_shader.c
View file @
333de16f
...
...
@@ -1472,8 +1472,13 @@ void pshader_glsl_tex(SHADER_OPCODE_ARG* arg) {
}
}
else
{
sampler_idx
=
arg
->
src
[
1
]
&
WINED3DSP_REGNUM_MASK
;
/* TODO: Handle D3DSI_TEXLD_PROJECTED... */
projected
=
FALSE
;
if
(
arg
->
opcode_token
&
WINED3DSI_TEXLD_PROJECT
)
{
/* ps 2.0 texldp instruction always divides by the fourth component. */
projected
=
TRUE
;
mask
=
WINED3DSP_WRITEMASK_3
;
}
else
{
projected
=
FALSE
;
}
}
sampler_type
=
arg
->
reg_maps
->
samplers
[
sampler_idx
]
&
WINED3DSP_TEXTURETYPE_MASK
;
...
...
dlls/wined3d/wined3d_private_types.h
View file @
333de16f
...
...
@@ -291,6 +291,9 @@ typedef enum _WINED3DSHADER_INSTRUCTION_OPCODE_TYPE {
#define WINED3DSHADER_INSTRUCTION_PREDICATED (1 << 28)
/* Undocumented opcode control to identify projective texture lookups in ps 2.0 and later */
#define WINED3DSI_TEXLD_PROJECT 0x00010000
/** Shader version tokens, and shader end tokens **/
#define WINED3DPS_VERSION(major, minor) (0xFFFF0000 | ((major) << 8) | (minor))
...
...
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