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
94bd5c65
Commit
94bd5c65
authored
Oct 17, 2008
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 17, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxgi: Add the IDXGISwapChain interface.
parent
2d1da818
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
71 additions
and
0 deletions
+71
-0
dxgi.idl
include/dxgi.idl
+71
-0
No files found.
include/dxgi.idl
View file @
94bd5c65
...
@@ -22,6 +22,18 @@ cpp_quote("#if 0")
...
@@ -22,6 +22,18 @@ cpp_quote("#if 0")
typedef
HANDLE
HMONITOR
;
typedef
HANDLE
HMONITOR
;
cpp_quote
(
"#endif"
)
cpp_quote
(
"#endif"
)
typedef
UINT
DXGI_USAGE
;
const
DXGI_USAGE
DXGI_USAGE_SHADER_INPUT
=
0
x10L
;
const
DXGI_USAGE
DXGI_USAGE_RENDER_TARGET_OUTPUT
=
0
x20L
;
const
DXGI_USAGE
DXGI_USAGE_BACK_BUFFER
=
0
x40L
;
const
DXGI_USAGE
DXGI_USAGE_SHARED
=
0
x80L
;
const
DXGI_USAGE
DXGI_USAGE_READ_ONLY
=
0
x100L
;
typedef
enum
DXGI_SWAP_EFFECT
{
DXGI_SWAP_EFFECT_DISCARD
=
0
,
DXGI_SWAP_EFFECT_SEQUENTIAL
=
1
,
}
DXGI_SWAP_EFFECT
;
typedef
struct
DXGI_SURFACE_DESC
{
typedef
struct
DXGI_SURFACE_DESC
{
UINT
Width
;
UINT
Width
;
UINT
Height
;
UINT
Height
;
...
@@ -50,6 +62,17 @@ typedef struct DXGI_FRAME_STATISTICS {
...
@@ -50,6 +62,17 @@ typedef struct DXGI_FRAME_STATISTICS {
LARGE_INTEGER
SyncGPUTime
;
LARGE_INTEGER
SyncGPUTime
;
}
DXGI_FRAME_STATISTICS
;
}
DXGI_FRAME_STATISTICS
;
typedef
struct
DXGI_SWAP_CHAIN_DESC
{
DXGI_MODE_DESC
BufferDesc
;
DXGI_SAMPLE_DESC
SampleDesc
;
DXGI_USAGE
BufferUsage
;
UINT
BufferCount
;
HWND
OutputWindow
;
BOOL
Windowed
;
DXGI_SWAP_EFFECT
SwapEffect
;
UINT
Flags
;
}
DXGI_SWAP_CHAIN_DESC
;
[
[
object
,
object
,
local
,
local
,
...
@@ -156,3 +179,51 @@ interface IDXGIOutput : IDXGIObject
...
@@ -156,3 +179,51 @@ interface IDXGIOutput : IDXGIObject
[
out
]
DXGI_FRAME_STATISTICS
*
stats
[
out
]
DXGI_FRAME_STATISTICS
*
stats
)
;
)
;
}
}
[
object
,
local
,
uuid
(
310
d36a0
-
d2e7
-
4
c0a
-
aa04
-
6
a9d23b8886a
)
]
interface
IDXGISwapChain
:
IDXGIDeviceSubObject
{
HRESULT
Present
(
[
in
]
UINT
sync_interval
,
[
in
]
UINT
flags
)
;
HRESULT
GetBuffer
(
[
in
]
UINT
buffer_idx
,
[
in
]
REFIID
riid
,
[
in
,
out
]
void
**
surface
)
;
HRESULT
SetFullscreenState
(
[
in
]
BOOL
fullscreen
,
[
in
]
IDXGIOutput
*
target
)
;
HRESULT
GetFullscreenState
(
[
out
]
BOOL
*
fullscreen
,
[
out
]
IDXGIOutput
**
target
)
;
HRESULT
GetDesc
(
[
out
]
DXGI_SWAP_CHAIN_DESC
*
desc
)
;
HRESULT
ResizeBuffers
(
[
in
]
UINT
buffer_count
,
[
in
]
UINT
width
,
[
in
]
UINT
height
,
[
in
]
DXGI_FORMAT
format
,
[
in
]
UINT
flags
)
;
HRESULT
ResizeTarget
(
[
in
]
const
DXGI_MODE_DESC
target_mode_desc
)
;
HRESULT
GetContainingOutput
(
[
out
]
IDXGIOutput
**
output
)
;
HRESULT
GetFrameStatistics
(
[
out
]
DXGI_FRAME_STATISTICS
*
stats
)
;
HRESULT
GetLastPresentCount
(
[
out
]
UINT
*
last_present_count
)
;
}
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