Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Steve Lhomme
vlc
Commits
81b00519
Commit
81b00519
authored
Sep 14, 2017
by
Steve Lhomme
Committed by
Jean-Baptiste Kempf
Oct 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contrib: d3d11: add dxgi 1.6 to read IDXGIOutput6
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
38702572
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
81 additions
and
1 deletion
+81
-1
contrib/src/d3d11/dxgi1_6.idl
contrib/src/d3d11/dxgi1_6.idl
+72
-0
contrib/src/d3d11/rules.mak
contrib/src/d3d11/rules.mak
+9
-1
No files found.
contrib/src/d3d11/dxgi1_6.idl
0 → 100644
View file @
81b00519
/*
*
Copyright
2017
Steve
Lhomme
*
*
This
library
is
free
software
; you can redistribute it and/or
*
modify
it
under
the
terms
of
the
GNU
Lesser
General
Public
*
License
as
published
by
the
Free
Software
Foundation
; either
*
version
2.1
of
the
License
,
or
(
at
your
option
)
any
later
version
.
*
*
This
library
is
distributed
in
the
hope
that
it
will
be
useful
,
*
but
WITHOUT
ANY
WARRANTY
; without even the implied warranty of
*
MERCHANTABILITY
or
FITNESS
FOR
A
PARTICULAR
PURPOSE
.
See
the
GNU
*
Lesser
General
Public
License
for
more
details
.
*
*
You
should
have
received
a
copy
of
the
GNU
Lesser
General
Public
*
License
along
with
this
library
; if not, write to the Free Software
*
Foundation
,
Inc
.
,
51
Franklin
St
,
Fifth
Floor
,
Boston
,
MA
02110
-
1301
,
USA
*/
import
"dxgi1_4.idl"
;
cpp_quote
(
"/* HACK as widl segfaults with too many imports */"
)
cpp_quote
(
"#include <dxgi1_5.h>"
)
cpp_quote
(
"#ifndef __dxgi1_5_h__"
)
[
object
,
local
,
uuid
(
80
A07424
-
AB52
-
42
EB
-
833
C
-
0
C42FD282D98
)
]
interface
IDXGIOutput5
:
IDXGIOutput4
{
HRESULT
DuplicateOutput1
(
[
in
]
IUnknown
*
pDevice
,
UINT
Flags
,
[
in
]
UINT
SupportedFormatsCount
,
[
in
]
const
DXGI_FORMAT
*
pSupportedFormats
,
[
out
]
IDXGIOutputDuplication
**
ppOutputDuplication
)
;
}
cpp_quote
(
"#endif /* __dxgi1_5_h__ */"
)
typedef
struct
DXGI_OUTPUT_DESC1
{
WCHAR
DeviceName
[
32
]
;
RECT
DesktopCoordinates
;
BOOL
AttachedToDesktop
;
DXGI_MODE_ROTATION
Rotation
;
HMONITOR
Monitor
;
UINT
BitsPerColor
;
DXGI_COLOR_SPACE_TYPE
ColorSpace
;
FLOAT
RedPrimary
[
2
]
;
FLOAT
GreenPrimary
[
2
]
;
FLOAT
BluePrimary
[
2
]
;
FLOAT
WhitePoint
[
2
]
;
FLOAT
MinLuminance
;
FLOAT
MaxLuminance
;
FLOAT
MaxFullFrameLuminance
;
BOOL
InternalOutput
;
}
DXGI_OUTPUT_DESC1
;
[
object
,
local
,
uuid
(
068346
e8
-
aaec
-
4b84
-
add7
-
137
f513f77a1
)
]
interface
IDXGIOutput6
:
IDXGIOutput5
{
HRESULT
GetDesc1
(
[
out
]
DXGI_OUTPUT_DESC1
*
pDesc
)
;
}
contrib/src/d3d11/rules.mak
View file @
81b00519
...
...
@@ -20,6 +20,7 @@ DST_DXGI12_H = $(PREFIX)/include/dxgi1_2.h
DST_DXGI13_H
=
$(PREFIX)
/include/dxgi1_3.h
DST_DXGI14_H
=
$(PREFIX)
/include/dxgi1_4.h
DST_DXGI15_H
=
$(PREFIX)
/include/dxgi1_5.h
DST_DXGI16_H
=
$(PREFIX)
/include/dxgi1_6.h
ifdef
HAVE_WIN32
...
...
@@ -76,6 +77,10 @@ $(DST_DXGI15_H): $(SRC)/d3d11/dxgi1_5.idl $(DST_DXGI14_H)
mkdir
-p
--
"
$(PREFIX)
/include/"
$(WIDL)
-DBOOL
=
WINBOOL
-Idxgi12
-I
$(IDL_INC_PATH)
-h
-o
$@
$<
$(DST_DXGI16_H)
:
$(SRC)/d3d11/dxgi1_6.idl $(DST_DXGI15_H)
mkdir
-p
--
"
$(PREFIX)
/include/"
$(WIDL)
-DBOOL
=
WINBOOL
-Idxgi12
-I
$(IDL_INC_PATH)
-h
-o
$@
$<
.dxgitype
:
$(DST_DXGITYPE_H)
touch
$@
...
...
@@ -91,5 +96,8 @@ $(DST_DXGI15_H): $(SRC)/d3d11/dxgi1_5.idl $(DST_DXGI14_H)
.dxgi15
:
.dxgi14 $(DST_DXGI15_H)
touch
$@
.d3d11
:
$(DST_D3D11_H) $(DST_DXGIDEBUG_H) .dxgi15
.dxgi16
:
.dxgi15 $(DST_DXGI16_H)
touch
$@
.d3d11
:
$(DST_D3D11_H) $(DST_DXGIDEBUG_H) .dxgi16
touch
$@
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