/usr/include/wine/windows/d3d11_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 | /*
* Copyright 2017 Ihsan Akmal
*
* 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 "oaidl.idl";
import "ocidl.idl";
import "dxgi1_3.idl";
import "d3dcommon.idl";
import "d3d11_1.idl";
const UINT D3D11_PACKED_TILE = 0xffffffff;
typedef enum D3D11_TILE_MAPPING_FLAG
{
D3D11_TILE_MAPPING_NO_OVERWRITE = 0x1,
} D3D11_TILE_MAPPING_FLAG;
typedef enum D3D11_TILE_RANGE_FLAG
{
D3D11_TILE_RANGE_NULL = 0x1,
D3D11_TILE_RANGE_SKIP = 0x2,
D3D11_TILE_RANGE_REUSE_SINGLE_TILE = 0x4,
} D3D11_TILE_RANGE_FLAG;
typedef enum D3D11_CHECK_MULTISAMPLE_QUALITY_LEVELS_FLAG
{
D3D11_CHECK_MULTISAMPLE_QUALITY_LEVELS_TILED_RESOURCE = 0x1,
} D3D11_CHECK_MULTISAMPLE_QUALITY_LEVELS_FLAG;
typedef enum D3D11_TILE_COPY_FLAG
{
D3D11_TILE_COPY_NO_OVERWRITE = 0x1,
D3D11_TILE_COPY_LINEAR_BUFFER_TO_SWIZZLED_TILED_RESOURCE = 0x2,
D3D11_TILE_COPY_SWIZZLED_TILED_RESOURCE_TO_LINEAR_BUFFER = 0x4,
} D3D11_TILE_COPY_FLAG;
typedef struct D3D11_TILED_RESOURCE_COORDINATE
{
UINT X;
UINT Y;
UINT Z;
UINT Subresource;
} D3D11_TILED_RESOURCE_COORDINATE;
typedef struct D3D11_TILE_REGION_SIZE
{
UINT NumTiles;
BOOL bUseBox;
UINT Width;
UINT16 Height;
UINT16 Depth;
} D3D11_TILE_REGION_SIZE;
typedef struct D3D11_SUBRESOURCE_TILING
{
UINT WidthInTiles;
UINT16 HeightInTiles;
UINT16 DepthInTiles;
UINT StartTileIndexInOverallResource;
} D3D11_SUBRESOURCE_TILING;
typedef struct D3D11_TILE_SHAPE
{
UINT WidthInTexels;
UINT HeightInTexels;
UINT DepthInTexels;
} D3D11_TILE_SHAPE;
typedef struct D3D11_PACKED_MIP_DESC
{
UINT8 NumStandardMips;
UINT8 NumPackedMips;
UINT NumTilesForPackedMips;
UINT StartTileIndexInOverallResource;
} D3D11_PACKED_MIP_DESC;
[
uuid(420d5b32-b90c-4da4-bef0-359f6a24a83a),
object,
local,
pointer_default(unique)
]
interface ID3D11DeviceContext2 : ID3D11DeviceContext1
{
HRESULT UpdateTileMappings(
ID3D11Resource *resource,
UINT region_count,
const D3D11_TILED_RESOURCE_COORDINATE *region_start_coordinates,
const D3D11_TILE_REGION_SIZE *region_sizes,
ID3D11Buffer *pool,
UINT range_count,
const UINT *range_flags,
const UINT *pool_start_offsets,
const UINT *range_tile_counts,
UINT flags
);
HRESULT CopyTileMappings(
ID3D11Resource *dst_resource,
const D3D11_TILED_RESOURCE_COORDINATE *dst_start_coordinate,
ID3D11Resource *src_resource,
const D3D11_TILED_RESOURCE_COORDINATE *src_start_coordinate,
const D3D11_TILE_REGION_SIZE *region_size,
UINT flags
);
void CopyTiles(
ID3D11Resource *resource,
const D3D11_TILED_RESOURCE_COORDINATE *start_coordinate,
const D3D11_TILE_REGION_SIZE *size,
ID3D11Buffer *buffer,
UINT64 start_offset,
UINT flags
);
void UpdateTiles(
ID3D11Resource *dst_resource,
const D3D11_TILED_RESOURCE_COORDINATE *dst_start_coordinate,
const D3D11_TILE_REGION_SIZE *dst_region_size,
const void *src_data,
UINT flags
);
HRESULT ResizeTilePool(
ID3D11Buffer *pool,
UINT64 size
);
void TiledResourceBarrier(
ID3D11DeviceChild *before_barrier,
ID3D11DeviceChild *after_barrier
);
BOOL IsAnnotationEnabled();
void SetMarkerInt(const WCHAR *label, int data);
void BeginEventInt(const WCHAR *label, int data);
void EndEvent();
}
[
uuid(9d06dffa-d1e5-4d07-83a8-1bb123f2f841),
object,
local,
pointer_default(unique)
]
interface ID3D11Device2 : ID3D11Device1
{
void GetImmediateContext2(ID3D11DeviceContext2 **context);
HRESULT CreateDeferredContext2(UINT flags, ID3D11DeviceContext2 **context);
void GetResourceTiling(
ID3D11Resource *resource,
UINT *tile_count,
D3D11_PACKED_MIP_DESC *mip_desc,
D3D11_TILE_SHAPE *tile_shape,
UINT *subresource_tiling_count,
UINT first_subresource_tiling,
D3D11_SUBRESOURCE_TILING *subresource_tiling
);
HRESULT CheckMultisampleQualityLevels1(
DXGI_FORMAT format,
UINT sample_count,
UINT flags,
UINT *quality_level_count
);
}
|