[PATCH 4/5] include: Add d3d11_2.idl

shinchiro ihsanapps at gmail.com
Sat Sep 16 12:14:15 CDT 2017


Signed-off-by: shinchiro <ihsanapps at gmail.com>
---
 include/Makefile.in |   1 +
 include/d3d11_2.idl | 188 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 189 insertions(+)
 create mode 100644 include/d3d11_2.idl

diff --git a/include/Makefile.in b/include/Makefile.in
index 97617c0..9172dcc 100644
--- a/include/Makefile.in
+++ b/include/Makefile.in
@@ -41,6 +41,7 @@ IDL_SRCS = \
 	d3d10sdklayers.idl \
 	d3d11.idl \
 	d3d11_1.idl \
+	d3d11_2.idl \
 	d3d11sdklayers.idl \
 	d3dcommon.idl \
 	d3dx10core.idl \
diff --git a/include/d3d11_2.idl b/include/d3d11_2.idl
new file mode 100644
index 0000000..2105e8e
--- /dev/null
+++ b/include/d3d11_2.idl
@@ -0,0 +1,188 @@
+/*
+ * 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";
+
+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 enum D3D11_TILE_MAPPING_FLAG
+{
+    D3D11_TILE_MAPPING_NO_OVERWRITE = 0x00000001,
+} D3D11_TILE_MAPPING_FLAG;
+
+typedef enum D3D11_TILE_RANGE_FLAG
+{
+    D3D11_TILE_RANGE_NULL = 0x00000001,
+    D3D11_TILE_RANGE_SKIP = 0x00000002,
+    D3D11_TILE_RANGE_REUSE_SINGLE_TILE = 0x00000004,
+} D3D11_TILE_RANGE_FLAG;
+
+typedef struct D3D11_SUBRESOURCE_TILING
+{
+    UINT WidthInTiles;
+    UINT16 HeightInTiles;
+    UINT16 DepthInTiles;
+    UINT StartTileIndexInOverallResource;
+} D3D11_SUBRESOURCE_TILING;
+
+const UINT D3D11_PACKED_TILE = 0xffffffff;
+
+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;
+
+typedef enum D3D11_CHECK_MULTISAMPLE_QUALITY_LEVELS_FLAG
+{
+    D3D11_CHECK_MULTISAMPLE_QUALITY_LEVELS_TILED_RESOURCE = 0x00000001,
+} D3D11_CHECK_MULTISAMPLE_QUALITY_LEVELS_FLAG;
+
+typedef enum D3D11_TILE_COPY_FLAG
+{
+    D3D11_TILE_COPY_NO_OVERWRITE = 0x00000001,
+    D3D11_TILE_COPY_LINEAR_BUFFER_TO_SWIZZLED_TILED_RESOURCE = 0x00000002,
+    D3D11_TILE_COPY_SWIZZLED_TILED_RESOURCE_TO_LINEAR_BUFFER = 0x00000004,
+} D3D11_TILE_COPY_FLAG;
+
+[
+    uuid(420d5b32-b90c-4da4-bef0-359f6a24a83a),
+    object,
+    local,
+    pointer_default(unique)
+]
+interface ID3D11DeviceContext2 : ID3D11DeviceContext1
+{
+    HRESULT UpdateTileMappings(
+        ID3D11Resource *tiled_resource,
+        UINT num_tiled_resource_regions,
+        const D3D11_TILED_RESOURCE_COORDINATE *tiled_resource_region_start_coordinates,
+        const D3D11_TILE_REGION_SIZE *tiled_resource_region_sizes,
+        ID3D11Buffer *tile_pool,
+        UINT num_ranges,
+        const UINT *range_flags,
+        const UINT *tile_pool_start_offsets,
+        const UINT *range_tile_counts,
+        UINT flags
+    );
+
+    HRESULT CopyTileMappings(
+        ID3D11Resource *dest_tiled_resource,
+        const D3D11_TILED_RESOURCE_COORDINATE *dest_region_start_coordinate,
+        ID3D11Resource *source_tiled_resource,
+        const D3D11_TILED_RESOURCE_COORDINATE *source_region_start_coordinate,
+        const D3D11_TILE_REGION_SIZE *tile_region_size,
+        UINT flags
+    );
+
+    void CopyTiles(
+        ID3D11Resource *tiled_resource,
+        const D3D11_TILED_RESOURCE_COORDINATE *tile_region_start_coordinate,
+        const D3D11_TILE_REGION_SIZE *tile_region_size,
+        ID3D11Buffer *buffer,
+        UINT64 buffer_start_offset_in_bytes,
+        UINT flags
+    );
+
+    void UpdateTiles(
+        ID3D11Resource *dest_tiled_resource,
+        const D3D11_TILED_RESOURCE_COORDINATE *dest_tile_region_start_coordinate,
+        const D3D11_TILE_REGION_SIZE *dest_tile_region_size,
+        const void *source_tile_data,
+        UINT flags
+    );
+
+    HRESULT ResizeTilePool(
+        ID3D11Buffer *tile_pool,
+        UINT64 new_size_in_bytes
+    );
+
+    void TiledResourceBarrier(
+        ID3D11DeviceChild *tiled_resource_or_view_access_before_barrier,
+        ID3D11DeviceChild *tiled_resource_or_view_access_after_barrier
+    );
+
+    BOOL IsAnnotationEnabled();
+
+    void SetMarkerInt(LPCWSTR label, INT data);
+
+    void BeginEventInt(LPCWSTR label, INT data);
+
+    void EndEvent();
+};
+
+[
+    uuid(9d06dffa-d1e5-4d07-83a8-1bb123f2f841),
+    object,
+    local,
+    pointer_default(unique)
+]
+interface ID3D11Device2 : ID3D11Device1
+{
+    void GetImmediateContext2(ID3D11DeviceContext2 **immediate_context);
+
+    HRESULT CreateDeferredContext2(
+        UINT context_flags,
+        ID3D11DeviceContext2 **deferred_context
+    );
+
+    void GetResourceTiling(
+        ID3D11Resource *tiled_resource,
+        UINT *num_tiles_for_entire_resource,
+        D3D11_PACKED_MIP_DESC *packed_mip_desc,
+        D3D11_TILE_SHAPE *standard_tile_shape_for_non_packed_mips,
+        UINT *num_subresource_tilings,
+        UINT first_subresource_tiling_to_get,
+        D3D11_SUBRESOURCE_TILING *subresource_tilings_for_non_packed_mips
+    );
+
+    HRESULT CheckMultisampleQualityLevels1(
+        DXGI_FORMAT format,
+        UINT sample_count,
+        UINT flags,
+        UINT *num_quality_levels
+    );
+};
-- 
2.14.1




More information about the wine-patches mailing list