Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
f1f2d0f5
Commit
f1f2d0f5
authored
Nov 18, 2015
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 19, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d2d1: Add a pixel shader for triangle/bitmap/solid draws.
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8446e453
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
0 deletions
+46
-0
render_target.c
dlls/d2d1/render_target.c
+46
-0
No files found.
dlls/d2d1/render_target.c
View file @
f1f2d0f5
...
...
@@ -1663,6 +1663,50 @@ HRESULT d2d_d3d_render_target_init(struct d2d_d3d_render_target *render_target,
0x00000000
,
0x0020800a
,
0x00000000
,
0x00000002
,
0x0020803a
,
0x00000000
,
0x00000001
,
0x0010003a
,
0x00000000
,
0x05000036
,
0x00102072
,
0x00000000
,
0x00100246
,
0x00000000
,
0x0100003e
,
};
static
const
DWORD
ps_code_triangle_bitmap_solid
[]
=
{
#if 0
float3x2 transform;
float opacity;
bool ignore_alpha;
float4 color;
SamplerState s;
Texture2D t;
float4 main(float4 position : SV_POSITION) : SV_Target
{
float2 texcoord;
float4 ret;
texcoord.x = position.x * transform._11 + position.y * transform._21 + transform._31;
texcoord.y = position.x * transform._12 + position.y * transform._22 + transform._32;
ret = t.Sample(s, texcoord) * opacity;
if (ignore_alpha)
ret.a = opacity;
return ret * color.a;
}
#endif
0x43425844
,
0x45447736
,
0x63a6dd80
,
0x1778fc71
,
0x1e6d322e
,
0x00000001
,
0x00000208
,
0x00000003
,
0x0000002c
,
0x00000060
,
0x00000094
,
0x4e475349
,
0x0000002c
,
0x00000001
,
0x00000008
,
0x00000020
,
0x00000000
,
0x00000001
,
0x00000003
,
0x00000000
,
0x0000030f
,
0x505f5653
,
0x5449534f
,
0x004e4f49
,
0x4e47534f
,
0x0000002c
,
0x00000001
,
0x00000008
,
0x00000020
,
0x00000000
,
0x00000000
,
0x00000003
,
0x00000000
,
0x0000000f
,
0x545f5653
,
0x65677261
,
0xabab0074
,
0x52444853
,
0x0000016c
,
0x00000040
,
0x0000005b
,
0x04000059
,
0x00208e46
,
0x00000000
,
0x00000004
,
0x0300005a
,
0x00106000
,
0x00000000
,
0x04001858
,
0x00107000
,
0x00000000
,
0x00005555
,
0x04002064
,
0x00101032
,
0x00000000
,
0x00000001
,
0x03000065
,
0x001020f2
,
0x00000000
,
0x02000068
,
0x00000001
,
0x0800000f
,
0x00100012
,
0x00000000
,
0x00101046
,
0x00000000
,
0x00208046
,
0x00000000
,
0x00000000
,
0x08000000
,
0x00100012
,
0x00000000
,
0x0010000a
,
0x00000000
,
0x0020802a
,
0x00000000
,
0x00000000
,
0x0800000f
,
0x00100042
,
0x00000000
,
0x00101046
,
0x00000000
,
0x00208046
,
0x00000000
,
0x00000001
,
0x08000000
,
0x00100022
,
0x00000000
,
0x0010002a
,
0x00000000
,
0x0020802a
,
0x00000000
,
0x00000001
,
0x09000045
,
0x001000f2
,
0x00000000
,
0x00100046
,
0x00000000
,
0x00107e46
,
0x00000000
,
0x00106000
,
0x00000000
,
0x08000038
,
0x001000f2
,
0x00000000
,
0x00100e46
,
0x00000000
,
0x00208ff6
,
0x00000000
,
0x00000001
,
0x0b000037
,
0x00100082
,
0x00000000
,
0x0020800a
,
0x00000000
,
0x00000002
,
0x0020803a
,
0x00000000
,
0x00000001
,
0x0010003a
,
0x00000000
,
0x08000038
,
0x001020f2
,
0x00000000
,
0x00100e46
,
0x00000000
,
0x00208ff6
,
0x00000000
,
0x00000003
,
0x0100003e
,
};
static
const
DWORD
ps_code_triangle_bitmap_bitmap
[]
=
{
#if 0
...
...
@@ -1763,6 +1807,8 @@ HRESULT d2d_d3d_render_target_init(struct d2d_d3d_render_target *render_target,
D2D_SHAPE_TYPE_TRIANGLE
,
D2D_BRUSH_TYPE_SOLID
,
D2D_BRUSH_TYPE_COUNT
},
{
ps_code_triangle_bitmap
,
sizeof
(
ps_code_triangle_bitmap
),
D2D_SHAPE_TYPE_TRIANGLE
,
D2D_BRUSH_TYPE_BITMAP
,
D2D_BRUSH_TYPE_COUNT
},
{
ps_code_triangle_bitmap_solid
,
sizeof
(
ps_code_triangle_bitmap_solid
),
D2D_SHAPE_TYPE_TRIANGLE
,
D2D_BRUSH_TYPE_BITMAP
,
D2D_BRUSH_TYPE_SOLID
},
{
ps_code_triangle_bitmap_bitmap
,
sizeof
(
ps_code_triangle_bitmap_bitmap
),
D2D_SHAPE_TYPE_TRIANGLE
,
D2D_BRUSH_TYPE_BITMAP
,
D2D_BRUSH_TYPE_BITMAP
},
{
ps_code_bezier_solid
,
sizeof
(
ps_code_bezier_solid
),
...
...
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