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
89e1a761
Commit
89e1a761
authored
Jun 19, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 20, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d2d1/effect: Add LoadComputeShader().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
f15b3172
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
effect.c
dlls/d2d1/effect.c
+19
-2
No files found.
dlls/d2d1/effect.c
View file @
89e1a761
...
...
@@ -247,10 +247,27 @@ static HRESULT STDMETHODCALLTYPE d2d_effect_context_LoadVertexShader(ID2D1Effect
static
HRESULT
STDMETHODCALLTYPE
d2d_effect_context_LoadComputeShader
(
ID2D1EffectContext
*
iface
,
REFGUID
shader_id
,
const
BYTE
*
buffer
,
UINT32
buffer_size
)
{
FIXME
(
"iface %p, shader_id %s, buffer %p, buffer_size %u stub!
\n
"
,
struct
d2d_effect_context
*
effect_context
=
impl_from_ID2D1EffectContext
(
iface
);
ID3D11ComputeShader
*
shader
;
HRESULT
hr
;
TRACE
(
"iface %p, shader_id %s, buffer %p, buffer_size %u.
\n
"
,
iface
,
debugstr_guid
(
shader_id
),
buffer
,
buffer_size
);
return
E_NOTIMPL
;
if
(
ID2D1EffectContext_IsShaderLoaded
(
iface
,
shader_id
))
return
S_OK
;
if
(
FAILED
(
hr
=
ID3D11Device1_CreateComputeShader
(
effect_context
->
device_context
->
d3d_device
,
buffer
,
buffer_size
,
NULL
,
&
shader
)))
{
WARN
(
"Failed to create a compute shader, hr %#lx.
\n
"
,
hr
);
return
hr
;
}
hr
=
d2d_effect_context_add_shader
(
effect_context
,
shader_id
,
shader
);
ID3D11ComputeShader_Release
(
shader
);
return
hr
;
}
static
BOOL
STDMETHODCALLTYPE
d2d_effect_context_IsShaderLoaded
(
ID2D1EffectContext
*
iface
,
REFGUID
shader_id
)
...
...
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