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
c7dbd459
Commit
c7dbd459
authored
Jun 23, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 23, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d2d1: Implement IsBufferPrecisionSupported().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
072eb3a5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
device.c
dlls/d2d1/device.c
+23
-1
No files found.
dlls/d2d1/device.c
View file @
c7dbd459
...
...
@@ -2045,9 +2045,31 @@ static BOOL STDMETHODCALLTYPE d2d_device_context_IsDxgiFormatSupported(ID2D1Devi
static
BOOL
STDMETHODCALLTYPE
d2d_device_context_IsBufferPrecisionSupported
(
ID2D1DeviceContext1
*
iface
,
D2D1_BUFFER_PRECISION
buffer_precision
)
{
FIXME
(
"iface %p, buffer_precision %#x stub!
\n
"
,
iface
,
buffer_precision
);
struct
d2d_device_context
*
context
=
impl_from_ID2D1DeviceContext
(
iface
);
DXGI_FORMAT
format
;
UINT
support
=
0
;
HRESULT
hr
;
TRACE
(
"iface %p, buffer_precision %u.
\n
"
,
iface
,
buffer_precision
);
switch
(
buffer_precision
)
{
case
D2D1_BUFFER_PRECISION_8BPC_UNORM
:
format
=
DXGI_FORMAT_R8G8B8A8_UNORM
;
break
;
case
D2D1_BUFFER_PRECISION_8BPC_UNORM_SRGB
:
format
=
DXGI_FORMAT_R8G8B8A8_UNORM_SRGB
;
break
;
case
D2D1_BUFFER_PRECISION_16BPC_UNORM
:
format
=
DXGI_FORMAT_R16G16B16A16_UNORM
;
break
;
case
D2D1_BUFFER_PRECISION_16BPC_FLOAT
:
format
=
DXGI_FORMAT_R16G16B16A16_FLOAT
;
break
;
case
D2D1_BUFFER_PRECISION_32BPC_FLOAT
:
format
=
DXGI_FORMAT_R32G32B32A32_FLOAT
;
break
;
default:
WARN
(
"Unexpected precision %u.
\n
"
,
buffer_precision
);
return
FALSE
;
}
if
(
FAILED
(
hr
=
ID3D11Device1_CheckFormatSupport
(
context
->
d3d_device
,
format
,
&
support
)))
{
WARN
(
"Format support check failed, hr %#lx.
\n
"
,
hr
);
}
return
!!
(
support
&
D3D11_FORMAT_SUPPORT_BUFFER
);
}
static
void
STDMETHODCALLTYPE
d2d_device_context_GetImageLocalBounds
(
ID2D1DeviceContext1
*
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