/usr/include/wine/windows/dxgi1_2.idl is in libwine-dev 3.0-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 | /*
* Copyright 2014 Jacek Caban for CodeWeavers
*
* 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 "dxgi.idl";
const UINT DXGI_ENUM_MODES_STEREO = 0x4;
const UINT DXGI_ENUM_MODES_DISABLED_STEREO = 0x8;
const DWORD DXGI_SHARED_RESOURCE_READ = 0x80000000;
const DWORD DXGI_SHARED_RESOURCE_WRITE = 0x00000001;
typedef enum _DXGI_OFFER_RESOURCE_PRIORITY {
DXGI_OFFER_RESOURCE_PRIORITY_LOW = 1,
DXGI_OFFER_RESOURCE_PRIORITY_NORMAL,
DXGI_OFFER_RESOURCE_PRIORITY_HIGH
} DXGI_OFFER_RESOURCE_PRIORITY;
typedef enum DXGI_ALPHA_MODE {
DXGI_ALPHA_MODE_UNSPECIFIED = 0,
DXGI_ALPHA_MODE_PREMULTIPLIED = 1,
DXGI_ALPHA_MODE_STRAIGHT = 2,
DXGI_ALPHA_MODE_IGNORE = 3,
DXGI_ALPHA_MODE_FORCE_DWORD = 0xffffffff
} DXGI_ALPHA_MODE;
typedef struct DXGI_OUTDUPL_MOVE_RECT
{
POINT SourcePoint;
RECT DestinationRect;
} DXGI_OUTDUPL_MOVE_RECT;
typedef struct DXGI_OUTDUPL_DESC
{
DXGI_MODE_DESC ModeDesc;
DXGI_MODE_ROTATION Rotation;
BOOL DesktopImageInSystemMemory;
} DXGI_OUTDUPL_DESC;
typedef struct DXGI_OUTDUPL_POINTER_POSITION
{
POINT Position;
BOOL Visible;
} DXGI_OUTDUPL_POINTER_POSITION;
typedef enum DXGI_OUTDUPL_POINTER_SHAPE_TYPE
{
DXGI_OUTDUPL_POINTER_SHAPE_TYPE_MONOCHROME = 0x00000001,
DXGI_OUTDUPL_POINTER_SHAPE_TYPE_COLOR = 0x00000002,
DXGI_OUTDUPL_POINTER_SHAPE_TYPE_MASKED_COLOR = 0x00000004
} DXGI_OUTDUPL_POINTER_SHAPE_TYPE;
typedef struct DXGI_OUTDUPL_POINTER_SHAPE_INFO
{
UINT Type;
UINT Width;
UINT Height;
UINT Pitch;
POINT HotSpot;
} DXGI_OUTDUPL_POINTER_SHAPE_INFO;
typedef struct DXGI_OUTDUPL_FRAME_INFO
{
LARGE_INTEGER LastPresentTime;
LARGE_INTEGER LastMouseUpdateTime;
UINT AccumulatedFrames;
BOOL RectsCoalesced;
BOOL ProtectedContentMaskedOut;
DXGI_OUTDUPL_POINTER_POSITION PointerPosition;
UINT TotalMetadataBufferSize;
UINT PointerShapeBufferSize;
} DXGI_OUTDUPL_FRAME_INFO;
typedef struct DXGI_MODE_DESC1
{
UINT Width;
UINT Height;
DXGI_RATIONAL RefreshRate;
DXGI_FORMAT Format;
DXGI_MODE_SCANLINE_ORDER ScanlineOrdering;
DXGI_MODE_SCALING Scaling;
BOOL Stereo;
} DXGI_MODE_DESC1;
[
object,
uuid(191cfac3-a341-470d-b26e-a864f428319c),
local,
pointer_default(unique)
]
interface IDXGIOutputDuplication : IDXGIObject
{
void GetDesc(
[out] DXGI_OUTDUPL_DESC *desc
);
HRESULT AcquireNextFrame(
[in] UINT timeout_in_milliseconds,
[out] DXGI_OUTDUPL_FRAME_INFO *frame_info,
[out] IDXGIResource **desktop_resource
);
HRESULT GetFrameDirtyRects(
[in] UINT dirty_rects_buffer_size,
[out] RECT *dirty_rects_buffer,
[out] UINT *dirty_rects_buffer_size_required
);
HRESULT GetFrameMoveRects(
[in] UINT move_rects_buffer_size,
[out] DXGI_OUTDUPL_MOVE_RECT *move_rect_buffer,
[out] UINT *move_rects_buffer_size_required
);
HRESULT GetFramePointerShape(
[in] UINT pointer_shape_buffer_size,
[out] void *pointer_shape_buffer,
[out] UINT *pointer_shape_buffer_size_required,
[out] DXGI_OUTDUPL_POINTER_SHAPE_INFO *pointer_shape_info
);
HRESULT MapDesktopSurface(
[out] DXGI_MAPPED_RECT *locked_rect
);
HRESULT UnMapDesktopSurface();
HRESULT ReleaseFrame();
}
[
object,
uuid(aba496dd-b617-4cb8-a866-bc44d7eb1fa2),
local,
pointer_default(unique)
]
interface IDXGISurface2 : IDXGISurface1
{
HRESULT GetResource(
[in] REFIID iid,
[out] void **parent_resource,
[out] UINT *subresource_idx
);
}
[
object,
uuid(30961379-4609-4a41-998e-54fe567ee0c1),
local,
pointer_default(unique)
]
interface IDXGIResource1 : IDXGIResource
{
HRESULT CreateSubresourceSurface(
UINT index,
[out] IDXGISurface2 **surface
);
HRESULT CreateSharedHandle(
[in] const SECURITY_ATTRIBUTES *attributes,
[in] DWORD access,
[in] const WCHAR *name,
[out] HANDLE *handle
);
}
[
object,
uuid(ea9dbf1a-c88e-4486-854a-98aa0138f30c),
local,
pointer_default(unique)
]
interface IDXGIDisplayControl : IUnknown
{
BOOL IsStereoEnabled();
void SetStereoEnabled(BOOL enabled);
}
[
object,
uuid(05008617-fbfd-4051-a790-144884b4f6a9),
local,
pointer_default(unique)
]
interface IDXGIDevice2 : IDXGIDevice1
{
HRESULT OfferResources(
[in] UINT NumResources,
[in, size_is(NumResources)] IDXGIResource *const *ppResources,
[in] DXGI_OFFER_RESOURCE_PRIORITY Priority);
HRESULT ReclaimResources(
[in] UINT NumResources,
[in, size_is(NumResources)] IDXGIResource *const *ppResources,
[out, size_is(NumResources)] BOOL *pDiscarded);
HRESULT EnqueueSetEvent(
[in] HANDLE hEvent);
}
typedef enum DXGI_SCALING {
DXGI_SCALING_STRETCH = 0,
DXGI_SCALING_NONE = 1
} DXGI_SCALING;
typedef struct DXGI_SWAP_CHAIN_DESC1 {
UINT Width;
UINT Height;
DXGI_FORMAT Format;
BOOL Stereo;
DXGI_SAMPLE_DESC SampleDesc;
DXGI_USAGE BufferUsage;
UINT BufferCount;
DXGI_SCALING Scaling;
DXGI_SWAP_EFFECT SwapEffect;
DXGI_ALPHA_MODE AlphaMode;
UINT Flags;
} DXGI_SWAP_CHAIN_DESC1;
typedef struct DXGI_SWAP_CHAIN_FULLSCREEN_DESC {
DXGI_RATIONAL RefreshRate;
DXGI_MODE_SCANLINE_ORDER ScanlineOrdering;
DXGI_MODE_SCALING Scaling;
BOOL Windowed;
} DXGI_SWAP_CHAIN_FULLSCREEN_DESC;
typedef struct DXGI_PRESENT_PARAMETERS {
UINT DirtyRectsCount;
RECT *pDirtyRects;
RECT *pScrollRect;
POINT *pScrollOffset;
} DXGI_PRESENT_PARAMETERS;
[
object,
uuid(790a45f7-0d42-4876-983a-0a55cfe6f4aa),
local,
pointer_default(unique)
]
interface IDXGISwapChain1 : IDXGISwapChain
{
HRESULT GetDesc1(
[out] DXGI_SWAP_CHAIN_DESC1 *pDesc);
HRESULT GetFullscreenDesc(
[out] DXGI_SWAP_CHAIN_FULLSCREEN_DESC *pDesc);
HRESULT GetHwnd(
[out] HWND *pHwnd);
HRESULT GetCoreWindow(
[in] REFIID refiid,
[out] void **ppUnk);
HRESULT Present1(
[in] UINT SyncInterval,
[in] UINT PresentFlags,
[in] const DXGI_PRESENT_PARAMETERS *pPresentParameters);
BOOL IsTemporaryMonoSupported();
HRESULT GetRestrictToOutput(
[out] IDXGIOutput **ppRestrictToOutput);
HRESULT SetBackgroundColor(
[in] const DXGI_RGBA *pColor);
HRESULT GetBackgroundColor(
[out] DXGI_RGBA *pColor);
HRESULT SetRotation(
[in] DXGI_MODE_ROTATION Rotation);
HRESULT GetRotation(
[out] DXGI_MODE_ROTATION *pRotation);
}
[
object,
uuid(50c83a1c-e072-4c48-87b0-3630fa36a6d0),
local,
pointer_default(unique)
]
interface IDXGIFactory2 : IDXGIFactory1
{
BOOL IsWindowedStereoEnabled();
HRESULT CreateSwapChainForHwnd(
[in] IUnknown *pDevice,
[in] HWND hWnd,
[in] const DXGI_SWAP_CHAIN_DESC1 *pDesc,
[in] const DXGI_SWAP_CHAIN_FULLSCREEN_DESC *pFullscreenDesc,
[in] IDXGIOutput *pRestrictToOutput,
[out] IDXGISwapChain1 **ppSwapChain);
HRESULT CreateSwapChainForCoreWindow(
[in] IUnknown *pDevice,
[in] IUnknown *pWindow,
[in] const DXGI_SWAP_CHAIN_DESC1 *pDesc,
[in] IDXGIOutput *pRestrictToOutput,
[out] IDXGISwapChain1 **ppSwapChain);
HRESULT GetSharedResourceAdapterLuid(
[in] HANDLE hResource,
[out] LUID *pLuid);
HRESULT RegisterOcclusionStatusWindow(
[in] HWND WindowHandle,
[in] UINT wMsg,
[out] DWORD *pdwCookie);
HRESULT RegisterStereoStatusEvent(
[in] HANDLE hEvent,
[out] DWORD *pdwCookie);
void UnregisterStereoStatus(
[in] DWORD dwCookie);
HRESULT RegisterStereoStatusWindow(
[in] HWND WindowHandle,
[in] UINT wMsg,
[out] DWORD *pdwCookie);
HRESULT RegisterOcclusionStatusEvent(
[in] HANDLE hEvent,
[out] DWORD *pdwCookie);
void UnregisterOcclusionStatus(
[in] DWORD dwCookie);
HRESULT CreateSwapChainForComposition(
[in] IUnknown *pDevice,
[in] const DXGI_SWAP_CHAIN_DESC1 *pDesc,
[in] IDXGIOutput *pRestrictToOutput,
[out] IDXGISwapChain1 **ppSwapChain);
}
typedef enum DXGI_GRAPHICS_PREEMPTION_GRANULARITY {
DXGI_GRAPHICS_PREEMPTION_DMA_BUFFER_BOUNDARY,
DXGI_GRAPHICS_PREEMPTION_PRIMITIVE_BOUNDARY,
DXGI_GRAPHICS_PREEMPTION_TRIANGLE_BOUNDARY,
DXGI_GRAPHICS_PREEMPTION_PIXEL_BOUNDARY,
DXGI_GRAPHICS_PREEMPTION_INSTRUCTION_BOUNDARY
} DXGI_GRAPHICS_PREEMPTION_GRANULARITY;
typedef enum DXGI_COMPUTE_PREEMPTION_GRANULARITY {
DXGI_COMPUTE_PREEMPTION_DMA_BUFFER_BOUNDARY,
DXGI_COMPUTE_PREEMPTION_DISPATCH_BOUNDARY,
DXGI_COMPUTE_PREEMPTION_THREAD_GROUP_BOUNDARY,
DXGI_COMPUTE_PREEMPTION_THREAD_BOUNDARY,
DXGI_COMPUTE_PREEMPTION_INSTRUCTION_BOUNDARY
} DXGI_COMPUTE_PREEMPTION_GRANULARITY;
typedef struct DXGI_ADAPTER_DESC2 {
WCHAR Description[128];
UINT VendorId;
UINT DeviceId;
UINT SubSysId;
UINT Revision;
SIZE_T DedicatedVideoMemory;
SIZE_T DedicatedSystemMemory;
SIZE_T SharedSystemMemory;
LUID AdapterLuid;
UINT Flags;
DXGI_GRAPHICS_PREEMPTION_GRANULARITY GraphicsPreemptionGranularity;
DXGI_COMPUTE_PREEMPTION_GRANULARITY ComputePreemptionGranularity;
} DXGI_ADAPTER_DESC2;
[
object,
uuid(0aa1ae0a-fa0e-4b84-8644-e05ff8e5acb5),
local,
pointer_default(unique)
]
interface IDXGIAdapter2 : IDXGIAdapter1
{
HRESULT GetDesc2([out] DXGI_ADAPTER_DESC2 *pDesc);
}
[
object,
uuid(00cddea8-939b-4b83-a340-a685226666cc),
local,
pointer_default(unique)
]
interface IDXGIOutput1 : IDXGIOutput
{
HRESULT GetDisplayModeList1(
[in] DXGI_FORMAT enum_format,
[in] UINT flags,
[in, out] UINT *num_modes,
[out] DXGI_MODE_DESC1 *desc
);
HRESULT FindClosestMatchingMode1(
[in] const DXGI_MODE_DESC1 *mode_to_match,
[out] DXGI_MODE_DESC1 *closest_match,
[in] IUnknown *concerned_device
);
HRESULT GetDisplaySurfaceData1(
[in] IDXGIResource *destination
);
HRESULT DuplicateOutput(
[in] IUnknown *device,
[out] IDXGIOutputDuplication **output_duplication
);
}
|