| 1 |
/* |
| 2 |
* Copyright 2010 Rico Schüller |
| 3 |
* Copyright 2013 Austin English |
| 4 |
* |
| 5 |
* This library is free software; you can redistribute it and/or |
| 6 |
* modify it under the terms of the GNU Lesser General Public |
| 7 |
* License as published by the Free Software Foundation; either |
| 8 |
* version 2.1 of the License, or (at your option) any later version. |
| 9 |
* |
| 10 |
* This library is distributed in the hope that it will be useful, |
| 11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 |
* Lesser General Public License for more details. |
| 14 |
* |
| 15 |
* You should have received a copy of the GNU Lesser General Public |
| 16 |
* License along with this library; if not, write to the Free Software |
| 17 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA |
| 18 |
*/ |
| 19 |
|
| 20 |
import "oaidl.idl"; |
| 21 |
import "ocidl.idl"; |
| 22 |
import "dxgi.idl"; |
| 23 |
import "d3dcommon.idl"; |
| 24 |
|
| 25 |
typedef D3D_PRIMITIVE D3D11_PRIMITIVE; |
| 26 |
typedef D3D_PRIMITIVE_TOPOLOGY D3D11_PRIMITIVE_TOPOLOGY; |
| 27 |
typedef D3D_SRV_DIMENSION D3D11_SRV_DIMENSION; |
| 28 |
typedef RECT D3D11_RECT; |
| 29 |
|
| 30 |
interface ID3D11Device; |
| 31 |
interface ID3D11ClassLinkage; |
| 32 |
interface ID3D11Resource; |
| 33 |
interface ID3D11VideoProcessorInputView; |
| 34 |
|
| 35 |
cpp_quote("#ifndef _D3D11_CONSTANTS") |
| 36 |
cpp_quote("#define _D3D11_CONSTANTS") |
| 37 |
|
| 38 |
const UINT D3D11_16BIT_INDEX_STRIP_CUT_VALUE = 0xffff; |
| 39 |
const UINT D3D11_32BIT_INDEX_STRIP_CUT_VALUE = 0xffffffff; |
| 40 |
const UINT D3D11_8BIT_INDEX_STRIP_CUT_VALUE = 0xff; |
| 41 |
|
| 42 |
const UINT D3D11_ARRAY_AXIS_ADDRESS_RANGE_BIT_COUNT = 9; |
| 43 |
|
| 44 |
const UINT D3D11_CLIP_OR_CULL_DISTANCE_COUNT = 8; |
| 45 |
const UINT D3D11_CLIP_OR_CULL_DISTANCE_ELEMENT_COUNT = 2; |
| 46 |
|
| 47 |
const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT = 14; |
| 48 |
const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENTS = 4; |
| 49 |
const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENT_BIT_COUNT = 32; |
| 50 |
const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_HW_SLOT_COUNT = 15; |
| 51 |
const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_PARTIAL_UPDATE_EXTENTS_BYTE_ALIGNMENT = 16; |
| 52 |
const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COMPONENTS = 4; |
| 53 |
const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COUNT = 15; |
| 54 |
const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READS_PER_INST = 1; |
| 55 |
const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READ_PORTS = 1; |
| 56 |
const UINT D3D11_COMMONSHADER_FLOWCONTROL_NESTING_LIMIT = 64; |
| 57 |
const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COMPONENTS = 4; |
| 58 |
const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COUNT = 1; |
| 59 |
const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READS_PER_INST = 1; |
| 60 |
const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READ_PORTS = 1; |
| 61 |
const UINT D3D11_COMMONSHADER_IMMEDIATE_VALUE_COMPONENT_BIT_COUNT = 32; |
| 62 |
const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COMPONENTS = 1; |
| 63 |
const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COUNT = 128; |
| 64 |
const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READS_PER_INST = 1; |
| 65 |
const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READ_PORTS = 1; |
| 66 |
const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT = 128; |
| 67 |
const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_COMPONENTS = 1; |
| 68 |
const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_COUNT = 16; |
| 69 |
const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_READS_PER_INST = 1; |
| 70 |
const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_READ_PORTS = 1; |
| 71 |
const UINT D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT = 16; |
| 72 |
const UINT D3D11_COMMONSHADER_SUBROUTINE_NESTING_LIMIT = 32; |
| 73 |
const UINT D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENTS = 4; |
| 74 |
const UINT D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENT_BIT_COUNT = 32; |
| 75 |
const UINT D3D11_COMMONSHADER_TEMP_REGISTER_COUNT = 4096; |
| 76 |
const UINT D3D11_COMMONSHADER_TEMP_REGISTER_READS_PER_INST = 3; |
| 77 |
const UINT D3D11_COMMONSHADER_TEMP_REGISTER_READ_PORTS = 3; |
| 78 |
const UINT D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MAX = 10; |
| 79 |
const INT D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MIN = -10; |
| 80 |
const INT D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_NEGATIVE = -8; |
| 81 |
const UINT D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_POSITIVE = 7; |
| 82 |
|
| 83 |
const UINT D3D11_CS_4_X_BUCKET00_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 256; |
| 84 |
const UINT D3D11_CS_4_X_BUCKET00_MAX_NUM_THREADS_PER_GROUP = 64; |
| 85 |
const UINT D3D11_CS_4_X_BUCKET01_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 240; |
| 86 |
const UINT D3D11_CS_4_X_BUCKET01_MAX_NUM_THREADS_PER_GROUP = 68; |
| 87 |
const UINT D3D11_CS_4_X_BUCKET02_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 224; |
| 88 |
const UINT D3D11_CS_4_X_BUCKET02_MAX_NUM_THREADS_PER_GROUP = 72; |
| 89 |
const UINT D3D11_CS_4_X_BUCKET03_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 208; |
| 90 |
const UINT D3D11_CS_4_X_BUCKET03_MAX_NUM_THREADS_PER_GROUP = 76; |
| 91 |
const UINT D3D11_CS_4_X_BUCKET04_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 192; |
| 92 |
const UINT D3D11_CS_4_X_BUCKET04_MAX_NUM_THREADS_PER_GROUP = 84; |
| 93 |
const UINT D3D11_CS_4_X_BUCKET05_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 176; |
| 94 |
const UINT D3D11_CS_4_X_BUCKET05_MAX_NUM_THREADS_PER_GROUP = 92; |
| 95 |
const UINT D3D11_CS_4_X_BUCKET06_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 160; |
| 96 |
const UINT D3D11_CS_4_X_BUCKET06_MAX_NUM_THREADS_PER_GROUP = 100; |
| 97 |
const UINT D3D11_CS_4_X_BUCKET07_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 144; |
| 98 |
const UINT D3D11_CS_4_X_BUCKET07_MAX_NUM_THREADS_PER_GROUP = 112; |
| 99 |
const UINT D3D11_CS_4_X_BUCKET08_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 128; |
| 100 |
const UINT D3D11_CS_4_X_BUCKET08_MAX_NUM_THREADS_PER_GROUP = 128; |
| 101 |
const UINT D3D11_CS_4_X_BUCKET09_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 112; |
| 102 |
const UINT D3D11_CS_4_X_BUCKET09_MAX_NUM_THREADS_PER_GROUP = 144; |
| 103 |
const UINT D3D11_CS_4_X_BUCKET10_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 96; |
| 104 |
const UINT D3D11_CS_4_X_BUCKET10_MAX_NUM_THREADS_PER_GROUP = 168; |
| 105 |
const UINT D3D11_CS_4_X_BUCKET11_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 80; |
| 106 |
const UINT D3D11_CS_4_X_BUCKET11_MAX_NUM_THREADS_PER_GROUP = 204; |
| 107 |
const UINT D3D11_CS_4_X_BUCKET12_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 64; |
| 108 |
const UINT D3D11_CS_4_X_BUCKET12_MAX_NUM_THREADS_PER_GROUP = 256; |
| 109 |
const UINT D3D11_CS_4_X_BUCKET13_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 48; |
| 110 |
const UINT D3D11_CS_4_X_BUCKET13_MAX_NUM_THREADS_PER_GROUP = 340; |
| 111 |
const UINT D3D11_CS_4_X_BUCKET14_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 32; |
| 112 |
const UINT D3D11_CS_4_X_BUCKET14_MAX_NUM_THREADS_PER_GROUP = 512; |
| 113 |
const UINT D3D11_CS_4_X_BUCKET15_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 16; |
| 114 |
const UINT D3D11_CS_4_X_BUCKET15_MAX_NUM_THREADS_PER_GROUP = 768; |
| 115 |
const UINT D3D11_CS_4_X_DISPATCH_MAX_THREAD_GROUPS_IN_Z_DIMENSION = 1; |
| 116 |
const UINT D3D11_CS_4_X_RAW_UAV_BYTE_ALIGNMENT = 256; |
| 117 |
const UINT D3D11_CS_4_X_THREAD_GROUP_MAX_THREADS_PER_GROUP = 768; |
| 118 |
const UINT D3D11_CS_4_X_THREAD_GROUP_MAX_X = 768; |
| 119 |
const UINT D3D11_CS_4_X_THREAD_GROUP_MAX_Y = 768; |
| 120 |
const UINT D3D11_CS_4_X_UAV_REGISTER_COUNT = 1; |
| 121 |
const UINT D3D11_CS_DISPATCH_MAX_THREAD_GROUPS_PER_DIMENSION = 65535; |
| 122 |
const UINT D3D11_CS_TGSM_REGISTER_COUNT = 8192; |
| 123 |
const UINT D3D11_CS_TGSM_REGISTER_READS_PER_INST = 1; |
| 124 |
const UINT D3D11_CS_TGSM_RESOURCE_REGISTER_COMPONENTS = 1; |
| 125 |
const UINT D3D11_CS_TGSM_RESOURCE_REGISTER_READ_PORTS = 1; |
| 126 |
const UINT D3D11_CS_THREAD_GROUP_MAX_THREADS_PER_GROUP = 1024; |
| 127 |
const UINT D3D11_CS_THREAD_GROUP_MAX_X = 1024; |
| 128 |
const UINT D3D11_CS_THREAD_GROUP_MAX_Y = 1024; |
| 129 |
const UINT D3D11_CS_THREAD_GROUP_MAX_Z = 64; |
| 130 |
const UINT D3D11_CS_THREAD_GROUP_MIN_X = 1; |
| 131 |
const UINT D3D11_CS_THREAD_GROUP_MIN_Y = 1; |
| 132 |
const UINT D3D11_CS_THREAD_GROUP_MIN_Z = 1; |
| 133 |
const UINT D3D11_CS_THREAD_LOCAL_TEMP_REGISTER_POOL = 16384; |
| 134 |
|
| 135 |
const UINT D3D11_DEFAULT_DEPTH_BIAS = 0; |
| 136 |
cpp_quote("#define D3D11_DEFAULT_DEPTH_BIAS_CLAMP 0.0f") |
| 137 |
const UINT D3D11_DEFAULT_MAX_ANISOTROPY = 16; |
| 138 |
cpp_quote("#define D3D11_DEFAULT_MIP_LOD_BIAS 0.0f") |
| 139 |
const UINT D3D11_DEFAULT_RENDER_TARGET_ARRAY_INDEX = 0; |
| 140 |
const UINT D3D11_DEFAULT_SAMPLE_MASK = 0xffffffff; |
| 141 |
const UINT D3D11_DEFAULT_SCISSOR_ENDX = 0; |
| 142 |
const UINT D3D11_DEFAULT_SCISSOR_ENDY = 0; |
| 143 |
const UINT D3D11_DEFAULT_SCISSOR_STARTX = 0; |
| 144 |
const UINT D3D11_DEFAULT_SCISSOR_STARTY = 0; |
| 145 |
cpp_quote("#define D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS 0.0f") |
| 146 |
const UINT D3D11_DEFAULT_STENCIL_READ_MASK = 0xff; |
| 147 |
const UINT D3D11_DEFAULT_STENCIL_REFERENCE = 0; |
| 148 |
const UINT D3D11_DEFAULT_STENCIL_WRITE_MASK = 0xff; |
| 149 |
const UINT D3D11_DEFAULT_VIEWPORT_AND_SCISSORRECT_INDEX = 0; |
| 150 |
const UINT D3D11_DEFAULT_VIEWPORT_HEIGHT = 0; |
| 151 |
cpp_quote("#define D3D11_DEFAULT_VIEWPORT_MAX_DEPTH 0.0f") |
| 152 |
cpp_quote("#define D3D11_DEFAULT_VIEWPORT_MIN_DEPTH 0.0f") |
| 153 |
const UINT D3D11_DEFAULT_VIEWPORT_TOPLEFTX = 0; |
| 154 |
const UINT D3D11_DEFAULT_VIEWPORT_TOPLEFTY = 0; |
| 155 |
const UINT D3D11_DEFAULT_VIEWPORT_WIDTH = 0; |
| 156 |
|
| 157 |
cpp_quote("#define D3D11_FLOAT32_MAX (3.402823466e+38f)") |
| 158 |
|
| 159 |
const UINT D3D11_IA_DEFAULT_INDEX_BUFFER_OFFSET_IN_BYTES = 0; |
| 160 |
const UINT D3D11_IA_DEFAULT_PRIMITIVE_TOPOLOGY = 0; |
| 161 |
const UINT D3D11_IA_DEFAULT_VERTEX_BUFFER_OFFSET_IN_BYTES = 0; |
| 162 |
const UINT D3D11_IA_INDEX_INPUT_RESOURCE_SLOT_COUNT = 1; |
| 163 |
const UINT D3D11_IA_INSTANCE_ID_BIT_COUNT = 32; |
| 164 |
const UINT D3D11_IA_INTEGER_ARITHMETIC_BIT_COUNT = 32; |
| 165 |
const UINT D3D11_IA_PATCH_MAX_CONTROL_POINT_COUNT = 32; |
| 166 |
const UINT D3D11_IA_PRIMITIVE_ID_BIT_COUNT = 32; |
| 167 |
const UINT D3D11_IA_VERTEX_ID_BIT_COUNT = 32; |
| 168 |
const UINT D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT = 32; |
| 169 |
const UINT D3D11_IA_VERTEX_INPUT_STRUCTURE_ELEMENTS_COMPONENTS = 128; |
| 170 |
const UINT D3D11_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT = 32; |
| 171 |
|
| 172 |
const unsigned int D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT = 8; |
| 173 |
|
| 174 |
const UINT D3D11_MAX_MAXANISOTROPY = 16; |
| 175 |
const UINT D3D11_MAX_MULTISAMPLE_SAMPLE_COUNT = 32; |
| 176 |
const UINT D3D11_VIEWPORT_BOUNDS_MAX = 32767; |
| 177 |
const INT D3D11_VIEWPORT_BOUNDS_MIN = -32768; |
| 178 |
const UINT D3D11_VIEWPORT_AND_SCISSORRECT_MAX_INDEX = 15; |
| 179 |
const UINT D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE = 16; |
| 180 |
|
| 181 |
const UINT D3D11_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL = 0xffffffff; |
| 182 |
const UINT D3D11_KEEP_UNORDERED_ACCESS_VIEWS = 0xffffffff; |
| 183 |
|
| 184 |
const UINT D3D11_SHADER_MAJOR_VERSION = 5; |
| 185 |
const UINT D3D11_SHADER_MAX_INSTANCES = 65535; |
| 186 |
const UINT D3D11_SHADER_MAX_INTERFACES = 253; |
| 187 |
const UINT D3D11_SHADER_MAX_INTERFACE_CALL_SITES = 4096; |
| 188 |
const UINT D3D11_SHADER_MAX_TYPES = 65535; |
| 189 |
const UINT D3D11_SHADER_MINOR_VERSION = 0; |
| 190 |
const UINT D3D11_VS_OUTPUT_REGISTER_COUNT = 32; |
| 191 |
|
| 192 |
const UINT D3D11_OMAC_SIZE = 16; |
| 193 |
|
| 194 |
const UINT D3D11_PS_CS_UAV_REGISTER_COMPONENTS = 1; |
| 195 |
const UINT D3D11_PS_CS_UAV_REGISTER_COUNT = 8; |
| 196 |
const UINT D3D11_PS_CS_UAV_REGISTER_READS_PER_INST = 1; |
| 197 |
const UINT D3D11_PS_CS_UAV_REGISTER_READ_PORTS = 1; |
| 198 |
const UINT D3D11_PS_FRONTFACING_DEFAULT_VALUE = 0xffffffff; |
| 199 |
const UINT D3D11_PS_FRONTFACING_FALSE_VALUE = 0; |
| 200 |
const UINT D3D11_PS_FRONTFACING_TRUE_VALUE = 0xffffffff; |
| 201 |
const UINT D3D11_PS_INPUT_REGISTER_COMPONENTS = 4; |
| 202 |
const UINT D3D11_PS_INPUT_REGISTER_COMPONENT_BIT_COUNT = 32; |
| 203 |
const UINT D3D11_PS_INPUT_REGISTER_COUNT = 32; |
| 204 |
const UINT D3D11_PS_INPUT_REGISTER_READS_PER_INST = 2; |
| 205 |
const UINT D3D11_PS_INPUT_REGISTER_READ_PORTS = 1; |
| 206 |
cpp_quote("#define D3D11_PS_LEGACY_PIXEL_CENTER_FRACTIONAL_COMPONENT (0.0f)") |
| 207 |
const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENTS = 1; |
| 208 |
const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENT_BIT_COUNT = 32; |
| 209 |
const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COUNT = 1; |
| 210 |
const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENTS = 1; |
| 211 |
const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT = 32; |
| 212 |
const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COUNT = 1; |
| 213 |
const UINT D3D11_PS_OUTPUT_REGISTER_COMPONENTS = 4; |
| 214 |
const UINT D3D11_PS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = 32; |
| 215 |
const UINT D3D11_PS_OUTPUT_REGISTER_COUNT = 8; |
| 216 |
cpp_quote("#define D3D11_PS_PIXEL_CENTER_FRACTIONAL_COMPONENT (0.5f)") |
| 217 |
|
| 218 |
const UINT D3D11_RAW_UAV_SRV_BYTE_ALIGNMENT = 16; |
| 219 |
|
| 220 |
const UINT D3D11_REQ_BLEND_OBJECT_COUNT_PER_DEVICE = 4096; |
| 221 |
const UINT D3D11_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP = 27; |
| 222 |
const UINT D3D11_REQ_CONSTANT_BUFFER_ELEMENT_COUNT = 4096; |
| 223 |
const UINT D3D11_REQ_DEPTH_STENCIL_OBJECT_COUNT_PER_DEVICE = 4096; |
| 224 |
const UINT D3D11_REQ_DRAWINDEXED_INDEX_COUNT_2_TO_EXP = 32; |
| 225 |
const UINT D3D11_REQ_DRAW_VERTEX_COUNT_2_TO_EXP = 32; |
| 226 |
const UINT D3D11_REQ_FILTERING_HW_ADDRESSABLE_RESOURCE_DIMENSION = 16384; |
| 227 |
const UINT D3D11_REQ_GS_INVOCATION_32BIT_OUTPUT_COMPONENT_LIMIT = 1024; |
| 228 |
const UINT D3D11_REQ_IMMEDIATE_CONSTANT_BUFFER_ELEMENT_COUNT = 4096; |
| 229 |
const UINT D3D11_REQ_MAXANISOTROPY = 16; |
| 230 |
const UINT D3D11_REQ_MIP_LEVELS = 15; |
| 231 |
const UINT D3D11_REQ_MULTI_ELEMENT_STRUCTURE_SIZE_IN_BYTES = 2048; |
| 232 |
const UINT D3D11_REQ_RASTERIZER_OBJECT_COUNT_PER_DEVICE = 4096; |
| 233 |
const UINT D3D11_REQ_RENDER_TO_BUFFER_WINDOW_WIDTH = 16384; |
| 234 |
const UINT D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_A_TERM = 128; |
| 235 |
cpp_quote("#define D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_B_TERM (0.25f)") |
| 236 |
const UINT D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_C_TERM = 2048; |
| 237 |
const UINT D3D11_REQ_RESOURCE_VIEW_COUNT_PER_DEVICE_2_TO_EXP = 20; |
| 238 |
const UINT D3D11_REQ_SAMPLER_OBJECT_COUNT_PER_DEVICE = 4096; |
| 239 |
const UINT D3D11_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION = 2048; |
| 240 |
const UINT D3D11_REQ_TEXTURE1D_U_DIMENSION = 16384; |
| 241 |
const UINT D3D11_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION = 2048; |
| 242 |
const UINT D3D11_REQ_TEXTURE2D_U_OR_V_DIMENSION = 16384; |
| 243 |
const UINT D3D11_REQ_TEXTURE3D_U_V_OR_W_DIMENSION = 2048; |
| 244 |
const UINT D3D11_REQ_TEXTURECUBE_DIMENSION = 16384; |
| 245 |
|
| 246 |
const UINT D3D11_RESINFO_INSTRUCTION_MISSING_COMPONENT_RETVAL = 0; |
| 247 |
|
| 248 |
const UINT D3D11_SHIFT_INSTRUCTION_PAD_VALUE = 0; |
| 249 |
const UINT D3D11_SHIFT_INSTRUCTION_SHIFT_VALUE_BIT_COUNT = 5; |
| 250 |
|
| 251 |
const UINT D3D11_SO_BUFFER_MAX_STRIDE_IN_BYTES = 2048; |
| 252 |
const UINT D3D11_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES = 512; |
| 253 |
const UINT D3D11_SO_BUFFER_SLOT_COUNT = 4; |
| 254 |
const UINT D3D11_SO_DDI_REGISTER_INDEX_DENOTING_GAP = 0xffffffff; |
| 255 |
const UINT D3D11_SO_NO_RASTERIZED_STREAM = 0xffffffff; |
| 256 |
const UINT D3D11_SO_OUTPUT_COMPONENT_COUNT = 128; |
| 257 |
const UINT D3D11_SO_STREAM_COUNT = 4; |
| 258 |
|
| 259 |
const UINT D3D11_SPEC_DATE_DAY = 16; |
| 260 |
const UINT D3D11_SPEC_DATE_MONTH = 05; |
| 261 |
const UINT D3D11_SPEC_DATE_YEAR = 2011; |
| 262 |
|
| 263 |
cpp_quote("#define D3D11_SPEC_VERSION (1.07)") |
| 264 |
cpp_quote("#define D3D11_SRGB_GAMMA (2.2f)") |
| 265 |
cpp_quote("#define D3D11_SRGB_TO_FLOAT_DENOMINATOR_1 (12.92f)") |
| 266 |
cpp_quote("#define D3D11_SRGB_TO_FLOAT_DENOMINATOR_2 (1.055f)") |
| 267 |
cpp_quote("#define D3D11_SRGB_TO_FLOAT_EXPONENT (2.4f)") |
| 268 |
cpp_quote("#define D3D11_SRGB_TO_FLOAT_OFFSET (0.055f)") |
| 269 |
cpp_quote("#define D3D11_SRGB_TO_FLOAT_THRESHOLD (0.04045f)") |
| 270 |
cpp_quote("#define D3D11_SRGB_TO_FLOAT_TOLERANCE_IN_ULP (0.5f)") |
| 271 |
|
| 272 |
const UINT D3D11_STANDARD_COMPONENT_BIT_COUNT = 32; |
| 273 |
const UINT D3D11_STANDARD_COMPONENT_BIT_COUNT_DOUBLED = 64; |
| 274 |
const UINT D3D11_STANDARD_MAXIMUM_ELEMENT_ALIGNMENT_BYTE_MULTIPLE = 4; |
| 275 |
const UINT D3D11_STANDARD_PIXEL_COMPONENT_COUNT = 128; |
| 276 |
const UINT D3D11_STANDARD_PIXEL_ELEMENT_COUNT = 32; |
| 277 |
const UINT D3D11_STANDARD_VECTOR_SIZE = 4; |
| 278 |
const UINT D3D11_STANDARD_VERTEX_ELEMENT_COUNT = 32; |
| 279 |
const UINT D3D11_STANDARD_VERTEX_TOTAL_COMPONENT_COUNT = 64; |
| 280 |
|
| 281 |
cpp_quote("#endif") |
| 282 |
|
| 283 |
cpp_quote("#ifndef _D3D11_1_CONSTANTS") |
| 284 |
cpp_quote("#define _D3D11_1_CONSTANTS") |
| 285 |
const UINT D3D11_1_UAV_SLOT_COUNT = 64; |
| 286 |
cpp_quote("#endif") |
| 287 |
|
| 288 |
cpp_quote("#ifndef _D3D11_2_CONSTANTS") |
| 289 |
cpp_quote("#define _D3D11_2_CONSTANTS") |
| 290 |
const UINT D3D11_2_TILED_RESOURCE_TILE_SIZE_IN_BYTES = 0x10000; |
| 291 |
cpp_quote("#endif") |
| 292 |
|
| 293 |
cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)") |
| 294 |
cpp_quote("struct CD3D11_DEFAULT {};") |
| 295 |
cpp_quote("extern const DECLSPEC_SELECTANY CD3D11_DEFAULT D3D11_DEFAULT;") |
| 296 |
cpp_quote("#endif") |
| 297 |
|
| 298 |
typedef enum D3D11_BLEND |
| 299 |
{ |
| 300 |
D3D11_BLEND_ZERO = 1, |
| 301 |
D3D11_BLEND_ONE = 2, |
| 302 |
D3D11_BLEND_SRC_COLOR = 3, |
| 303 |
D3D11_BLEND_INV_SRC_COLOR = 4, |
| 304 |
D3D11_BLEND_SRC_ALPHA = 5, |
| 305 |
D3D11_BLEND_INV_SRC_ALPHA = 6, |
| 306 |
D3D11_BLEND_DEST_ALPHA = 7, |
| 307 |
D3D11_BLEND_INV_DEST_ALPHA = 8, |
| 308 |
D3D11_BLEND_DEST_COLOR = 9, |
| 309 |
D3D11_BLEND_INV_DEST_COLOR = 10, |
| 310 |
D3D11_BLEND_SRC_ALPHA_SAT = 11, |
| 311 |
D3D11_BLEND_BLEND_FACTOR = 14, |
| 312 |
D3D11_BLEND_INV_BLEND_FACTOR = 15, |
| 313 |
D3D11_BLEND_SRC1_COLOR = 16, |
| 314 |
D3D11_BLEND_INV_SRC1_COLOR = 17, |
| 315 |
D3D11_BLEND_SRC1_ALPHA = 18, |
| 316 |
D3D11_BLEND_INV_SRC1_ALPHA = 19, |
| 317 |
} D3D11_BLEND; |
| 318 |
|
| 319 |
typedef enum D3D11_BLEND_OP |
| 320 |
{ |
| 321 |
D3D11_BLEND_OP_ADD = 1, |
| 322 |
D3D11_BLEND_OP_SUBTRACT, |
| 323 |
D3D11_BLEND_OP_REV_SUBTRACT, |
| 324 |
D3D11_BLEND_OP_MIN, |
| 325 |
D3D11_BLEND_OP_MAX |
| 326 |
} D3D11_BLEND_OP; |
| 327 |
|
| 328 |
typedef enum D3D11_VIDEO_DECODER_BUFFER_TYPE |
| 329 |
{ |
| 330 |
D3D11_VIDEO_DECODER_BUFFER_PICTURE_PARAMETERS = 0, |
| 331 |
D3D11_VIDEO_DECODER_BUFFER_MACROBLOCK_CONTROL = 1, |
| 332 |
D3D11_VIDEO_DECODER_BUFFER_RESIDUAL_DIFFERENCE = 2, |
| 333 |
D3D11_VIDEO_DECODER_BUFFER_DEBLOCKING_CONTROL = 3, |
| 334 |
D3D11_VIDEO_DECODER_BUFFER_INVERSE_QUANTIZATION_MATRIX = 4, |
| 335 |
D3D11_VIDEO_DECODER_BUFFER_SLICE_CONTROL = 5, |
| 336 |
D3D11_VIDEO_DECODER_BUFFER_BITSTREAM = 6, |
| 337 |
D3D11_VIDEO_DECODER_BUFFER_MOTION_VECTOR = 7, |
| 338 |
D3D11_VIDEO_DECODER_BUFFER_FILM_GRAIN = 8, |
| 339 |
} D3D11_VIDEO_DECODER_BUFFER_TYPE; |
| 340 |
|
| 341 |
typedef enum D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE |
| 342 |
{ |
| 343 |
D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_OPAQUE = 0, |
| 344 |
D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_BACKGROUND = 1, |
| 345 |
D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_DESTINATION = 2, |
| 346 |
D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_SOURCE_STREAM = 3, |
| 347 |
} D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE; |
| 348 |
|
| 349 |
typedef enum D3D11_VIDEO_PROCESSOR_OUTPUT_RATE |
| 350 |
{ |
| 351 |
D3D11_VIDEO_PROCESSOR_OUTPUT_RATE_NORMAL = 0, |
| 352 |
D3D11_VIDEO_PROCESSOR_OUTPUT_RATE_HALF = 1, |
| 353 |
D3D11_VIDEO_PROCESSOR_OUTPUT_RATE_CUSTOM = 2, |
| 354 |
} D3D11_VIDEO_PROCESSOR_OUTPUT_RATE; |
| 355 |
|
| 356 |
typedef enum D3D11_VIDEO_PROCESSOR_STEREO_FORMAT |
| 357 |
{ |
| 358 |
D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_MONO = 0, |
| 359 |
D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_HORIZONTAL = 1, |
| 360 |
D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_VERTICAL = 2, |
| 361 |
D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_SEPARATE = 3, |
| 362 |
D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_MONO_OFFSET = 4, |
| 363 |
D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_ROW_INTERLEAVED = 5, |
| 364 |
D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_COLUMN_INTERLEAVED = 6, |
| 365 |
D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_CHECKERBOARD = 7, |
| 366 |
} D3D11_VIDEO_PROCESSOR_STEREO_FORMAT; |
| 367 |
|
| 368 |
typedef enum D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE |
| 369 |
{ |
| 370 |
D3D11_VIDEO_PROCESSOR_STEREO_FLIP_NONE = 0, |
| 371 |
D3D11_VIDEO_PROCESSOR_STEREO_FLIP_FRAME0 = 1, |
| 372 |
D3D11_VIDEO_PROCESSOR_STEREO_FLIP_FRAME1 = 2, |
| 373 |
} D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE; |
| 374 |
|
| 375 |
typedef enum D3D11_VIDEO_PROCESSOR_ROTATION |
| 376 |
{ |
| 377 |
D3D11_VIDEO_PROCESSOR_ROTATION_IDENTITY = 0, |
| 378 |
D3D11_VIDEO_PROCESSOR_ROTATION_90 = 1, |
| 379 |
D3D11_VIDEO_PROCESSOR_ROTATION_180 = 2, |
| 380 |
D3D11_VIDEO_PROCESSOR_ROTATION_270 = 3, |
| 381 |
} D3D11_VIDEO_PROCESSOR_ROTATION; |
| 382 |
|
| 383 |
typedef enum D3D11_VIDEO_PROCESSOR_DEVICE_CAPS |
| 384 |
{ |
| 385 |
D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_LINEAR_SPACE = 0x00000001, |
| 386 |
D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_xvYCC = 0x00000002, |
| 387 |
D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_RGB_RANGE_CONVERSION = 0x00000004, |
| 388 |
D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_YCbCr_MATRIX_CONVERSION = 0x00000008, |
| 389 |
D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_NOMINAL_RANGE = 0x00000010, |
| 390 |
} D3D11_VIDEO_PROCESSOR_DEVICE_CAPS; |
| 391 |
|
| 392 |
typedef enum D3D11_VIDEO_PROCESSOR_FEATURE_CAPS |
| 393 |
{ |
| 394 |
D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_ALPHA_FILL = 0x00000001, |
| 395 |
D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_CONSTRICTION = 0x00000002, |
| 396 |
D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_LUMA_KEY = 0x00000004, |
| 397 |
D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_ALPHA_PALETTE = 0x00000008, |
| 398 |
D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_LEGACY = 0x00000010, |
| 399 |
D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_STEREO = 0x00000020, |
| 400 |
D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_ROTATION = 0x00000040, |
| 401 |
D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_ALPHA_STREAM = 0x00000080, |
| 402 |
D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_PIXEL_ASPECT_RATIO = 0x00000100, |
| 403 |
D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_MIRROR = 0x00000200, |
| 404 |
D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_SHADER_USAGE = 0x00000400, |
| 405 |
D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_METADATA_HDR10 = 0x00000800, |
| 406 |
} D3D11_VIDEO_PROCESSOR_FEATURE_CAPS; |
| 407 |
|
| 408 |
typedef enum D3D11_VIDEO_PROCESSOR_FILTER_CAPS |
| 409 |
{ |
| 410 |
D3D11_VIDEO_PROCESSOR_FILTER_CAPS_BRIGHTNESS = 0x00000001, |
| 411 |
D3D11_VIDEO_PROCESSOR_FILTER_CAPS_CONTRAST = 0x00000002, |
| 412 |
D3D11_VIDEO_PROCESSOR_FILTER_CAPS_HUE = 0x00000004, |
| 413 |
D3D11_VIDEO_PROCESSOR_FILTER_CAPS_SATURATION = 0x00000008, |
| 414 |
D3D11_VIDEO_PROCESSOR_FILTER_CAPS_NOISE_REDUCTION = 0x00000010, |
| 415 |
D3D11_VIDEO_PROCESSOR_FILTER_CAPS_EDGE_ENHANCEMENT = 0x00000020, |
| 416 |
D3D11_VIDEO_PROCESSOR_FILTER_CAPS_ANAMORPHIC_SCALING = 0x00000040, |
| 417 |
D3D11_VIDEO_PROCESSOR_FILTER_CAPS_STEREO_ADJUSTMENT = 0x00000080, |
| 418 |
} D3D11_VIDEO_PROCESSOR_FILTER_CAPS; |
| 419 |
|
| 420 |
typedef enum D3D11_VIDEO_PROCESSOR_FORMAT_CAPS |
| 421 |
{ |
| 422 |
D3D11_VIDEO_PROCESSOR_FORMAT_CAPS_RGB_INTERLACED = 0x00000001, |
| 423 |
D3D11_VIDEO_PROCESSOR_FORMAT_CAPS_RGB_PROCAMP = 0x00000002, |
| 424 |
D3D11_VIDEO_PROCESSOR_FORMAT_CAPS_RGB_LUMA_KEY = 0x00000004, |
| 425 |
D3D11_VIDEO_PROCESSOR_FORMAT_CAPS_PALETTE_INTERLACED = 0x00000008, |
| 426 |
} D3D11_VIDEO_PROCESSOR_FORMAT_CAPS; |
| 427 |
|
| 428 |
typedef enum D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS |
| 429 |
{ |
| 430 |
D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_DENOISE = 0x00000001, |
| 431 |
D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_DERINGING = 0x00000002, |
| 432 |
D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_EDGE_ENHANCEMENT = 0x00000004, |
| 433 |
D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_COLOR_CORRECTION = 0x00000008, |
| 434 |
D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_FLESH_TONE_MAPPING = 0x00000010, |
| 435 |
D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_IMAGE_STABILIZATION = 0x00000020, |
| 436 |
D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_SUPER_RESOLUTION = 0x00000040, |
| 437 |
D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_ANAMORPHIC_SCALING = 0x00000080, |
| 438 |
} D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS; |
| 439 |
|
| 440 |
typedef enum D3D11_VIDEO_PROCESSOR_STEREO_CAPS |
| 441 |
{ |
| 442 |
D3D11_VIDEO_PROCESSOR_STEREO_CAPS_MONO_OFFSET = 0x00000001, |
| 443 |
D3D11_VIDEO_PROCESSOR_STEREO_CAPS_ROW_INTERLEAVED = 0x00000002, |
| 444 |
D3D11_VIDEO_PROCESSOR_STEREO_CAPS_COLUMN_INTERLEAVED = 0x00000004, |
| 445 |
D3D11_VIDEO_PROCESSOR_STEREO_CAPS_CHECKERBOARD = 0x00000008, |
| 446 |
D3D11_VIDEO_PROCESSOR_STEREO_CAPS_FLIP_MODE = 0x00000010, |
| 447 |
} D3D11_VIDEO_PROCESSOR_STEREO_CAPS; |
| 448 |
|
| 449 |
typedef enum D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS |
| 450 |
{ |
| 451 |
D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_BLEND = 0x01, |
| 452 |
D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_BOB = 0x02, |
| 453 |
D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_ADAPTIVE = 0x04, |
| 454 |
D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_MOTION_COMPENSATION = 0x08, |
| 455 |
D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_INVERSE_TELECINE = 0x10, |
| 456 |
D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_FRAME_RATE_CONVERSION = 0x20, |
| 457 |
} D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS; |
| 458 |
|
| 459 |
typedef enum D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS |
| 460 |
{ |
| 461 |
D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_32 = 0x00000001, |
| 462 |
D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_22 = 0x00000002, |
| 463 |
D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_2224 = 0x00000004, |
| 464 |
D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_2332 = 0x00000008, |
| 465 |
D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_32322 = 0x00000010, |
| 466 |
D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_55 = 0x00000020, |
| 467 |
D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_64 = 0x00000040, |
| 468 |
D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_87 = 0x00000080, |
| 469 |
D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_222222222223 = 0x00000100, |
| 470 |
D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_OTHER = 0x80000000, |
| 471 |
} D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS; |
| 472 |
|
| 473 |
typedef enum D3D11_CONTENT_PROTECTION_CAPS |
| 474 |
{ |
| 475 |
D3D11_CONTENT_PROTECTION_CAPS_SOFTWARE = 0x00000001, |
| 476 |
D3D11_CONTENT_PROTECTION_CAPS_HARDWARE = 0x00000002, |
| 477 |
D3D11_CONTENT_PROTECTION_CAPS_PROTECTION_ALWAYS_ON = 0x00000004, |
| 478 |
D3D11_CONTENT_PROTECTION_CAPS_PARTIAL_DECRYPTION = 0x00000008, |
| 479 |
D3D11_CONTENT_PROTECTION_CAPS_CONTENT_KEY = 0x00000010, |
| 480 |
D3D11_CONTENT_PROTECTION_CAPS_FRESHEN_SESSION_KEY = 0x00000020, |
| 481 |
D3D11_CONTENT_PROTECTION_CAPS_ENCRYPTED_READ_BACK = 0x00000040, |
| 482 |
D3D11_CONTENT_PROTECTION_CAPS_ENCRYPTED_READ_BACK_KEY = 0x00000080, |
| 483 |
D3D11_CONTENT_PROTECTION_CAPS_SEQUENTIAL_CTR_IV = 0x00000100, |
| 484 |
D3D11_CONTENT_PROTECTION_CAPS_ENCRYPT_SLICEDATA_ONLY = 0x00000200, |
| 485 |
D3D11_CONTENT_PROTECTION_CAPS_DECRYPTION_BLT = 0x00000400, |
| 486 |
D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_PROTECT_UNCOMPRESSED = 0x00000800, |
| 487 |
D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_PROTECTED_MEMORY_PAGEABLE = 0x00001000, |
| 488 |
D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_TEARDOWN = 0x00002000, |
| 489 |
D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_DRM_COMMUNICATION = 0x00004000, |
| 490 |
} D3D11_CONTENT_PROTECTION_CAPS; |
| 491 |
|
| 492 |
typedef enum D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE |
| 493 |
{ |
| 494 |
D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE_UNDEFINED = 0x00000000, |
| 495 |
D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE_16_235 = 0x00000001, |
| 496 |
D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE_0_255 = 0x00000002, |
| 497 |
} D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE; |
| 498 |
|
| 499 |
typedef enum D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE |
| 500 |
{ |
| 501 |
D3D11_PROCESSIDTYPE_UNKNOWN = 0x00000000, |
| 502 |
D3D11_PROCESSIDTYPE_DWM = 0x00000001, |
| 503 |
D3D11_PROCESSIDTYPE_HANDLE = 0x00000002, |
| 504 |
} D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE; |
| 505 |
|
| 506 |
typedef enum D3D11_BUS_TYPE |
| 507 |
{ |
| 508 |
D3D11_BUS_TYPE_OTHER = 0x00000000, |
| 509 |
D3D11_BUS_TYPE_PCI = 0x00000001, |
| 510 |
D3D11_BUS_TYPE_PCIX = 0x00000002, |
| 511 |
D3D11_BUS_TYPE_PCIEXPRESS = 0x00000003, |
| 512 |
D3D11_BUS_TYPE_AGP = 0x00000004, |
| 513 |
D3D11_BUS_IMPL_MODIFIER_INSIDE_OF_CHIPSET = 0x00010000, |
| 514 |
D3D11_BUS_IMPL_MODIFIER_TRACKS_ON_MOTHER_BOARD_TO_CHIP = 0x00020000, |
| 515 |
D3D11_BUS_IMPL_MODIFIER_TRACKS_ON_MOTHER_BOARD_TO_SOCKET = 0x00030000, |
| 516 |
D3D11_BUS_IMPL_MODIFIER_DAUGHTER_BOARD_CONNECTOR = 0x00040000, |
| 517 |
D3D11_BUS_IMPL_MODIFIER_DAUGHTER_BOARD_CONNECTOR_INSIDE_OF_NUAE = 0x00050000, |
| 518 |
D3D11_BUS_IMPL_MODIFIER_NON_STANDARD = 0x80000000, |
| 519 |
} D3D11_BUS_TYPE; |
| 520 |
|
| 521 |
typedef struct D3D11_BOX |
| 522 |
{ |
| 523 |
UINT left; |
| 524 |
UINT top; |
| 525 |
UINT front; |
| 526 |
UINT right; |
| 527 |
UINT bottom; |
| 528 |
UINT back; |
| 529 |
} D3D11_BOX; |
| 530 |
|
| 531 |
typedef struct D3D11_BUFFER_RTV |
| 532 |
{ |
| 533 |
union |
| 534 |
{ |
| 535 |
UINT FirstElement; |
| 536 |
UINT ElementOffset; |
| 537 |
}; |
| 538 |
union |
| 539 |
{ |
| 540 |
UINT NumElements; |
| 541 |
UINT ElementWidth; |
| 542 |
}; |
| 543 |
} D3D11_BUFFER_RTV; |
| 544 |
|
| 545 |
typedef struct D3D11_BUFFER_SRV |
| 546 |
{ |
| 547 |
union |
| 548 |
{ |
| 549 |
UINT FirstElement; |
| 550 |
UINT ElementOffset; |
| 551 |
}; |
| 552 |
union |
| 553 |
{ |
| 554 |
UINT NumElements; |
| 555 |
UINT ElementWidth; |
| 556 |
}; |
| 557 |
} D3D11_BUFFER_SRV; |
| 558 |
|
| 559 |
typedef struct D3D11_BUFFER_UAV |
| 560 |
{ |
| 561 |
UINT FirstElement; |
| 562 |
UINT NumElements; |
| 563 |
UINT Flags; |
| 564 |
} D3D11_BUFFER_UAV; |
| 565 |
|
| 566 |
typedef struct D3D11_BUFFEREX_SRV |
| 567 |
{ |
| 568 |
UINT FirstElement; |
| 569 |
UINT NumElements; |
| 570 |
UINT Flags; |
| 571 |
} D3D11_BUFFEREX_SRV; |
| 572 |
|
| 573 |
typedef struct D3D11_CLASS_INSTANCE_DESC |
| 574 |
{ |
| 575 |
UINT InstanceId; |
| 576 |
UINT InstanceIndex; |
| 577 |
UINT TypeId; |
| 578 |
UINT ConstantBuffer; |
| 579 |
UINT BaseConstantBufferOffset; |
| 580 |
UINT BaseTexture; |
| 581 |
UINT BaseSampler; |
| 582 |
BOOL Created; |
| 583 |
} D3D11_CLASS_INSTANCE_DESC; |
| 584 |
|
| 585 |
typedef enum D3D11_COMPARISON_FUNC |
| 586 |
{ |
| 587 |
D3D11_COMPARISON_NEVER = 1, |
| 588 |
D3D11_COMPARISON_LESS, |
| 589 |
D3D11_COMPARISON_EQUAL, |
| 590 |
D3D11_COMPARISON_LESS_EQUAL, |
| 591 |
D3D11_COMPARISON_GREATER, |
| 592 |
D3D11_COMPARISON_NOT_EQUAL, |
| 593 |
D3D11_COMPARISON_GREATER_EQUAL, |
| 594 |
D3D11_COMPARISON_ALWAYS |
| 595 |
} D3D11_COMPARISON_FUNC; |
| 596 |
|
| 597 |
typedef enum D3D11_COUNTER |
| 598 |
{ |
| 599 |
D3D11_COUNTER_DEVICE_DEPENDENT_0 = 0x40000000, |
| 600 |
} D3D11_COUNTER; |
| 601 |
|
| 602 |
typedef struct D3D11_COUNTER_DESC |
| 603 |
{ |
| 604 |
D3D11_COUNTER Counter; |
| 605 |
UINT MiscFlags; |
| 606 |
} D3D11_COUNTER_DESC; |
| 607 |
|
| 608 |
typedef struct D3D11_COUNTER_INFO |
| 609 |
{ |
| 610 |
D3D11_COUNTER LastDeviceDependentCounter; |
| 611 |
UINT NumSimultaneousCounters; |
| 612 |
UINT8 NumDetectableParallelUnits; |
| 613 |
} D3D11_COUNTER_INFO; |
| 614 |
|
| 615 |
typedef enum D3D11_COUNTER_TYPE |
| 616 |
{ |
| 617 |
D3D11_COUNTER_TYPE_FLOAT32, |
| 618 |
D3D11_COUNTER_TYPE_UINT16, |
| 619 |
D3D11_COUNTER_TYPE_UINT32, |
| 620 |
D3D11_COUNTER_TYPE_UINT64, |
| 621 |
} D3D11_COUNTER_TYPE; |
| 622 |
|
| 623 |
typedef enum D3D11_CULL_MODE |
| 624 |
{ |
| 625 |
D3D11_CULL_NONE = 1, |
| 626 |
D3D11_CULL_FRONT, |
| 627 |
D3D11_CULL_BACK |
| 628 |
} D3D11_CULL_MODE; |
| 629 |
|
| 630 |
typedef enum D3D11_DEPTH_WRITE_MASK |
| 631 |
{ |
| 632 |
D3D11_DEPTH_WRITE_MASK_ZERO, |
| 633 |
D3D11_DEPTH_WRITE_MASK_ALL, |
| 634 |
} D3D11_DEPTH_WRITE_MASK; |
| 635 |
|
| 636 |
typedef enum D3D11_STANDARD_MULTISAMPLE_QUALITY_LEVELS |
| 637 |
{ |
| 638 |
D3D11_STANDARD_MULTISAMPLE_PATTERN = 0xffffffff, |
| 639 |
D3D11_CENTER_MULTISAMPLE_PATTERN = 0xfffffffe, |
| 640 |
} D3D11_STANDARD_MULTISAMPLE_QUALITY_LEVELS; |
| 641 |
|
| 642 |
typedef enum D3D11_DEVICE_CONTEXT_TYPE |
| 643 |
{ |
| 644 |
D3D11_DEVICE_CONTEXT_IMMEDIATE, |
| 645 |
D3D11_DEVICE_CONTEXT_DEFERRED, |
| 646 |
} D3D11_DEVICE_CONTEXT_TYPE; |
| 647 |
|
| 648 |
typedef enum D3D11_DSV_DIMENSION |
| 649 |
{ |
| 650 |
D3D11_DSV_DIMENSION_UNKNOWN, |
| 651 |
D3D11_DSV_DIMENSION_TEXTURE1D, |
| 652 |
D3D11_DSV_DIMENSION_TEXTURE1DARRAY, |
| 653 |
D3D11_DSV_DIMENSION_TEXTURE2D, |
| 654 |
D3D11_DSV_DIMENSION_TEXTURE2DARRAY, |
| 655 |
D3D11_DSV_DIMENSION_TEXTURE2DMS, |
| 656 |
D3D11_DSV_DIMENSION_TEXTURE2DMSARRAY, |
| 657 |
} D3D11_DSV_DIMENSION; |
| 658 |
|
| 659 |
typedef enum D3D11_FEATURE |
| 660 |
{ |
| 661 |
D3D11_FEATURE_THREADING, |
| 662 |
D3D11_FEATURE_DOUBLES, |
| 663 |
D3D11_FEATURE_FORMAT_SUPPORT, |
| 664 |
D3D11_FEATURE_FORMAT_SUPPORT2, |
| 665 |
D3D11_FEATURE_D3D10_X_HARDWARE_OPTIONS, |
| 666 |
D3D11_FEATURE_D3D11_OPTIONS, |
| 667 |
D3D11_FEATURE_ARCHITECTURE_INFO, |
| 668 |
D3D11_FEATURE_D3D9_OPTIONS, |
| 669 |
D3D11_FEATURE_SHADER_MIN_PRECISION_SUPPORT, |
| 670 |
D3D11_FEATURE_D3D9_SHADOW_SUPPORT, |
| 671 |
D3D11_FEATURE_D3D11_OPTIONS1, |
| 672 |
D3D11_FEATURE_D3D9_SIMPLE_INSTANCING_SUPPORT, |
| 673 |
D3D11_FEATURE_MARKER_SUPPORT, |
| 674 |
D3D11_FEATURE_D3D9_OPTIONS1, |
| 675 |
D3D11_FEATURE_D3D11_OPTIONS2, |
| 676 |
D3D11_FEATURE_D3D11_OPTIONS3, |
| 677 |
D3D11_FEATURE_GPU_VIRTUAL_ADDRESS_SUPPORT, |
| 678 |
D3D11_FEATURE_D3D11_OPTIONS4, |
| 679 |
D3D11_FEATURE_SHADER_CACHE, |
| 680 |
D3D11_FEATURE_D3D11_OPTIONS5, |
| 681 |
} D3D11_FEATURE; |
| 682 |
|
| 683 |
typedef struct D3D11_FEATURE_DATA_THREADING |
| 684 |
{ |
| 685 |
BOOL DriverConcurrentCreates; |
| 686 |
BOOL DriverCommandLists; |
| 687 |
} D3D11_FEATURE_DATA_THREADING; |
| 688 |
|
| 689 |
typedef struct D3D11_FEATURE_DATA_DOUBLES |
| 690 |
{ |
| 691 |
BOOL DoublePrecisionFloatShaderOps; |
| 692 |
} D3D11_FEATURE_DATA_DOUBLES; |
| 693 |
|
| 694 |
typedef struct D3D11_FEATURE_DATA_FORMAT_SUPPORT |
| 695 |
{ |
| 696 |
DXGI_FORMAT InFormat; |
| 697 |
UINT OutFormatSupport; |
| 698 |
} D3D11_FEATURE_DATA_FORMAT_SUPPORT; |
| 699 |
|
| 700 |
typedef struct D3D11_FEATURE_DATA_FORMAT_SUPPORT2 |
| 701 |
{ |
| 702 |
DXGI_FORMAT InFormat; |
| 703 |
UINT OutFormatSupport2; |
| 704 |
} D3D11_FEATURE_DATA_FORMAT_SUPPORT2; |
| 705 |
|
| 706 |
typedef struct D3D11_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS |
| 707 |
{ |
| 708 |
BOOL ComputeShaders_Plus_RawAndStructuredBuffers_Via_Shader_4_x; |
| 709 |
} D3D11_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS; |
| 710 |
|
| 711 |
typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS |
| 712 |
{ |
| 713 |
BOOL OutputMergerLogicOp; |
| 714 |
BOOL UAVOnlyRenderingForcedSampleCount; |
| 715 |
BOOL DiscardAPIsSeenByDriver; |
| 716 |
BOOL FlagsForUpdateAndCopySeenByDriver; |
| 717 |
BOOL ClearView; |
| 718 |
BOOL CopyWithOverlap; |
| 719 |
BOOL ConstantBufferPartialUpdate; |
| 720 |
BOOL ConstantBufferOffsetting; |
| 721 |
BOOL MapNoOverwriteOnDynamicConstantBuffer; |
| 722 |
BOOL MapNoOverwriteOnDynamicBufferSRV; |
| 723 |
BOOL MultisampleRTVWithForcedSampleCountOne; |
| 724 |
BOOL SAD4ShaderInstructions; |
| 725 |
BOOL ExtendedDoublesShaderInstructions; |
| 726 |
BOOL ExtendedResourceSharing; |
| 727 |
} D3D11_FEATURE_DATA_D3D11_OPTIONS; |
| 728 |
|
| 729 |
typedef struct D3D11_FEATURE_DATA_ARCHITECTURE_INFO |
| 730 |
{ |
| 731 |
BOOL TileBasedDeferredRenderer; |
| 732 |
} D3D11_FEATURE_DATA_ARCHITECTURE_INFO; |
| 733 |
|
| 734 |
typedef struct D3D11_FEATURE_DATA_D3D9_OPTIONS |
| 735 |
{ |
| 736 |
BOOL FullNonPow2TextureSupport; |
| 737 |
} D3D11_FEATURE_DATA_D3D9_OPTIONS; |
| 738 |
|
| 739 |
typedef struct D3D11_FEATURE_DATA_D3D9_SHADOW_SUPPORT |
| 740 |
{ |
| 741 |
BOOL SupportsDepthAsTextureWithLessEqualComparisonFilter; |
| 742 |
} D3D11_FEATURE_DATA_D3D9_SHADOW_SUPPORT; |
| 743 |
|
| 744 |
typedef enum D3D11_SHADER_MIN_PRECISION_SUPPORT |
| 745 |
{ |
| 746 |
D3D11_SHADER_MIN_PRECISION_10_BIT = 0x1, |
| 747 |
D3D11_SHADER_MIN_PRECISION_16_BIT = 0x2, |
| 748 |
} D3D11_SHADER_MIN_PRECISION_SUPPORT; |
| 749 |
|
| 750 |
typedef struct D3D11_FEATURE_DATA_SHADER_MIN_PRECISION_SUPPORT |
| 751 |
{ |
| 752 |
UINT PixelShaderMinPrecision; |
| 753 |
UINT AllOtherShaderStagesMinPrecision; |
| 754 |
} D3D11_FEATURE_DATA_SHADER_MIN_PRECISION_SUPPORT; |
| 755 |
|
| 756 |
typedef enum D3D11_TILED_RESOURCES_TIER |
| 757 |
{ |
| 758 |
D3D11_TILED_RESOURCES_NOT_SUPPORTED = 0x0, |
| 759 |
D3D11_TILED_RESOURCES_TIER_1 = 0x1, |
| 760 |
D3D11_TILED_RESOURCES_TIER_2 = 0x2, |
| 761 |
D3D11_TILED_RESOURCES_TIER_3 = 0x3, |
| 762 |
} D3D11_TILED_RESOURCES_TIER; |
| 763 |
|
| 764 |
typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS1 |
| 765 |
{ |
| 766 |
D3D11_TILED_RESOURCES_TIER TiledResourcesTier; |
| 767 |
BOOL MinMaxFiltering; |
| 768 |
BOOL ClearViewAlsoSupportsDepthOnlyFormats; |
| 769 |
BOOL MapOnDefaultBuffers; |
| 770 |
} D3D11_FEATURE_DATA_D3D11_OPTIONS1; |
| 771 |
|
| 772 |
typedef struct D3D11_FEATURE_DATA_D3D9_SIMPLE_INSTANCING_SUPPORT |
| 773 |
{ |
| 774 |
BOOL SimpleInstancingSupported; |
| 775 |
} D3D11_FEATURE_DATA_D3D9_SIMPLE_INSTANCING_SUPPORT; |
| 776 |
|
| 777 |
typedef struct D3D11_FEATURE_DATA_MARKER_SUPPORT |
| 778 |
{ |
| 779 |
BOOL Profile; |
| 780 |
} D3D11_FEATURE_DATA_MARKER_SUPPORT; |
| 781 |
|
| 782 |
typedef struct D3D11_FEATURE_DATA_D3D9_OPTIONS1 |
| 783 |
{ |
| 784 |
BOOL FullNonPow2TextureSupported; |
| 785 |
BOOL DepthAsTextureWithLessEqualComparisonFilterSupported; |
| 786 |
BOOL SimpleInstancingSupported; |
| 787 |
BOOL TextureCubeFaceRenderTargetWithNonCubeDepthStencilSupported; |
| 788 |
} D3D11_FEATURE_DATA_D3D9_OPTIONS1; |
| 789 |
|
| 790 |
typedef enum D3D11_CONSERVATIVE_RASTERIZATION_TIER |
| 791 |
{ |
| 792 |
D3D11_CONSERVATIVE_RASTERIZATION_NOT_SUPPORTED = 0x0, |
| 793 |
D3D11_CONSERVATIVE_RASTERIZATION_TIER_1 = 0x1, |
| 794 |
D3D11_CONSERVATIVE_RASTERIZATION_TIER_2 = 0x2, |
| 795 |
D3D11_CONSERVATIVE_RASTERIZATION_TIER_3 = 0x3, |
| 796 |
} D3D11_CONSERVATIVE_RASTERIZATION_TIER; |
| 797 |
|
| 798 |
typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS2 |
| 799 |
{ |
| 800 |
BOOL PSSpecifiedStencilRefSupported; |
| 801 |
BOOL TypedUAVLoadAdditionalFormats; |
| 802 |
BOOL ROVsSupported; |
| 803 |
D3D11_CONSERVATIVE_RASTERIZATION_TIER ConservativeRasterizationTier; |
| 804 |
D3D11_TILED_RESOURCES_TIER TiledResourcesTier; |
| 805 |
BOOL MapOnDefaultTextures; |
| 806 |
BOOL StandardSwizzle; |
| 807 |
BOOL UnifiedMemoryArchitecture; |
| 808 |
} D3D11_FEATURE_DATA_D3D11_OPTIONS2; |
| 809 |
|
| 810 |
typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS3 |
| 811 |
{ |
| 812 |
BOOL VPAndRTArrayIndexFromAnyShaderFeedingRasterizer; |
| 813 |
} D3D11_FEATURE_DATA_D3D11_OPTIONS3; |
| 814 |
|
| 815 |
typedef struct D3D11_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT |
| 816 |
{ |
| 817 |
UINT MaxGPUVirtualAddressBitsPerResource; |
| 818 |
UINT MaxGPUVirtualAddressBitsPerProcess; |
| 819 |
} D3D11_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT; |
| 820 |
|
| 821 |
typedef enum D3D11_SHADER_CACHE_SUPPORT_FLAGS |
| 822 |
{ |
| 823 |
D3D11_SHADER_CACHE_SUPPORT_NONE = 0x0, |
| 824 |
D3D11_SHADER_CACHE_SUPPORT_AUTOMATIC_INPROC_CACHE = 0x1, |
| 825 |
D3D11_SHADER_CACHE_SUPPORT_AUTOMATIC_DISK_CACHE = 0x2, |
| 826 |
} D3D11_SHADER_CACHE_SUPPORT_FLAGS; |
| 827 |
|
| 828 |
typedef struct D3D11_FEATURE_DATA_SHADER_CACHE |
| 829 |
{ |
| 830 |
UINT SupportFlags; |
| 831 |
} D3D11_FEATURE_DATA_SHADER_CACHE; |
| 832 |
|
| 833 |
typedef enum D3D11_SHARED_RESOURCE_TIER |
| 834 |
{ |
| 835 |
D3D11_SHARED_RESOURCE_TIER_0, |
| 836 |
D3D11_SHARED_RESOURCE_TIER_1, |
| 837 |
D3D11_SHARED_RESOURCE_TIER_2, |
| 838 |
D3D11_SHARED_RESOURCE_TIER_3, |
| 839 |
} D3D11_SHARED_RESOURCE_TIER; |
| 840 |
|
| 841 |
typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS5 |
| 842 |
{ |
| 843 |
D3D11_SHARED_RESOURCE_TIER SharedResourceTier; |
| 844 |
} D3D11_FEATURE_DATA_D3D11_OPTIONS5; |
| 845 |
|
| 846 |
typedef enum D3D11_FILL_MODE |
| 847 |
{ |
| 848 |
D3D11_FILL_WIREFRAME = 2, |
| 849 |
D3D11_FILL_SOLID |
| 850 |
} D3D11_FILL_MODE; |
| 851 |
|
| 852 |
typedef enum D3D11_FILTER_TYPE |
| 853 |
{ |
| 854 |
D3D11_FILTER_TYPE_POINT = 0, |
| 855 |
D3D11_FILTER_TYPE_LINEAR = 1 |
| 856 |
} D3D11_FILTER_TYPE; |
| 857 |
|
| 858 |
typedef enum D3D11_FILTER_REDUCTION_TYPE |
| 859 |
{ |
| 860 |
D3D11_FILTER_REDUCTION_TYPE_STANDARD = 0x0, |
| 861 |
D3D11_FILTER_REDUCTION_TYPE_COMPARISON = 0x1, |
| 862 |
D3D11_FILTER_REDUCTION_TYPE_MINIMUM = 0x2, |
| 863 |
D3D11_FILTER_REDUCTION_TYPE_MAXIMUM = 0x3, |
| 864 |
} D3D11_FILTER_REDUCTION_TYPE; |
| 865 |
|
| 866 |
const UINT D3D11_FILTER_REDUCTION_TYPE_SHIFT = 7; |
| 867 |
const UINT D3D11_MIN_FILTER_SHIFT = 4; |
| 868 |
const UINT D3D11_MAG_FILTER_SHIFT = 2; |
| 869 |
const UINT D3D11_MIP_FILTER_SHIFT = 0; |
| 870 |
|
| 871 |
const UINT D3D11_FILTER_REDUCTION_TYPE_MASK = 0x00000003; |
| 872 |
const UINT D3D11_FILTER_TYPE_MASK = 0x00000003; |
| 873 |
const UINT D3D11_COMPARISON_FILTERING_BIT = 0x00000080; |
| 874 |
const UINT D3D11_ANISOTROPIC_FILTERING_BIT = 0x00000040; |
| 875 |
|
| 876 |
cpp_quote("#define D3D11_ENCODE_BASIC_FILTER(min, mag, mip, reduction_mode) \\") |
| 877 |
cpp_quote(" ((D3D11_FILTER)((((min)&D3D11_FILTER_TYPE_MASK) << D3D11_MIN_FILTER_SHIFT) | \\") |
| 878 |
cpp_quote(" (((mag)&D3D11_FILTER_TYPE_MASK) << D3D11_MAG_FILTER_SHIFT) | \\") |
| 879 |
cpp_quote(" (((mip)&D3D11_FILTER_TYPE_MASK) << D3D11_MIP_FILTER_SHIFT) | \\") |
| 880 |
cpp_quote(" (((reduction_mode)&D3D11_FILTER_REDUCTION_TYPE_MASK) << D3D11_FILTER_REDUCTION_TYPE_SHIFT)))") |
| 881 |
|
| 882 |
cpp_quote("#define D3D11_ENCODE_ANISOTROPIC_FILTER(reduction_mode) \\") |
| 883 |
cpp_quote(" ((D3D11_FILTER)(D3D11_ANISOTROPIC_FILTERING_BIT | \\" ) |
| 884 |
cpp_quote(" D3D11_ENCODE_BASIC_FILTER(D3D11_FILTER_TYPE_LINEAR,D3D11_FILTER_TYPE_LINEAR, \\" ) |
| 885 |
cpp_quote(" D3D11_FILTER_TYPE_LINEAR,reduction_mode)))" ) |
| 886 |
|
| 887 |
cpp_quote("#define D3D11_DECODE_MIN_FILTER(d3d11Filter) \\") |
| 888 |
cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MIN_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))") |
| 889 |
|
| 890 |
cpp_quote("#define D3D11_DECODE_MAG_FILTER(d3d11Filter) \\") |
| 891 |
cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MAG_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))") |
| 892 |
|
| 893 |
cpp_quote("#define D3D11_DECODE_MIP_FILTER(d3d11Filter) \\") |
| 894 |
cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MIP_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))") |
| 895 |
|
| 896 |
cpp_quote("#define D3D11_DECODE_FILTER_REDUCTION(filter) \\") |
| 897 |
cpp_quote(" ((D3D11_FILTER_REDUCTION_TYPE)(((filter) >> D3D11_FILTER_REDUCTION_TYPE_SHIFT) & D3D11_FILTER_REDUCTION_TYPE_MASK))") |
| 898 |
|
| 899 |
cpp_quote("#define D3D11_DECODE_IS_COMPARISON_FILTER(filter) \\") |
| 900 |
cpp_quote(" (D3D11_DECODE_FILTER_REDUCTION(filter) == D3D11_FILTER_REDUCTION_TYPE_COMPARISON)") |
| 901 |
|
| 902 |
cpp_quote("#define D3D11_DECODE_IS_ANISOTROPIC_FILTER(d3d11Filter) \\") |
| 903 |
cpp_quote(" (((d3d11Filter) & D3D11_ANISOTROPIC_FILTERING_BIT ) \\" ) |
| 904 |
cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIN_FILTER(d3d11Filter)) \\" ) |
| 905 |
cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MAG_FILTER(d3d11Filter)) \\" ) |
| 906 |
cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIP_FILTER(d3d11Filter)))") |
| 907 |
|
| 908 |
typedef enum D3D11_FILTER |
| 909 |
{ |
| 910 |
D3D11_FILTER_MIN_MAG_MIP_POINT = 0x00, |
| 911 |
D3D11_FILTER_MIN_MAG_POINT_MIP_LINEAR = 0x01, |
| 912 |
D3D11_FILTER_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x04, |
| 913 |
D3D11_FILTER_MIN_POINT_MAG_MIP_LINEAR = 0x05, |
| 914 |
D3D11_FILTER_MIN_LINEAR_MAG_MIP_POINT = 0x10, |
| 915 |
D3D11_FILTER_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x11, |
| 916 |
D3D11_FILTER_MIN_MAG_LINEAR_MIP_POINT = 0x14, |
| 917 |
D3D11_FILTER_MIN_MAG_MIP_LINEAR = 0x15, |
| 918 |
D3D11_FILTER_ANISOTROPIC = 0x55, |
| 919 |
D3D11_FILTER_COMPARISON_MIN_MAG_MIP_POINT = 0x80, |
| 920 |
D3D11_FILTER_COMPARISON_MIN_MAG_POINT_MIP_LINEAR = 0x81, |
| 921 |
D3D11_FILTER_COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x84, |
| 922 |
D3D11_FILTER_COMPARISON_MIN_POINT_MAG_MIP_LINEAR = 0x85, |
| 923 |
D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_MIP_POINT = 0x90, |
| 924 |
D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x91, |
| 925 |
D3D11_FILTER_COMPARISON_MIN_MAG_LINEAR_MIP_POINT = 0x94, |
| 926 |
D3D11_FILTER_COMPARISON_MIN_MAG_MIP_LINEAR = 0x95, |
| 927 |
D3D11_FILTER_COMPARISON_ANISOTROPIC = 0xd5, |
| 928 |
D3D11_FILTER_MINIMUM_MIN_MAG_MIP_POINT = 0x100, |
| 929 |
D3D11_FILTER_MINIMUM_MIN_MAG_POINT_MIP_LINEAR = 0x101, |
| 930 |
D3D11_FILTER_MINIMUM_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x104, |
| 931 |
D3D11_FILTER_MINIMUM_MIN_POINT_MAG_MIP_LINEAR = 0x105, |
| 932 |
D3D11_FILTER_MINIMUM_MIN_LINEAR_MAG_MIP_POINT = 0x110, |
| 933 |
D3D11_FILTER_MINIMUM_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x111, |
| 934 |
D3D11_FILTER_MINIMUM_MIN_MAG_LINEAR_MIP_POINT = 0x114, |
| 935 |
D3D11_FILTER_MINIMUM_MIN_MAG_MIP_LINEAR = 0x115, |
| 936 |
D3D11_FILTER_MINIMUM_ANISOTROPIC = 0x155, |
| 937 |
D3D11_FILTER_MAXIMUM_MIN_MAG_MIP_POINT = 0x180, |
| 938 |
D3D11_FILTER_MAXIMUM_MIN_MAG_POINT_MIP_LINEAR = 0x181, |
| 939 |
D3D11_FILTER_MAXIMUM_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x184, |
| 940 |
D3D11_FILTER_MAXIMUM_MIN_POINT_MAG_MIP_LINEAR = 0x185, |
| 941 |
D3D11_FILTER_MAXIMUM_MIN_LINEAR_MAG_MIP_POINT = 0x190, |
| 942 |
D3D11_FILTER_MAXIMUM_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x191, |
| 943 |
D3D11_FILTER_MAXIMUM_MIN_MAG_LINEAR_MIP_POINT = 0x194, |
| 944 |
D3D11_FILTER_MAXIMUM_MIN_MAG_MIP_LINEAR = 0x195, |
| 945 |
D3D11_FILTER_MAXIMUM_ANISOTROPIC = 0x1d5 |
| 946 |
} D3D11_FILTER; |
| 947 |
|
| 948 |
typedef enum D3D11_DSV_FLAG |
| 949 |
{ |
| 950 |
D3D11_DSV_READ_ONLY_DEPTH = 0x1, |
| 951 |
D3D11_DSV_READ_ONLY_STENCIL = 0x2, |
| 952 |
} D3D11_DSV_FLAG; |
| 953 |
|
| 954 |
typedef enum D3D11_BUFFEREX_SRV_FLAG |
| 955 |
{ |
| 956 |
D3D11_BUFFEREX_SRV_FLAG_RAW = 0x1, |
| 957 |
} D3D11_BUFFEREX_SRV_FLAG; |
| 958 |
|
| 959 |
typedef enum D3D11_UAV_FLAG |
| 960 |
{ |
| 961 |
D3D11_BUFFER_UAV_FLAG_RAW = 0x1, |
| 962 |
D3D11_BUFFER_UAV_FLAG_APPEND = 0x2, |
| 963 |
D3D11_BUFFER_UAV_FLAG_COUNTER = 0x4, |
| 964 |
} D3D11_UAV_FLAG; |
| 965 |
|
| 966 |
typedef enum D3D11_INPUT_CLASSIFICATION |
| 967 |
{ |
| 968 |
D3D11_INPUT_PER_VERTEX_DATA, |
| 969 |
D3D11_INPUT_PER_INSTANCE_DATA, |
| 970 |
} D3D11_INPUT_CLASSIFICATION; |
| 971 |
|
| 972 |
const UINT D3D11_APPEND_ALIGNED_ELEMENT = 0xffffffff; |
| 973 |
|
| 974 |
typedef struct D3D11_INPUT_ELEMENT_DESC |
| 975 |
{ |
| 976 |
LPCSTR SemanticName; |
| 977 |
UINT SemanticIndex; |
| 978 |
DXGI_FORMAT Format; |
| 979 |
UINT InputSlot; |
| 980 |
UINT AlignedByteOffset; |
| 981 |
D3D11_INPUT_CLASSIFICATION InputSlotClass; |
| 982 |
UINT InstanceDataStepRate; |
| 983 |
} D3D11_INPUT_ELEMENT_DESC; |
| 984 |
|
| 985 |
typedef enum D3D11_MAP |
| 986 |
{ |
| 987 |
D3D11_MAP_READ = 1, |
| 988 |
D3D11_MAP_WRITE, |
| 989 |
D3D11_MAP_READ_WRITE, |
| 990 |
D3D11_MAP_WRITE_DISCARD, |
| 991 |
D3D11_MAP_WRITE_NO_OVERWRITE |
| 992 |
} D3D11_MAP; |
| 993 |
|
| 994 |
typedef enum D3D11_MAP_FLAG |
| 995 |
{ |
| 996 |
D3D11_MAP_FLAG_DO_NOT_WAIT = 0x00100000 |
| 997 |
} D3D11_MAP_FLAG; |
| 998 |
|
| 999 |
typedef enum D3D11_RAISE_FLAG |
| 1000 |
{ |
| 1001 |
D3D11_RAISE_FLAG_DRIVER_INTERNAL_ERROR = 0x1, |
| 1002 |
} D3D11_RAISE_FLAG; |
| 1003 |
|
| 1004 |
typedef struct D3D11_QUERY_DATA_SO_STATISTICS |
| 1005 |
{ |
| 1006 |
UINT64 NumPrimitivesWritten; |
| 1007 |
UINT64 PrimitivesStorageNeeded; |
| 1008 |
} D3D11_QUERY_DATA_SO_STATISTICS; |
| 1009 |
|
| 1010 |
typedef struct D3D11_MAPPED_SUBRESOURCE |
| 1011 |
{ |
| 1012 |
void *pData; |
| 1013 |
UINT RowPitch; |
| 1014 |
UINT DepthPitch; |
| 1015 |
} D3D11_MAPPED_SUBRESOURCE; |
| 1016 |
|
| 1017 |
typedef enum D3D11_QUERY |
| 1018 |
{ |
| 1019 |
D3D11_QUERY_EVENT, |
| 1020 |
D3D11_QUERY_OCCLUSION, |
| 1021 |
D3D11_QUERY_TIMESTAMP, |
| 1022 |
D3D11_QUERY_TIMESTAMP_DISJOINT, |
| 1023 |
D3D11_QUERY_PIPELINE_STATISTICS, |
| 1024 |
D3D11_QUERY_OCCLUSION_PREDICATE, |
| 1025 |
D3D11_QUERY_SO_STATISTICS, |
| 1026 |
D3D11_QUERY_SO_OVERFLOW_PREDICATE, |
| 1027 |
D3D11_QUERY_SO_STATISTICS_STREAM0, |
| 1028 |
D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM0, |
| 1029 |
D3D11_QUERY_SO_STATISTICS_STREAM1, |
| 1030 |
D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM1, |
| 1031 |
D3D11_QUERY_SO_STATISTICS_STREAM2, |
| 1032 |
D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM2, |
| 1033 |
D3D11_QUERY_SO_STATISTICS_STREAM3, |
| 1034 |
D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM3, |
| 1035 |
} D3D11_QUERY; |
| 1036 |
|
| 1037 |
typedef enum D3D11_QUERY_MISC_FLAG |
| 1038 |
{ |
| 1039 |
D3D11_QUERY_MISC_PREDICATEHINT = 0x1, |
| 1040 |
} D3D11_QUERY_MISC_FLAG; |
| 1041 |
|
| 1042 |
typedef enum D3D11_ASYNC_GETDATA_FLAG |
| 1043 |
{ |
| 1044 |
D3D11_ASYNC_GETDATA_DONOTFLUSH = 0x0001, |
| 1045 |
} D3D11_ASYNC_GETDATA_FLAG; |
| 1046 |
|
| 1047 |
typedef enum D3D11_RESOURCE_MISC_FLAG |
| 1048 |
{ |
| 1049 |
D3D11_RESOURCE_MISC_GENERATE_MIPS = 0x00000001L, |
| 1050 |
D3D11_RESOURCE_MISC_SHARED = 0x00000002L, |
| 1051 |
D3D11_RESOURCE_MISC_TEXTURECUBE = 0x00000004L, |
| 1052 |
D3D11_RESOURCE_MISC_DRAWINDIRECT_ARGS = 0x00000010L, |
| 1053 |
D3D11_RESOURCE_MISC_BUFFER_ALLOW_RAW_VIEWS = 0x00000020L, |
| 1054 |
D3D11_RESOURCE_MISC_BUFFER_STRUCTURED = 0x00000040L, |
| 1055 |
D3D11_RESOURCE_MISC_RESOURCE_CLAMP = 0x00000080L, |
| 1056 |
D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX = 0x00000100L, |
| 1057 |
D3D11_RESOURCE_MISC_GDI_COMPATIBLE = 0x00000200L, |
| 1058 |
D3D11_RESOURCE_MISC_SHARED_NTHANDLE = 0x00000800L, |
| 1059 |
D3D11_RESOURCE_MISC_RESTRICTED_CONTENT = 0x00001000L, |
| 1060 |
D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE = 0x00002000L, |
| 1061 |
D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE_DRIVER = 0x00004000L, |
| 1062 |
D3D11_RESOURCE_MISC_GUARDED = 0x00008000L, |
| 1063 |
D3D11_RESOURCE_MISC_TILE_POOL = 0x00020000L, |
| 1064 |
D3D11_RESOURCE_MISC_TILED = 0x00040000L, |
| 1065 |
D3D11_RESOURCE_MISC_HW_PROTECTED = 0x00080000L, |
| 1066 |
D3D11_RESOURCE_MISC_SHARED_DISPLAYABLE = 0x00100000L, |
| 1067 |
D3D11_RESOURCE_MISC_SHARED_EXCLUSIVE_WRITER = 0x00200000L |
| 1068 |
} D3D11_RESOURCE_MISC_FLAG; |
| 1069 |
|
| 1070 |
typedef struct D3D11_QUERY_DESC |
| 1071 |
{ |
| 1072 |
D3D11_QUERY Query; |
| 1073 |
UINT MiscFlags; |
| 1074 |
} D3D11_QUERY_DESC; |
| 1075 |
|
| 1076 |
cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)") |
| 1077 |
cpp_quote("struct CD3D11_QUERY_DESC : public D3D11_QUERY_DESC {") |
| 1078 |
cpp_quote(" CD3D11_QUERY_DESC() {}") |
| 1079 |
cpp_quote(" ~CD3D11_QUERY_DESC() {}") |
| 1080 |
cpp_quote(" explicit CD3D11_QUERY_DESC(const D3D11_QUERY_DESC &other) : D3D11_QUERY_DESC(other) {}") |
| 1081 |
cpp_quote(" explicit CD3D11_QUERY_DESC(D3D11_QUERY query, UINT misc_flags = 0) {") |
| 1082 |
cpp_quote(" Query = query;") |
| 1083 |
cpp_quote(" MiscFlags = misc_flags;") |
| 1084 |
cpp_quote(" }") |
| 1085 |
cpp_quote(" operator const D3D11_QUERY_DESC&() const {") |
| 1086 |
cpp_quote(" return *this;") |
| 1087 |
cpp_quote(" }") |
| 1088 |
cpp_quote("};") |
| 1089 |
cpp_quote("#endif") |
| 1090 |
|
| 1091 |
typedef struct D3D11_RASTERIZER_DESC |
| 1092 |
{ |
| 1093 |
D3D11_FILL_MODE FillMode; |
| 1094 |
D3D11_CULL_MODE CullMode; |
| 1095 |
BOOL FrontCounterClockwise; |
| 1096 |
INT DepthBias; |
| 1097 |
FLOAT DepthBiasClamp; |
| 1098 |
FLOAT SlopeScaledDepthBias; |
| 1099 |
BOOL DepthClipEnable; |
| 1100 |
BOOL ScissorEnable; |
| 1101 |
BOOL MultisampleEnable; |
| 1102 |
BOOL AntialiasedLineEnable; |
| 1103 |
} D3D11_RASTERIZER_DESC; |
| 1104 |
|
| 1105 |
cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)") |
| 1106 |
cpp_quote("struct CD3D11_RASTERIZER_DESC : public D3D11_RASTERIZER_DESC {") |
| 1107 |
cpp_quote(" CD3D11_RASTERIZER_DESC() {}") |
| 1108 |
cpp_quote(" explicit CD3D11_RASTERIZER_DESC(const D3D11_RASTERIZER_DESC &o) : D3D11_RASTERIZER_DESC(o) {}") |
| 1109 |
cpp_quote(" explicit CD3D11_RASTERIZER_DESC(CD3D11_DEFAULT) {") |
| 1110 |
cpp_quote(" FillMode = D3D11_FILL_SOLID;") |
| 1111 |
cpp_quote(" CullMode = D3D11_CULL_BACK;") |
| 1112 |
cpp_quote(" FrontCounterClockwise = FALSE;") |
| 1113 |
cpp_quote(" DepthBias = D3D11_DEFAULT_DEPTH_BIAS;") |
| 1114 |
cpp_quote(" DepthBiasClamp = D3D11_DEFAULT_DEPTH_BIAS_CLAMP;") |
| 1115 |
cpp_quote(" SlopeScaledDepthBias = D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS;") |
| 1116 |
cpp_quote(" DepthClipEnable = TRUE;") |
| 1117 |
cpp_quote(" ScissorEnable = FALSE;") |
| 1118 |
cpp_quote(" MultisampleEnable = FALSE;") |
| 1119 |
cpp_quote(" AntialiasedLineEnable = FALSE;") |
| 1120 |
cpp_quote(" }") |
| 1121 |
cpp_quote(" explicit CD3D11_RASTERIZER_DESC(D3D11_FILL_MODE fillMode, D3D11_CULL_MODE cullMode," ) |
| 1122 |
cpp_quote(" WINBOOL frontCounterClockwise, INT depthBias, FLOAT depthBiasClamp, FLOAT slopeScaledDepthBias,") |
| 1123 |
cpp_quote(" BOOL depthClipEnable, WINBOOL scissorEnable, WINBOOL multisampleEnable, WINBOOL antialiasedLineEnable) {") |
| 1124 |
cpp_quote(" FillMode = fillMode;") |
| 1125 |
cpp_quote(" CullMode = cullMode;") |
| 1126 |
cpp_quote(" FrontCounterClockwise = frontCounterClockwise;") |
| 1127 |
cpp_quote(" DepthBias = depthBias;") |
| 1128 |
cpp_quote(" DepthBiasClamp = depthBiasClamp;") |
| 1129 |
cpp_quote(" SlopeScaledDepthBias = slopeScaledDepthBias;") |
| 1130 |
cpp_quote(" DepthClipEnable = depthClipEnable;") |
| 1131 |
cpp_quote(" ScissorEnable = scissorEnable;") |
| 1132 |
cpp_quote(" MultisampleEnable = multisampleEnable;") |
| 1133 |
cpp_quote(" AntialiasedLineEnable = antialiasedLineEnable;") |
| 1134 |
cpp_quote(" }") |
| 1135 |
cpp_quote(" ~CD3D11_RASTERIZER_DESC() {}") |
| 1136 |
cpp_quote(" operator const D3D11_RASTERIZER_DESC&() const { return *this; }") |
| 1137 |
cpp_quote("};") |
| 1138 |
cpp_quote("#endif") |
| 1139 |
|
| 1140 |
typedef enum D3D11_RESOURCE_DIMENSION |
| 1141 |
{ |
| 1142 |
D3D11_RESOURCE_DIMENSION_UNKNOWN, |
| 1143 |
D3D11_RESOURCE_DIMENSION_BUFFER, |
| 1144 |
D3D11_RESOURCE_DIMENSION_TEXTURE1D, |
| 1145 |
D3D11_RESOURCE_DIMENSION_TEXTURE2D, |
| 1146 |
D3D11_RESOURCE_DIMENSION_TEXTURE3D, |
| 1147 |
} D3D11_RESOURCE_DIMENSION; |
| 1148 |
|
| 1149 |
typedef enum D3D11_RTV_DIMENSION |
| 1150 |
{ |
| 1151 |
D3D11_RTV_DIMENSION_UNKNOWN, |
| 1152 |
D3D11_RTV_DIMENSION_BUFFER, |
| 1153 |
D3D11_RTV_DIMENSION_TEXTURE1D, |
| 1154 |
D3D11_RTV_DIMENSION_TEXTURE1DARRAY, |
| 1155 |
D3D11_RTV_DIMENSION_TEXTURE2D, |
| 1156 |
D3D11_RTV_DIMENSION_TEXTURE2DARRAY, |
| 1157 |
D3D11_RTV_DIMENSION_TEXTURE2DMS, |
| 1158 |
D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY, |
| 1159 |
D3D11_RTV_DIMENSION_TEXTURE3D, |
| 1160 |
} D3D11_RTV_DIMENSION; |
| 1161 |
|
| 1162 |
typedef struct D3D11_SO_DECLARATION_ENTRY |
| 1163 |
{ |
| 1164 |
UINT Stream; |
| 1165 |
LPCSTR SemanticName; |
| 1166 |
UINT SemanticIndex; |
| 1167 |
BYTE StartComponent; |
| 1168 |
BYTE ComponentCount; |
| 1169 |
BYTE OutputSlot; |
| 1170 |
} D3D11_SO_DECLARATION_ENTRY; |
| 1171 |
|
| 1172 |
typedef enum D3D11_STENCIL_OP |
| 1173 |
{ |
| 1174 |
D3D11_STENCIL_OP_KEEP = 1, |
| 1175 |
D3D11_STENCIL_OP_ZERO, |
| 1176 |
D3D11_STENCIL_OP_REPLACE, |
| 1177 |
D3D11_STENCIL_OP_INCR_SAT, |
| 1178 |
D3D11_STENCIL_OP_DECR_SAT, |
| 1179 |
D3D11_STENCIL_OP_INVERT, |
| 1180 |
D3D11_STENCIL_OP_INCR, |
| 1181 |
D3D11_STENCIL_OP_DECR |
| 1182 |
} D3D11_STENCIL_OP; |
| 1183 |
|
| 1184 |
cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)") |
| 1185 |
cpp_quote("}") |
| 1186 |
cpp_quote("inline UINT D3D11CalcSubresource(UINT MipSlice, UINT ArraySlice, UINT MipLevels) {") |
| 1187 |
cpp_quote(" return MipSlice + ArraySlice * MipLevels;") |
| 1188 |
cpp_quote("}") |
| 1189 |
cpp_quote("extern \"C\"{") |
| 1190 |
cpp_quote("#endif") |
| 1191 |
|
| 1192 |
typedef struct D3D11_SUBRESOURCE_DATA |
| 1193 |
{ |
| 1194 |
const void *pSysMem; |
| 1195 |
UINT SysMemPitch; |
| 1196 |
UINT SysMemSlicePitch; |
| 1197 |
} D3D11_SUBRESOURCE_DATA; |
| 1198 |
|
| 1199 |
typedef struct D3D11_TEX1D_ARRAY_DSV |
| 1200 |
{ |
| 1201 |
UINT MipSlice; |
| 1202 |
UINT FirstArraySlice; |
| 1203 |
UINT ArraySize; |
| 1204 |
} D3D11_TEX1D_ARRAY_DSV; |
| 1205 |
|
| 1206 |
typedef struct D3D11_TEX1D_ARRAY_RTV |
| 1207 |
{ |
| 1208 |
UINT MipSlice; |
| 1209 |
UINT FirstArraySlice; |
| 1210 |
UINT ArraySize; |
| 1211 |
} D3D11_TEX1D_ARRAY_RTV; |
| 1212 |
|
| 1213 |
typedef struct D3D11_TEX1D_ARRAY_SRV |
| 1214 |
{ |
| 1215 |
UINT MostDetailedMip; |
| 1216 |
UINT MipLevels; |
| 1217 |
UINT FirstArraySlice; |
| 1218 |
UINT ArraySize; |
| 1219 |
} D3D11_TEX1D_ARRAY_SRV; |
| 1220 |
|
| 1221 |
typedef struct D3D11_TEX1D_ARRAY_UAV |
| 1222 |
{ |
| 1223 |
UINT MipSlice; |
| 1224 |
UINT FirstArraySlice; |
| 1225 |
UINT ArraySize; |
| 1226 |
} D3D11_TEX1D_ARRAY_UAV; |
| 1227 |
|
| 1228 |
typedef struct D3D11_TEX1D_DSV |
| 1229 |
{ |
| 1230 |
UINT MipSlice; |
| 1231 |
} D3D11_TEX1D_DSV; |
| 1232 |
|
| 1233 |
typedef struct D3D11_TEX1D_RTV |
| 1234 |
{ |
| 1235 |
UINT MipSlice; |
| 1236 |
} D3D11_TEX1D_RTV; |
| 1237 |
|
| 1238 |
typedef struct D3D11_TEX1D_SRV |
| 1239 |
{ |
| 1240 |
UINT MostDetailedMip; |
| 1241 |
UINT MipLevels; |
| 1242 |
} D3D11_TEX1D_SRV; |
| 1243 |
|
| 1244 |
typedef struct D3D11_TEX1D_UAV |
| 1245 |
{ |
| 1246 |
UINT MipSlice; |
| 1247 |
} D3D11_TEX1D_UAV; |
| 1248 |
|
| 1249 |
typedef struct D3D11_TEX2D_ARRAY_DSV |
| 1250 |
{ |
| 1251 |
UINT MipSlice; |
| 1252 |
UINT FirstArraySlice; |
| 1253 |
UINT ArraySize; |
| 1254 |
} D3D11_TEX2D_ARRAY_DSV; |
| 1255 |
|
| 1256 |
typedef struct D3D11_TEX2D_ARRAY_RTV |
| 1257 |
{ |
| 1258 |
UINT MipSlice; |
| 1259 |
UINT FirstArraySlice; |
| 1260 |
UINT ArraySize; |
| 1261 |
} D3D11_TEX2D_ARRAY_RTV; |
| 1262 |
|
| 1263 |
typedef struct D3D11_TEX2D_ARRAY_SRV |
| 1264 |
{ |
| 1265 |
UINT MostDetailedMip; |
| 1266 |
UINT MipLevels; |
| 1267 |
UINT FirstArraySlice; |
| 1268 |
UINT ArraySize; |
| 1269 |
} D3D11_TEX2D_ARRAY_SRV; |
| 1270 |
|
| 1271 |
typedef struct D3D11_TEX2D_ARRAY_UAV |
| 1272 |
{ |
| 1273 |
UINT MipSlice; |
| 1274 |
UINT FirstArraySlice; |
| 1275 |
UINT ArraySize; |
| 1276 |
} D3D11_TEX2D_ARRAY_UAV; |
| 1277 |
|
| 1278 |
typedef struct D3D11_TEX2D_DSV |
| 1279 |
{ |
| 1280 |
UINT MipSlice; |
| 1281 |
} D3D11_TEX2D_DSV; |
| 1282 |
|
| 1283 |
typedef struct D3D11_TEX2D_RTV |
| 1284 |
{ |
| 1285 |
UINT MipSlice; |
| 1286 |
} D3D11_TEX2D_RTV; |
| 1287 |
|
| 1288 |
typedef struct D3D11_TEX2D_SRV |
| 1289 |
{ |
| 1290 |
UINT MostDetailedMip; |
| 1291 |
UINT MipLevels; |
| 1292 |
} D3D11_TEX2D_SRV; |
| 1293 |
|
| 1294 |
typedef struct D3D11_TEX2D_UAV |
| 1295 |
{ |
| 1296 |
UINT MipSlice; |
| 1297 |
} D3D11_TEX2D_UAV; |
| 1298 |
|
| 1299 |
typedef struct D3D11_TEX2DMS_ARRAY_DSV |
| 1300 |
{ |
| 1301 |
UINT FirstArraySlice; |
| 1302 |
UINT ArraySize; |
| 1303 |
} D3D11_TEX2DMS_ARRAY_DSV; |
| 1304 |
|
| 1305 |
typedef struct D3D11_TEX2DMS_ARRAY_RTV |
| 1306 |
{ |
| 1307 |
UINT FirstArraySlice; |
| 1308 |
UINT ArraySize; |
| 1309 |
} D3D11_TEX2DMS_ARRAY_RTV; |
| 1310 |
|
| 1311 |
typedef struct D3D11_TEX2DMS_ARRAY_SRV |
| 1312 |
{ |
| 1313 |
UINT FirstArraySlice; |
| 1314 |
UINT ArraySize; |
| 1315 |
} D3D11_TEX2DMS_ARRAY_SRV; |
| 1316 |
|
| 1317 |
typedef struct D3D11_TEX2DMS_DSV |
| 1318 |
{ |
| 1319 |
UINT UnusedField_NothingToDefine; |
| 1320 |
} D3D11_TEX2DMS_DSV; |
| 1321 |
|
| 1322 |
typedef struct D3D11_TEX2DMS_RTV |
| 1323 |
{ |
| 1324 |
UINT UnusedField_NothingToDefine; |
| 1325 |
} D3D11_TEX2DMS_RTV; |
| 1326 |
|
| 1327 |
typedef struct D3D11_TEX2DMS_SRV |
| 1328 |
{ |
| 1329 |
UINT UnusedField_NothingToDefine; |
| 1330 |
} D3D11_TEX2DMS_SRV; |
| 1331 |
|
| 1332 |
typedef struct D3D11_TEX3D_RTV |
| 1333 |
{ |
| 1334 |
UINT MipSlice; |
| 1335 |
UINT FirstWSlice; |
| 1336 |
UINT WSize; |
| 1337 |
} D3D11_TEX3D_RTV; |
| 1338 |
|
| 1339 |
typedef struct D3D11_TEX3D_SRV |
| 1340 |
{ |
| 1341 |
UINT MostDetailedMip; |
| 1342 |
UINT MipLevels; |
| 1343 |
} D3D11_TEX3D_SRV; |
| 1344 |
|
| 1345 |
typedef struct D3D11_TEX3D_UAV |
| 1346 |
{ |
| 1347 |
UINT MipSlice; |
| 1348 |
UINT FirstWSlice; |
| 1349 |
UINT WSize; |
| 1350 |
} D3D11_TEX3D_UAV; |
| 1351 |
|
| 1352 |
typedef struct D3D11_TEXCUBE_ARRAY_SRV |
| 1353 |
{ |
| 1354 |
UINT MostDetailedMip; |
| 1355 |
UINT MipLevels; |
| 1356 |
UINT First2DArrayFace; |
| 1357 |
UINT NumCubes; |
| 1358 |
} D3D11_TEXCUBE_ARRAY_SRV; |
| 1359 |
|
| 1360 |
typedef struct D3D11_TEXCUBE_SRV |
| 1361 |
{ |
| 1362 |
UINT MostDetailedMip; |
| 1363 |
UINT MipLevels; |
| 1364 |
} D3D11_TEXCUBE_SRV; |
| 1365 |
|
| 1366 |
typedef enum D3D11_TEXTURE_ADDRESS_MODE |
| 1367 |
{ |
| 1368 |
D3D11_TEXTURE_ADDRESS_WRAP = 1, |
| 1369 |
D3D11_TEXTURE_ADDRESS_MIRROR, |
| 1370 |
D3D11_TEXTURE_ADDRESS_CLAMP, |
| 1371 |
D3D11_TEXTURE_ADDRESS_BORDER, |
| 1372 |
D3D11_TEXTURE_ADDRESS_MIRROR_ONCE |
| 1373 |
} D3D11_TEXTURE_ADDRESS_MODE; |
| 1374 |
|
| 1375 |
typedef enum D3D11_UAV_DIMENSION |
| 1376 |
{ |
| 1377 |
D3D11_UAV_DIMENSION_UNKNOWN, |
| 1378 |
D3D11_UAV_DIMENSION_BUFFER, |
| 1379 |
D3D11_UAV_DIMENSION_TEXTURE1D, |
| 1380 |
D3D11_UAV_DIMENSION_TEXTURE1DARRAY, |
| 1381 |
D3D11_UAV_DIMENSION_TEXTURE2D, |
| 1382 |
D3D11_UAV_DIMENSION_TEXTURE2DARRAY, |
| 1383 |
D3D11_UAV_DIMENSION_TEXTURE3D = 8, |
| 1384 |
} D3D11_UAV_DIMENSION; |
| 1385 |
|
| 1386 |
typedef struct D3D11_UNORDERED_ACCESS_VIEW_DESC |
| 1387 |
{ |
| 1388 |
DXGI_FORMAT Format; |
| 1389 |
D3D11_UAV_DIMENSION ViewDimension; |
| 1390 |
|
| 1391 |
union |
| 1392 |
{ |
| 1393 |
D3D11_BUFFER_UAV Buffer; |
| 1394 |
D3D11_TEX1D_UAV Texture1D; |
| 1395 |
D3D11_TEX1D_ARRAY_UAV Texture1DArray; |
| 1396 |
D3D11_TEX2D_UAV Texture2D; |
| 1397 |
D3D11_TEX2D_ARRAY_UAV Texture2DArray; |
| 1398 |
D3D11_TEX3D_UAV Texture3D; |
| 1399 |
}; |
| 1400 |
} D3D11_UNORDERED_ACCESS_VIEW_DESC; |
| 1401 |
|
| 1402 |
typedef enum D3D11_USAGE |
| 1403 |
{ |
| 1404 |
D3D11_USAGE_DEFAULT, |
| 1405 |
D3D11_USAGE_IMMUTABLE, |
| 1406 |
D3D11_USAGE_DYNAMIC, |
| 1407 |
D3D11_USAGE_STAGING, |
| 1408 |
} D3D11_USAGE; |
| 1409 |
|
| 1410 |
typedef enum D3D11_BIND_FLAG |
| 1411 |
{ |
| 1412 |
D3D11_BIND_VERTEX_BUFFER = 0x0001, |
| 1413 |
D3D11_BIND_INDEX_BUFFER = 0x0002, |
| 1414 |
D3D11_BIND_CONSTANT_BUFFER = 0x0004, |
| 1415 |
D3D11_BIND_SHADER_RESOURCE = 0x0008, |
| 1416 |
D3D11_BIND_STREAM_OUTPUT = 0x0010, |
| 1417 |
D3D11_BIND_RENDER_TARGET = 0x0020, |
| 1418 |
D3D11_BIND_DEPTH_STENCIL = 0x0040, |
| 1419 |
D3D11_BIND_UNORDERED_ACCESS = 0x0080, |
| 1420 |
D3D11_BIND_DECODER = 0x0200, |
| 1421 |
D3D11_BIND_VIDEO_ENCODER = 0x0400 |
| 1422 |
} D3D11_BIND_FLAG; |
| 1423 |
|
| 1424 |
typedef enum D3D11_CPU_ACCESS_FLAG |
| 1425 |
{ |
| 1426 |
D3D11_CPU_ACCESS_WRITE = 0x00010000, |
| 1427 |
D3D11_CPU_ACCESS_READ = 0x00020000 |
| 1428 |
} D3D11_CPU_ACCESS_FLAG; |
| 1429 |
|
| 1430 |
typedef struct D3D11_VIEWPORT |
| 1431 |
{ |
| 1432 |
FLOAT TopLeftX; |
| 1433 |
FLOAT TopLeftY; |
| 1434 |
FLOAT Width; |
| 1435 |
FLOAT Height; |
| 1436 |
FLOAT MinDepth; |
| 1437 |
FLOAT MaxDepth; |
| 1438 |
} D3D11_VIEWPORT; |
| 1439 |
|
| 1440 |
typedef enum D3D11_COLOR_WRITE_ENABLE |
| 1441 |
{ |
| 1442 |
D3D11_COLOR_WRITE_ENABLE_RED = 1, |
| 1443 |
D3D11_COLOR_WRITE_ENABLE_GREEN = 2, |
| 1444 |
D3D11_COLOR_WRITE_ENABLE_BLUE = 4, |
| 1445 |
D3D11_COLOR_WRITE_ENABLE_ALPHA = 8, |
| 1446 |
D3D11_COLOR_WRITE_ENABLE_ALL = |
| 1447 |
(D3D11_COLOR_WRITE_ENABLE_RED|D3D11_COLOR_WRITE_ENABLE_GREEN|D3D11_COLOR_WRITE_ENABLE_BLUE|D3D11_COLOR_WRITE_ENABLE_ALPHA) |
| 1448 |
} D3D11_COLOR_WRITE_ENABLE; |
| 1449 |
|
| 1450 |
typedef enum D3D11_FORMAT_SUPPORT |
| 1451 |
{ |
| 1452 |
D3D11_FORMAT_SUPPORT_BUFFER = 0x00000001, |
| 1453 |
D3D11_FORMAT_SUPPORT_IA_VERTEX_BUFFER = 0x00000002, |
| 1454 |
D3D11_FORMAT_SUPPORT_IA_INDEX_BUFFER = 0x00000004, |
| 1455 |
D3D11_FORMAT_SUPPORT_SO_BUFFER = 0x00000008, |
| 1456 |
D3D11_FORMAT_SUPPORT_TEXTURE1D = 0x00000010, |
| 1457 |
D3D11_FORMAT_SUPPORT_TEXTURE2D = 0x00000020, |
| 1458 |
D3D11_FORMAT_SUPPORT_TEXTURE3D = 0x00000040, |
| 1459 |
D3D11_FORMAT_SUPPORT_TEXTURECUBE = 0x00000080, |
| 1460 |
D3D11_FORMAT_SUPPORT_SHADER_LOAD = 0x00000100, |
| 1461 |
D3D11_FORMAT_SUPPORT_SHADER_SAMPLE = 0x00000200, |
| 1462 |
D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_COMPARISON = 0x00000400, |
| 1463 |
D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_MONO_TEXT = 0x00000800, |
| 1464 |
D3D11_FORMAT_SUPPORT_MIP = 0x00001000, |
| 1465 |
D3D11_FORMAT_SUPPORT_MIP_AUTOGEN = 0x00002000, |
| 1466 |
D3D11_FORMAT_SUPPORT_RENDER_TARGET = 0x00004000, |
| 1467 |
D3D11_FORMAT_SUPPORT_BLENDABLE = 0x00008000, |
| 1468 |
D3D11_FORMAT_SUPPORT_DEPTH_STENCIL = 0x00010000, |
| 1469 |
D3D11_FORMAT_SUPPORT_CPU_LOCKABLE = 0x00020000, |
| 1470 |
D3D11_FORMAT_SUPPORT_MULTISAMPLE_RESOLVE = 0x00040000, |
| 1471 |
D3D11_FORMAT_SUPPORT_DISPLAY = 0x00080000, |
| 1472 |
D3D11_FORMAT_SUPPORT_CAST_WITHIN_BIT_LAYOUT = 0x00100000, |
| 1473 |
D3D11_FORMAT_SUPPORT_MULTISAMPLE_RENDERTARGET = 0x00200000, |
| 1474 |
D3D11_FORMAT_SUPPORT_MULTISAMPLE_LOAD = 0x00400000, |
| 1475 |
D3D11_FORMAT_SUPPORT_SHADER_GATHER = 0x00800000, |
| 1476 |
D3D11_FORMAT_SUPPORT_BACK_BUFFER_CAST = 0x01000000, |
| 1477 |
D3D11_FORMAT_SUPPORT_TYPED_UNORDERED_ACCESS_VIEW = 0x02000000, |
| 1478 |
D3D11_FORMAT_SUPPORT_SHADER_GATHER_COMPARISON = 0x04000000, |
| 1479 |
D3D11_FORMAT_SUPPORT_DECODER_OUTPUT = 0x08000000, |
| 1480 |
D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_OUTPUT = 0x10000000, |
| 1481 |
D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_INPUT = 0x20000000, |
| 1482 |
D3D11_FORMAT_SUPPORT_VIDEO_ENCODER = 0x40000000, |
| 1483 |
} D3D11_FORMAT_SUPPORT; |
| 1484 |
|
| 1485 |
typedef enum D3D11_FORMAT_SUPPORT2 |
| 1486 |
{ |
| 1487 |
D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_ADD = 0x00000001, |
| 1488 |
D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_BITWISE_OPS = 0x00000002, |
| 1489 |
D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_COMPARE_STORE_OR_COMPARE_EXCHANGE = 0x00000004, |
| 1490 |
D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_EXCHANGE = 0x00000008, |
| 1491 |
D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_SIGNED_MIN_OR_MAX = 0x00000010, |
| 1492 |
D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_UNSIGNED_MIN_OR_MAX = 0x00000020, |
| 1493 |
D3D11_FORMAT_SUPPORT2_UAV_TYPED_LOAD = 0x00000040, |
| 1494 |
D3D11_FORMAT_SUPPORT2_UAV_TYPED_STORE = 0x00000080, |
| 1495 |
D3D11_FORMAT_SUPPORT2_OUTPUT_MERGER_LOGIC_OP = 0x00000100, |
| 1496 |
D3D11_FORMAT_SUPPORT2_TILED = 0x00000200, |
| 1497 |
D3D11_FORMAT_SUPPORT2_SHAREABLE = 0x00000400, |
| 1498 |
D3D11_FORMAT_SUPPORT2_MULTIPLANE_OVERLAY = 0x00004000, |
| 1499 |
} D3D11_FORMAT_SUPPORT2; |
| 1500 |
|
| 1501 |
typedef enum D3D11_CLEAR_FLAG |
| 1502 |
{ |
| 1503 |
D3D11_CLEAR_DEPTH = 0x0001L, |
| 1504 |
D3D11_CLEAR_STENCIL = 0x0002L |
| 1505 |
} D3D11_CLEAR_FLAG; |
| 1506 |
|
| 1507 |
typedef struct D3D11_RENDER_TARGET_BLEND_DESC |
| 1508 |
{ |
| 1509 |
BOOL BlendEnable; |
| 1510 |
D3D11_BLEND SrcBlend; |
| 1511 |
D3D11_BLEND DestBlend; |
| 1512 |
D3D11_BLEND_OP BlendOp; |
| 1513 |
D3D11_BLEND SrcBlendAlpha; |
| 1514 |
D3D11_BLEND DestBlendAlpha; |
| 1515 |
D3D11_BLEND_OP BlendOpAlpha; |
| 1516 |
UINT8 RenderTargetWriteMask; |
| 1517 |
} D3D11_RENDER_TARGET_BLEND_DESC; |
| 1518 |
|
| 1519 |
typedef struct D3D11_BLEND_DESC |
| 1520 |
{ |
| 1521 |
BOOL AlphaToCoverageEnable; |
| 1522 |
BOOL IndependentBlendEnable; |
| 1523 |
D3D11_RENDER_TARGET_BLEND_DESC RenderTarget[D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT]; |
| 1524 |
} D3D11_BLEND_DESC; |
| 1525 |
|
| 1526 |
cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)") |
| 1527 |
cpp_quote("struct CD3D11_BLEND_DESC : public D3D11_BLEND_DESC {") |
| 1528 |
cpp_quote(" CD3D11_BLEND_DESC() {}") |
| 1529 |
cpp_quote(" explicit CD3D11_BLEND_DESC(const D3D11_BLEND_DESC &o) : D3D11_BLEND_DESC(o) {}") |
| 1530 |
cpp_quote(" explicit CD3D11_BLEND_DESC(CD3D11_DEFAULT) {") |
| 1531 |
cpp_quote(" AlphaToCoverageEnable = FALSE;") |
| 1532 |
cpp_quote(" IndependentBlendEnable = FALSE;") |
| 1533 |
cpp_quote(" for(D3D11_RENDER_TARGET_BLEND_DESC *target = RenderTarget;") |
| 1534 |
cpp_quote(" target < RenderTarget + D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT;") |
| 1535 |
cpp_quote(" target++) {") |
| 1536 |
cpp_quote(" target->BlendEnable = FALSE;") |
| 1537 |
cpp_quote(" target->SrcBlend = target->SrcBlendAlpha = D3D11_BLEND_ONE;") |
| 1538 |
cpp_quote(" target->DestBlend = target->DestBlendAlpha = D3D11_BLEND_ZERO;") |
| 1539 |
cpp_quote(" target->BlendOp = target->BlendOpAlpha = D3D11_BLEND_OP_ADD;") |
| 1540 |
cpp_quote(" target->RenderTargetWriteMask = D3D11_COLOR_WRITE_ENABLE_ALL;") |
| 1541 |
cpp_quote(" }") |
| 1542 |
cpp_quote(" }") |
| 1543 |
cpp_quote(" ~CD3D11_BLEND_DESC() {}") |
| 1544 |
cpp_quote(" operator const D3D11_BLEND_DESC&() const { return *this; }") |
| 1545 |
cpp_quote("};" ) |
| 1546 |
cpp_quote("#endif" ) |
| 1547 |
|
| 1548 |
typedef struct D3D11_BUFFER_DESC |
| 1549 |
{ |
| 1550 |
UINT ByteWidth; |
| 1551 |
D3D11_USAGE Usage; |
| 1552 |
UINT BindFlags; |
| 1553 |
UINT CPUAccessFlags; |
| 1554 |
UINT MiscFlags; |
| 1555 |
UINT StructureByteStride; |
| 1556 |
} D3D11_BUFFER_DESC; |
| 1557 |
|
| 1558 |
cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)") |
| 1559 |
cpp_quote("struct CD3D11_BUFFER_DESC : public D3D11_BUFFER_DESC {") |
| 1560 |
cpp_quote(" CD3D11_BUFFER_DESC() {}" ) |
| 1561 |
cpp_quote(" explicit CD3D11_BUFFER_DESC(const D3D11_BUFFER_DESC &o) : D3D11_BUFFER_DESC(o) {}") |
| 1562 |
cpp_quote(" explicit CD3D11_BUFFER_DESC(UINT byteWidth,UINT bindFlags,") |
| 1563 |
cpp_quote(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0,") |
| 1564 |
cpp_quote(" UINT miscFlags = 0, UINT structureByteStride = 0 ) {") |
| 1565 |
cpp_quote(" ByteWidth = byteWidth;") |
| 1566 |
cpp_quote(" Usage = usage;") |
| 1567 |
cpp_quote(" BindFlags = bindFlags;") |
| 1568 |
cpp_quote(" CPUAccessFlags = cpuaccessFlags;") |
| 1569 |
cpp_quote(" MiscFlags = miscFlags;" ) |
| 1570 |
cpp_quote(" StructureByteStride = structureByteStride;") |
| 1571 |
cpp_quote(" }") |
| 1572 |
cpp_quote(" ~CD3D11_BUFFER_DESC() {}") |
| 1573 |
cpp_quote(" operator const D3D11_BUFFER_DESC&() const { return *this; }") |
| 1574 |
cpp_quote("};" ) |
| 1575 |
cpp_quote("#endif" ) |
| 1576 |
|
| 1577 |
typedef struct D3D11_DEPTH_STENCIL_VIEW_DESC |
| 1578 |
{ |
| 1579 |
DXGI_FORMAT Format; |
| 1580 |
D3D11_DSV_DIMENSION ViewDimension; |
| 1581 |
UINT Flags; |
| 1582 |
|
| 1583 |
union |
| 1584 |
{ |
| 1585 |
D3D11_TEX1D_DSV Texture1D; |
| 1586 |
D3D11_TEX1D_ARRAY_DSV Texture1DArray; |
| 1587 |
D3D11_TEX2D_DSV Texture2D; |
| 1588 |
D3D11_TEX2D_ARRAY_DSV Texture2DArray; |
| 1589 |
D3D11_TEX2DMS_DSV Texture2DMS; |
| 1590 |
D3D11_TEX2DMS_ARRAY_DSV Texture2DMSArray; |
| 1591 |
}; |
| 1592 |
} D3D11_DEPTH_STENCIL_VIEW_DESC; |
| 1593 |
|
| 1594 |
typedef struct D3D11_DEPTH_STENCILOP_DESC |
| 1595 |
{ |
| 1596 |
D3D11_STENCIL_OP StencilFailOp; |
| 1597 |
D3D11_STENCIL_OP StencilDepthFailOp; |
| 1598 |
D3D11_STENCIL_OP StencilPassOp; |
| 1599 |
D3D11_COMPARISON_FUNC StencilFunc; |
| 1600 |
} D3D11_DEPTH_STENCILOP_DESC; |
| 1601 |
|
| 1602 |
typedef struct D3D11_DEPTH_STENCIL_DESC |
| 1603 |
{ |
| 1604 |
BOOL DepthEnable; |
| 1605 |
D3D11_DEPTH_WRITE_MASK DepthWriteMask; |
| 1606 |
D3D11_COMPARISON_FUNC DepthFunc; |
| 1607 |
BOOL StencilEnable; |
| 1608 |
UINT8 StencilReadMask; |
| 1609 |
UINT8 StencilWriteMask; |
| 1610 |
D3D11_DEPTH_STENCILOP_DESC FrontFace; |
| 1611 |
D3D11_DEPTH_STENCILOP_DESC BackFace; |
| 1612 |
} D3D11_DEPTH_STENCIL_DESC; |
| 1613 |
|
| 1614 |
cpp_quote("#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus )") |
| 1615 |
cpp_quote("struct CD3D11_DEPTH_STENCIL_DESC : public D3D11_DEPTH_STENCIL_DESC {") |
| 1616 |
cpp_quote(" CD3D11_DEPTH_STENCIL_DESC() {}") |
| 1617 |
cpp_quote(" explicit CD3D11_DEPTH_STENCIL_DESC(const D3D11_DEPTH_STENCIL_DESC &other) : D3D11_DEPTH_STENCIL_DESC(other) {}") |
| 1618 |
cpp_quote(" explicit CD3D11_DEPTH_STENCIL_DESC(CD3D11_DEFAULT) {") |
| 1619 |
cpp_quote(" const D3D11_DEPTH_STENCILOP_DESC default_op =") |
| 1620 |
cpp_quote(" {D3D11_STENCIL_OP_KEEP, D3D11_STENCIL_OP_KEEP, D3D11_STENCIL_OP_KEEP, D3D11_COMPARISON_ALWAYS};") |
| 1621 |
cpp_quote(" DepthEnable = TRUE;") |
| 1622 |
cpp_quote(" DepthWriteMask = D3D11_DEPTH_WRITE_MASK_ALL;") |
| 1623 |
cpp_quote(" DepthFunc = D3D11_COMPARISON_LESS;") |
| 1624 |
cpp_quote(" StencilEnable = FALSE;") |
| 1625 |
cpp_quote(" StencilReadMask = D3D11_DEFAULT_STENCIL_READ_MASK;") |
| 1626 |
cpp_quote(" StencilWriteMask = D3D11_DEFAULT_STENCIL_WRITE_MASK;") |
| 1627 |
cpp_quote(" FrontFace = default_op;") |
| 1628 |
cpp_quote(" BackFace = default_op;") |
| 1629 |
cpp_quote(" }") |
| 1630 |
cpp_quote(" explicit CD3D11_DEPTH_STENCIL_DESC(") |
| 1631 |
cpp_quote(" WINBOOL depth_enable,") |
| 1632 |
cpp_quote(" D3D11_DEPTH_WRITE_MASK depth_write_mask,") |
| 1633 |
cpp_quote(" D3D11_COMPARISON_FUNC depth_func,") |
| 1634 |
cpp_quote(" WINBOOL stencil_enable,") |
| 1635 |
cpp_quote(" UINT8 stencil_read_mask,") |
| 1636 |
cpp_quote(" UINT8 stencil_write_mask,") |
| 1637 |
cpp_quote(" D3D11_STENCIL_OP front_stencil_fail_op,") |
| 1638 |
cpp_quote(" D3D11_STENCIL_OP front_stencil_depth_fail_op,") |
| 1639 |
cpp_quote(" D3D11_STENCIL_OP front_stencil_pass_op,") |
| 1640 |
cpp_quote(" D3D11_COMPARISON_FUNC front_stencil_func,") |
| 1641 |
cpp_quote(" D3D11_STENCIL_OP back_stencil_fail_op,") |
| 1642 |
cpp_quote(" D3D11_STENCIL_OP back_stencil_depth_fail_op,") |
| 1643 |
cpp_quote(" D3D11_STENCIL_OP back_stencil_pass_op,") |
| 1644 |
cpp_quote(" D3D11_COMPARISON_FUNC back_stencil_func) {") |
| 1645 |
cpp_quote(" DepthEnable = depth_enable;") |
| 1646 |
cpp_quote(" DepthWriteMask = depth_write_mask;") |
| 1647 |
cpp_quote(" DepthFunc = depth_func;") |
| 1648 |
cpp_quote(" StencilEnable = stencil_enable;") |
| 1649 |
cpp_quote(" StencilReadMask = stencil_read_mask;") |
| 1650 |
cpp_quote(" StencilWriteMask = stencil_write_mask;") |
| 1651 |
cpp_quote(" FrontFace.StencilFailOp = front_stencil_fail_op;") |
| 1652 |
cpp_quote(" FrontFace.StencilDepthFailOp = front_stencil_depth_fail_op;") |
| 1653 |
cpp_quote(" FrontFace.StencilPassOp = front_stencil_pass_op;") |
| 1654 |
cpp_quote(" FrontFace.StencilFunc = front_stencil_func;") |
| 1655 |
cpp_quote(" BackFace.StencilFailOp = back_stencil_fail_op;") |
| 1656 |
cpp_quote(" BackFace.StencilDepthFailOp = back_stencil_depth_fail_op;") |
| 1657 |
cpp_quote(" BackFace.StencilPassOp = back_stencil_pass_op;") |
| 1658 |
cpp_quote(" BackFace.StencilFunc = back_stencil_func;") |
| 1659 |
cpp_quote(" }") |
| 1660 |
cpp_quote(" ~CD3D11_DEPTH_STENCIL_DESC() {}") |
| 1661 |
cpp_quote(" operator const D3D11_DEPTH_STENCIL_DESC&() const { return *this; }") |
| 1662 |
cpp_quote("};") |
| 1663 |
cpp_quote("#endif") |
| 1664 |
|
| 1665 |
typedef struct D3D11_RENDER_TARGET_VIEW_DESC |
| 1666 |
{ |
| 1667 |
DXGI_FORMAT Format; |
| 1668 |
D3D11_RTV_DIMENSION ViewDimension; |
| 1669 |
|
| 1670 |
union |
| 1671 |
{ |
| 1672 |
D3D11_BUFFER_RTV Buffer; |
| 1673 |
D3D11_TEX1D_RTV Texture1D; |
| 1674 |
D3D11_TEX1D_ARRAY_RTV Texture1DArray; |
| 1675 |
D3D11_TEX2D_RTV Texture2D; |
| 1676 |
D3D11_TEX2D_ARRAY_RTV Texture2DArray; |
| 1677 |
D3D11_TEX2DMS_RTV Texture2DMS; |
| 1678 |
D3D11_TEX2DMS_ARRAY_RTV Texture2DMSArray; |
| 1679 |
D3D11_TEX3D_RTV Texture3D; |
| 1680 |
}; |
| 1681 |
} D3D11_RENDER_TARGET_VIEW_DESC; |
| 1682 |
|
| 1683 |
cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)") |
| 1684 |
cpp_quote("struct CD3D11_RENDER_TARGET_VIEW_DESC : public D3D11_RENDER_TARGET_VIEW_DESC {") |
| 1685 |
cpp_quote(" CD3D11_RENDER_TARGET_VIEW_DESC() {}") |
| 1686 |
cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(D3D11_RTV_DIMENSION dim, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,") |
| 1687 |
cpp_quote(" UINT mip_slice = 0, UINT first_slice = 0, UINT array_size = -1) {") |
| 1688 |
cpp_quote(" Format = format;") |
| 1689 |
cpp_quote(" ViewDimension = dim;") |
| 1690 |
cpp_quote(" switch(dim) {") |
| 1691 |
cpp_quote(" case D3D11_RTV_DIMENSION_BUFFER:") |
| 1692 |
cpp_quote(" Buffer.FirstElement = mip_slice;") |
| 1693 |
cpp_quote(" Buffer.NumElements = first_slice;") |
| 1694 |
cpp_quote(" break;") |
| 1695 |
cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE1D:") |
| 1696 |
cpp_quote(" Texture1D.MipSlice = mip_slice;") |
| 1697 |
cpp_quote(" break;") |
| 1698 |
cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE1DARRAY:") |
| 1699 |
cpp_quote(" Texture1DArray.MipSlice = mip_slice;") |
| 1700 |
cpp_quote(" Texture1DArray.FirstArraySlice = first_slice;") |
| 1701 |
cpp_quote(" Texture1DArray.ArraySize = array_size;") |
| 1702 |
cpp_quote(" break;") |
| 1703 |
cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE2D:") |
| 1704 |
cpp_quote(" Texture2D.MipSlice = mip_slice;") |
| 1705 |
cpp_quote(" break;") |
| 1706 |
cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE2DARRAY:") |
| 1707 |
cpp_quote(" Texture2DArray.MipSlice = mip_slice;") |
| 1708 |
cpp_quote(" Texture2DArray.FirstArraySlice = first_slice;") |
| 1709 |
cpp_quote(" Texture2DArray.ArraySize = array_size;") |
| 1710 |
cpp_quote(" break;") |
| 1711 |
cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY:") |
| 1712 |
cpp_quote(" Texture2DMSArray.FirstArraySlice = first_slice;") |
| 1713 |
cpp_quote(" Texture2DMSArray.ArraySize = array_size;") |
| 1714 |
cpp_quote(" break;") |
| 1715 |
cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE3D:") |
| 1716 |
cpp_quote(" Texture3D.MipSlice = mip_slice;") |
| 1717 |
cpp_quote(" Texture3D.FirstWSlice = first_slice;") |
| 1718 |
cpp_quote(" Texture3D.WSize = array_size;") |
| 1719 |
cpp_quote(" break;") |
| 1720 |
cpp_quote(" default:") |
| 1721 |
cpp_quote(" break;") |
| 1722 |
cpp_quote(" }") |
| 1723 |
cpp_quote(" }") |
| 1724 |
cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Buffer*, DXGI_FORMAT format, UINT first_elem,") |
| 1725 |
cpp_quote(" UINT elem_cnt) {") |
| 1726 |
cpp_quote(" Format = format;") |
| 1727 |
cpp_quote(" ViewDimension = D3D11_RTV_DIMENSION_BUFFER;") |
| 1728 |
cpp_quote(" Buffer.FirstElement = first_elem;") |
| 1729 |
cpp_quote(" Buffer.NumElements = elem_cnt;") |
| 1730 |
cpp_quote(" }") |
| 1731 |
cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture1D *texture, D3D11_RTV_DIMENSION dim,") |
| 1732 |
cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT mip_slice = 0, UINT first_slice = 0,") |
| 1733 |
cpp_quote(" UINT array_size = -1);") /* FIXME: implement */ |
| 1734 |
cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture2D *texture, D3D11_RTV_DIMENSION dim,") |
| 1735 |
cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT mip_slice = 0, UINT first_slice = 0,") |
| 1736 |
cpp_quote(" UINT array_size = -1);") /* FIXME: implement */ |
| 1737 |
cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture3D *texture, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,") |
| 1738 |
cpp_quote(" UINT mip_slice = 0, UINT first_w_slice = 0, UINT w_slice = -1 );") /* FIXME: implement */ |
| 1739 |
cpp_quote(" ~CD3D11_RENDER_TARGET_VIEW_DESC() {}") |
| 1740 |
cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(const D3D11_RENDER_TARGET_VIEW_DESC &other)") |
| 1741 |
cpp_quote(" : D3D11_RENDER_TARGET_VIEW_DESC(other) {}") |
| 1742 |
cpp_quote(" operator const D3D11_RENDER_TARGET_VIEW_DESC&() const {") |
| 1743 |
cpp_quote(" return *this;") |
| 1744 |
cpp_quote(" }") |
| 1745 |
cpp_quote("};") |
| 1746 |
cpp_quote("#endif") |
| 1747 |
|
| 1748 |
|
| 1749 |
typedef struct D3D11_SAMPLER_DESC |
| 1750 |
{ |
| 1751 |
D3D11_FILTER Filter; |
| 1752 |
D3D11_TEXTURE_ADDRESS_MODE AddressU; |
| 1753 |
D3D11_TEXTURE_ADDRESS_MODE AddressV; |
| 1754 |
D3D11_TEXTURE_ADDRESS_MODE AddressW; |
| 1755 |
FLOAT MipLODBias; |
| 1756 |
UINT MaxAnisotropy; |
| 1757 |
D3D11_COMPARISON_FUNC ComparisonFunc; |
| 1758 |
FLOAT BorderColor[4]; |
| 1759 |
FLOAT MinLOD; |
| 1760 |
FLOAT MaxLOD; |
| 1761 |
} D3D11_SAMPLER_DESC; |
| 1762 |
|
| 1763 |
cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)") |
| 1764 |
cpp_quote("struct CD3D11_SAMPLER_DESC : public D3D11_SAMPLER_DESC {") |
| 1765 |
cpp_quote(" CD3D11_SAMPLER_DESC() {}") |
| 1766 |
cpp_quote(" explicit CD3D11_SAMPLER_DESC(const D3D11_SAMPLER_DESC &o) : D3D11_SAMPLER_DESC(o) {}") |
| 1767 |
cpp_quote(" explicit CD3D11_SAMPLER_DESC(CD3D11_DEFAULT) {" ) |
| 1768 |
cpp_quote(" Filter = D3D11_FILTER_MIN_MAG_MIP_LINEAR;") |
| 1769 |
cpp_quote(" AddressU = D3D11_TEXTURE_ADDRESS_CLAMP;") |
| 1770 |
cpp_quote(" AddressV = D3D11_TEXTURE_ADDRESS_CLAMP;") |
| 1771 |
cpp_quote(" AddressW = D3D11_TEXTURE_ADDRESS_CLAMP;") |
| 1772 |
cpp_quote(" MipLODBias = 0;") |
| 1773 |
cpp_quote(" MaxAnisotropy = 1;") |
| 1774 |
cpp_quote(" ComparisonFunc = D3D11_COMPARISON_NEVER;") |
| 1775 |
cpp_quote(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;") |
| 1776 |
cpp_quote(" MinLOD = -3.402823466e+38f;") |
| 1777 |
cpp_quote(" MaxLOD = 3.402823466e+38f;") |
| 1778 |
cpp_quote(" }") |
| 1779 |
cpp_quote(" explicit CD3D11_SAMPLER_DESC(D3D11_FILTER filter, D3D11_TEXTURE_ADDRESS_MODE addressU,") |
| 1780 |
cpp_quote(" D3D11_TEXTURE_ADDRESS_MODE addressV, D3D11_TEXTURE_ADDRESS_MODE addressW,") |
| 1781 |
cpp_quote(" FLOAT mipLODBias, UINT maxAnisotropy, D3D11_COMPARISON_FUNC comparisonFunc,") |
| 1782 |
cpp_quote(" const FLOAT *borderColor, FLOAT minLOD, FLOAT maxLOD) {" ) |
| 1783 |
cpp_quote(" Filter = filter;") |
| 1784 |
cpp_quote(" AddressU = addressU;") |
| 1785 |
cpp_quote(" AddressV = addressV;") |
| 1786 |
cpp_quote(" AddressW = addressW;") |
| 1787 |
cpp_quote(" MipLODBias = mipLODBias;") |
| 1788 |
cpp_quote(" MaxAnisotropy = maxAnisotropy;") |
| 1789 |
cpp_quote(" ComparisonFunc = comparisonFunc;") |
| 1790 |
cpp_quote(" if(borderColor) {") |
| 1791 |
cpp_quote(" BorderColor[0] = borderColor[0];") |
| 1792 |
cpp_quote(" BorderColor[1] = borderColor[1];") |
| 1793 |
cpp_quote(" BorderColor[2] = borderColor[2];") |
| 1794 |
cpp_quote(" BorderColor[3] = borderColor[3];") |
| 1795 |
cpp_quote(" }else {") |
| 1796 |
cpp_quote(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;") |
| 1797 |
cpp_quote(" }") |
| 1798 |
cpp_quote(" MinLOD = minLOD;") |
| 1799 |
cpp_quote(" MaxLOD = maxLOD;") |
| 1800 |
cpp_quote(" }") |
| 1801 |
cpp_quote(" ~CD3D11_SAMPLER_DESC() {}") |
| 1802 |
cpp_quote(" operator const D3D11_SAMPLER_DESC&() const { return *this; }") |
| 1803 |
cpp_quote("};") |
| 1804 |
cpp_quote("#endif") |
| 1805 |
|
| 1806 |
typedef struct D3D11_SHADER_RESOURCE_VIEW_DESC |
| 1807 |
{ |
| 1808 |
DXGI_FORMAT Format; |
| 1809 |
D3D11_SRV_DIMENSION ViewDimension; |
| 1810 |
|
| 1811 |
union |
| 1812 |
{ |
| 1813 |
D3D11_BUFFER_SRV Buffer; |
| 1814 |
D3D11_TEX1D_SRV Texture1D; |
| 1815 |
D3D11_TEX1D_ARRAY_SRV Texture1DArray; |
| 1816 |
D3D11_TEX2D_SRV Texture2D; |
| 1817 |
D3D11_TEX2D_ARRAY_SRV Texture2DArray; |
| 1818 |
D3D11_TEX2DMS_SRV Texture2DMS; |
| 1819 |
D3D11_TEX2DMS_ARRAY_SRV Texture2DMSArray; |
| 1820 |
D3D11_TEX3D_SRV Texture3D; |
| 1821 |
D3D11_TEXCUBE_SRV TextureCube; |
| 1822 |
D3D11_TEXCUBE_ARRAY_SRV TextureCubeArray; |
| 1823 |
D3D11_BUFFEREX_SRV BufferEx; |
| 1824 |
}; |
| 1825 |
} D3D11_SHADER_RESOURCE_VIEW_DESC; |
| 1826 |
|
| 1827 |
cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined( __cplusplus )") |
| 1828 |
cpp_quote("struct CD3D11_SHADER_RESOURCE_VIEW_DESC : public D3D11_SHADER_RESOURCE_VIEW_DESC {") |
| 1829 |
cpp_quote(" CD3D11_SHADER_RESOURCE_VIEW_DESC() {}") |
| 1830 |
cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(D3D11_SRV_DIMENSION dim,") |
| 1831 |
cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0,") |
| 1832 |
cpp_quote(" UINT mip_levels = -1, UINT first_slice = 0, UINT array_size = -1, UINT flags = 0) {") |
| 1833 |
cpp_quote(" Format = format;") |
| 1834 |
cpp_quote(" ViewDimension = dim;") |
| 1835 |
cpp_quote(" switch(ViewDimension) {") |
| 1836 |
cpp_quote(" case D3D11_SRV_DIMENSION_BUFFER:") |
| 1837 |
cpp_quote(" Buffer.FirstElement = most_detailed_mip;") |
| 1838 |
cpp_quote(" Buffer.NumElements = mip_levels;") |
| 1839 |
cpp_quote(" break;") |
| 1840 |
cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE1D:") |
| 1841 |
cpp_quote(" Texture1D.MostDetailedMip = most_detailed_mip;") |
| 1842 |
cpp_quote(" Texture1D.MipLevels = mip_levels;") |
| 1843 |
cpp_quote(" break;") |
| 1844 |
cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE1DARRAY:") |
| 1845 |
cpp_quote(" Texture1DArray.MostDetailedMip = most_detailed_mip;") |
| 1846 |
cpp_quote(" Texture1DArray.MipLevels = mip_levels;") |
| 1847 |
cpp_quote(" Texture1DArray.FirstArraySlice = first_slice;") |
| 1848 |
cpp_quote(" Texture1DArray.ArraySize = array_size;") |
| 1849 |
cpp_quote(" break;") |
| 1850 |
cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE2D:") |
| 1851 |
cpp_quote(" Texture2D.MostDetailedMip = most_detailed_mip;") |
| 1852 |
cpp_quote(" Texture2D.MipLevels = mip_levels;") |
| 1853 |
cpp_quote(" break;") |
| 1854 |
cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE2DARRAY:") |
| 1855 |
cpp_quote(" Texture2DArray.MostDetailedMip = most_detailed_mip;") |
| 1856 |
cpp_quote(" Texture2DArray.MipLevels = mip_levels;") |
| 1857 |
cpp_quote(" Texture2DArray.FirstArraySlice = first_slice;") |
| 1858 |
cpp_quote(" Texture2DArray.ArraySize = array_size;") |
| 1859 |
cpp_quote(" break;") |
| 1860 |
cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY:") |
| 1861 |
cpp_quote(" Texture2DMSArray.FirstArraySlice = first_slice;") |
| 1862 |
cpp_quote(" Texture2DMSArray.ArraySize = array_size;") |
| 1863 |
cpp_quote(" break;") |
| 1864 |
cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE3D:") |
| 1865 |
cpp_quote(" Texture3D.MostDetailedMip = most_detailed_mip;") |
| 1866 |
cpp_quote(" Texture3D.MipLevels = mip_levels;") |
| 1867 |
cpp_quote(" break;") |
| 1868 |
cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURECUBE:") |
| 1869 |
cpp_quote(" TextureCube.MostDetailedMip = most_detailed_mip;") |
| 1870 |
cpp_quote(" TextureCube.MipLevels = mip_levels;") |
| 1871 |
cpp_quote(" break;") |
| 1872 |
cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURECUBEARRAY:") |
| 1873 |
cpp_quote(" TextureCubeArray.MostDetailedMip = most_detailed_mip;") |
| 1874 |
cpp_quote(" TextureCubeArray.MipLevels = mip_levels;") |
| 1875 |
cpp_quote(" TextureCubeArray.First2DArrayFace = first_slice;") |
| 1876 |
cpp_quote(" TextureCubeArray.NumCubes = array_size;") |
| 1877 |
cpp_quote(" break;") |
| 1878 |
cpp_quote(" case D3D11_SRV_DIMENSION_BUFFEREX:") |
| 1879 |
cpp_quote(" BufferEx.FirstElement = most_detailed_mip;") |
| 1880 |
cpp_quote(" BufferEx.NumElements = mip_levels;") |
| 1881 |
cpp_quote(" BufferEx.Flags = flags;") |
| 1882 |
cpp_quote(" break;") |
| 1883 |
cpp_quote(" default:") |
| 1884 |
cpp_quote(" break;") |
| 1885 |
cpp_quote(" }") |
| 1886 |
cpp_quote(" }") |
| 1887 |
cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Buffer*, DXGI_FORMAT format, UINT first_elem,") |
| 1888 |
cpp_quote(" UINT elem_cnt, UINT flags = 0);") /* FIXME: implement */ |
| 1889 |
cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture1D *texture, D3D11_SRV_DIMENSION dim,") |
| 1890 |
cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0, UINT mip_levels = -1,") |
| 1891 |
cpp_quote(" UINT first_slice = 0, UINT array_size = -1 );") /* FIXME: implement */ |
| 1892 |
cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture2D *texture, D3D11_SRV_DIMENSION dim,") |
| 1893 |
cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0, UINT mip_levels = -1,") |
| 1894 |
cpp_quote(" UINT first_slice = 0, UINT array_size = -1 );") /* FIXME: implement */ |
| 1895 |
cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture3D *texture, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,") |
| 1896 |
cpp_quote(" UINT most_detailed_mip = 0, UINT mip_levels = -1 );") |
| 1897 |
cpp_quote(" ~CD3D11_SHADER_RESOURCE_VIEW_DESC() {}") |
| 1898 |
cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(const D3D11_SHADER_RESOURCE_VIEW_DESC &other)") |
| 1899 |
cpp_quote(" : D3D11_SHADER_RESOURCE_VIEW_DESC(other) {}") |
| 1900 |
cpp_quote(" operator const D3D11_SHADER_RESOURCE_VIEW_DESC&() const {") |
| 1901 |
cpp_quote(" return *this;") |
| 1902 |
cpp_quote(" }") |
| 1903 |
cpp_quote("};") |
| 1904 |
cpp_quote("#endif") |
| 1905 |
|
| 1906 |
typedef struct D3D11_TEXTURE1D_DESC |
| 1907 |
{ |
| 1908 |
UINT Width; |
| 1909 |
UINT MipLevels; |
| 1910 |
UINT ArraySize; |
| 1911 |
DXGI_FORMAT Format; |
| 1912 |
D3D11_USAGE Usage; |
| 1913 |
UINT BindFlags; |
| 1914 |
UINT CPUAccessFlags; |
| 1915 |
UINT MiscFlags; |
| 1916 |
} D3D11_TEXTURE1D_DESC; |
| 1917 |
|
| 1918 |
typedef struct D3D11_TEXTURE2D_DESC |
| 1919 |
{ |
| 1920 |
UINT Width; |
| 1921 |
UINT Height; |
| 1922 |
UINT MipLevels; |
| 1923 |
UINT ArraySize; |
| 1924 |
DXGI_FORMAT Format; |
| 1925 |
DXGI_SAMPLE_DESC SampleDesc; |
| 1926 |
D3D11_USAGE Usage; |
| 1927 |
UINT BindFlags; |
| 1928 |
UINT CPUAccessFlags; |
| 1929 |
UINT MiscFlags; |
| 1930 |
} D3D11_TEXTURE2D_DESC; |
| 1931 |
|
| 1932 |
cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)") |
| 1933 |
cpp_quote("struct CD3D11_TEXTURE2D_DESC : public D3D11_TEXTURE2D_DESC {") |
| 1934 |
cpp_quote(" CD3D11_TEXTURE2D_DESC() {}") |
| 1935 |
cpp_quote(" explicit CD3D11_TEXTURE2D_DESC(const D3D11_TEXTURE2D_DESC &o) : D3D11_TEXTURE2D_DESC(o) {}") |
| 1936 |
cpp_quote(" explicit CD3D11_TEXTURE2D_DESC(DXGI_FORMAT format, UINT width, UINT height, UINT arraySize = 1,") |
| 1937 |
cpp_quote(" UINT mipLevels = 0, UINT bindFlags = D3D11_BIND_SHADER_RESOURCE,") |
| 1938 |
cpp_quote(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0, UINT sampleCount = 1," ) |
| 1939 |
cpp_quote(" UINT sampleQuality = 0, UINT miscFlags = 0) {") |
| 1940 |
cpp_quote(" Width = width;") |
| 1941 |
cpp_quote(" Height = height;") |
| 1942 |
cpp_quote(" MipLevels = mipLevels;") |
| 1943 |
cpp_quote(" ArraySize = arraySize;") |
| 1944 |
cpp_quote(" Format = format;") |
| 1945 |
cpp_quote(" SampleDesc.Count = sampleCount;") |
| 1946 |
cpp_quote(" SampleDesc.Quality = sampleQuality;") |
| 1947 |
cpp_quote(" Usage = usage;") |
| 1948 |
cpp_quote(" BindFlags = bindFlags;") |
| 1949 |
cpp_quote(" CPUAccessFlags = cpuaccessFlags;") |
| 1950 |
cpp_quote(" MiscFlags = miscFlags;") |
| 1951 |
cpp_quote(" }" ) |
| 1952 |
cpp_quote(" ~CD3D11_TEXTURE2D_DESC() {}") |
| 1953 |
cpp_quote(" operator const D3D11_TEXTURE2D_DESC&() const { return *this; }") |
| 1954 |
cpp_quote("};") |
| 1955 |
cpp_quote("#endif") |
| 1956 |
|
| 1957 |
typedef struct D3D11_TEXTURE3D_DESC |
| 1958 |
{ |
| 1959 |
UINT Width; |
| 1960 |
UINT Height; |
| 1961 |
UINT Depth; |
| 1962 |
UINT MipLevels; |
| 1963 |
DXGI_FORMAT Format; |
| 1964 |
D3D11_USAGE Usage; |
| 1965 |
UINT BindFlags; |
| 1966 |
UINT CPUAccessFlags; |
| 1967 |
UINT MiscFlags; |
| 1968 |
} D3D11_TEXTURE3D_DESC; |
| 1969 |
|
| 1970 |
/* |
| 1971 |
* |
| 1972 |
* D3D11 video decoder profiles |
| 1973 |
* |
| 1974 |
*/ |
| 1975 |
|
| 1976 |
/* MPEG1 & MPEG2 */ |
| 1977 |
cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_MPEG2_MOCOMP, 0xe6a9f44b,0x61b0,0x4563,0x9e,0xa4,0x63,0xd2,0xa3,0xc6,0xfe,0x66);") |
| 1978 |
cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_MPEG2_IDCT, 0xbf22ad00,0x03ea,0x4690,0x80,0x77,0x47,0x33,0x46,0x20,0x9b,0x7e);") |
| 1979 |
cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_MPEG2_VLD, 0xee27417f,0x5e28,0x4e65,0xbe,0xea,0x1d,0x26,0xb5,0x08,0xad,0xc9);") |
| 1980 |
cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_MPEG1_VLD, 0x6f3ec719,0x3735,0x42cc,0x80,0x63,0x65,0xcc,0x3c,0xb3,0x66,0x16);") |
| 1981 |
cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_MPEG2and1_VLD, 0x86695f12,0x340e,0x4f04,0x9f,0xd3,0x92,0x53,0xdd,0x32,0x74,0x60);") |
| 1982 |
|
| 1983 |
/* H264 */ |
| 1984 |
cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_H264_MOCOMP_NOFGT, 0x1b81be64,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") |
| 1985 |
cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_H264_MOCOMP_FGT, 0x1b81be65,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") |
| 1986 |
cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_H264_IDCT_NOFGT, 0x1b81be66,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") |
| 1987 |
cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_H264_IDCT_FGT, 0x1b81be67,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") |
| 1988 |
cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_H264_VLD_NOFGT, 0x1b81be68,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") |
| 1989 |
cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_H264_VLD_FGT, 0x1b81be69,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") |
| 1990 |
cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_H264_VLD_WITHFMOASO_NOFGT, 0xd5f04ff9,0x3418,0x45d8,0x95,0x61,0x32,0xa7,0x6a,0xae,0x2d,0xdd);") |
| 1991 |
cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_H264_VLD_STEREO_PROGRESSIVE_NOFGT, 0xd79be8da,0x0cf1,0x4c81,0xb8,0x2a,0x69,0xa4,0xe2,0x36,0xf4,0x3d);") |
| 1992 |
cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_H264_VLD_STEREO_NOFGT, 0xf9aaccbb,0xc2b6,0x4cfc,0x87,0x79,0x57,0x07,0xb1,0x76,0x05,0x52);") |
| 1993 |
cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_H264_VLD_MULTIVIEW_NOFGT, 0x705b9d82,0x76cf,0x49d6,0xb7,0xe6,0xac,0x88,0x72,0xdb,0x01,0x3c);") |
| 1994 |
|
| 1995 |
/* WMV8 */ |
| 1996 |
cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_WMV8_POSTPROC, 0x1b81be80,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") |
| 1997 |
cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_WMV8_MOCOMP, 0x1b81be81,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") |
| 1998 |
|
| 1999 |
/* WMV9 */ |
| 2000 |
cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_WMV9_POSTPROC, 0x1b81be90,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") |
| 2001 |
cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_WMV9_MOCOMP, 0x1b81be91,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") |
| 2002 |
cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_WMV9_IDCT, 0x1b81be94,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") |
| 2003 |
|
| 2004 |
/* VC1 */ |
| 2005 |
cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_VC1_POSTPROC, 0x1b81beA0,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") |
| 2006 |
cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_VC1_MOCOMP, 0x1b81beA1,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") |
| 2007 |
cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_VC1_IDCT, 0x1b81beA2,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") |
| 2008 |
cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_VC1_VLD, 0x1b81beA3,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") |
| 2009 |
cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_VC1_D2010, 0x1b81beA4,0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") |
| 2010 |
|
| 2011 |
/* MPEG4 */ |
| 2012 |
cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_MPEG4PT2_VLD_SIMPLE, 0xefd64d74,0xc9e8,0x41d7,0xa5,0xe9,0xe9,0xb0,0xe3,0x9f,0xa3,0x19);") |
| 2013 |
cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_MPEG4PT2_VLD_ADVSIMPLE_NOGMC, 0xed418a9f,0x010d,0x4eda,0x9a,0xe3,0x9a,0x65,0x35,0x8d,0x8d,0x2e);") |
| 2014 |
cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_MPEG4PT2_VLD_ADVSIMPLE_GMC, 0xab998b5b,0x4258,0x44a9,0x9f,0xeb,0x94,0xe5,0x97,0xa6,0xba,0xae);") |
| 2015 |
|
| 2016 |
/* HVEC */ |
| 2017 |
cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_HEVC_VLD_MAIN, 0x5b11d51b,0x2f4c,0x4452,0xbc,0xc3,0x09,0xf2,0xa1,0x16,0x0c,0xc0);") |
| 2018 |
cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_HEVC_VLD_MAIN10, 0x107af0e0,0xef1a,0x4d19,0xab,0xa8,0x67,0xa1,0x63,0x07,0x3d,0x13);") |
| 2019 |
|
| 2020 |
/* VP9 */ |
| 2021 |
cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_VP9_VLD_PROFILE0, 0x463707f8,0xa1d0,0x4585,0x87,0x6d,0x83,0xaa,0x6d,0x60,0xb8,0x9e);") |
| 2022 |
cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_VP9_VLD_10BIT_PROFILE2, 0xa4c749ef,0x6ecf,0x48aa,0x84,0x48,0x50,0xa7,0xa1,0x16,0x5f,0xf7);") |
| 2023 |
cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_VP8_VLD, 0x90b899ea,0x3a62,0x4705,0x88,0xb3,0x8d,0xf0,0x4b,0x27,0x44,0xe7);") |
| 2024 |
|
| 2025 |
typedef struct D3D11_VIDEO_DECODER_DESC |
| 2026 |
{ |
| 2027 |
GUID Guid; |
| 2028 |
UINT SampleWidth; |
| 2029 |
UINT SampleHeight; |
| 2030 |
DXGI_FORMAT OutputFormat; |
| 2031 |
} D3D11_VIDEO_DECODER_DESC; |
| 2032 |
|
| 2033 |
typedef struct D3D11_VIDEO_DECODER_CONFIG |
| 2034 |
{ |
| 2035 |
GUID guidConfigBitstreamEncryption; |
| 2036 |
GUID guidConfigMBcontrolEncryption; |
| 2037 |
GUID guidConfigResidDiffEncryption; |
| 2038 |
UINT ConfigBitstreamRaw; |
| 2039 |
UINT ConfigMBcontrolRasterOrder; |
| 2040 |
UINT ConfigResidDiffHost; |
| 2041 |
UINT ConfigSpatialResid8; |
| 2042 |
UINT ConfigResid8Subtraction; |
| 2043 |
UINT ConfigSpatialHost8or9Clipping; |
| 2044 |
UINT ConfigSpatialResidInterleaved; |
| 2045 |
UINT ConfigIntraResidUnsigned; |
| 2046 |
UINT ConfigResidDiffAccelerator; |
| 2047 |
UINT ConfigHostInverseScan; |
| 2048 |
UINT ConfigSpecificIDCT; |
| 2049 |
UINT Config4GroupedCoefs; |
| 2050 |
USHORT ConfigMinRenderTargetBuffCount; |
| 2051 |
USHORT ConfigDecoderSpecific; |
| 2052 |
} D3D11_VIDEO_DECODER_CONFIG; |
| 2053 |
|
| 2054 |
typedef enum D3D11_VIDEO_FRAME_FORMAT |
| 2055 |
{ |
| 2056 |
D3D11_VIDEO_FRAME_FORMAT_PROGRESSIVE = 0, |
| 2057 |
D3D11_VIDEO_FRAME_FORMAT_INTERLACED_TOP_FIELD_FIRST = 1, |
| 2058 |
D3D11_VIDEO_FRAME_FORMAT_INTERLACED_BOTTOM_FIELD_FIRST = 2 |
| 2059 |
} D3D11_VIDEO_FRAME_FORMAT; |
| 2060 |
|
| 2061 |
typedef enum D3D11_VIDEO_USAGE |
| 2062 |
{ |
| 2063 |
D3D11_VIDEO_USAGE_PLAYBACK_NORMAL = 0, |
| 2064 |
D3D11_VIDEO_USAGE_OPTIMAL_SPEED = 1, |
| 2065 |
D3D11_VIDEO_USAGE_OPTIMAL_QUALITY = 2 |
| 2066 |
} D3D11_VIDEO_USAGE; |
| 2067 |
|
| 2068 |
typedef struct D3D11_VIDEO_PROCESSOR_CONTENT_DESC |
| 2069 |
{ |
| 2070 |
D3D11_VIDEO_FRAME_FORMAT InputFrameFormat; |
| 2071 |
DXGI_RATIONAL InputFrameRate; |
| 2072 |
UINT InputWidth; |
| 2073 |
UINT InputHeight; |
| 2074 |
DXGI_RATIONAL OutputFrameRate; |
| 2075 |
UINT OutputWidth; |
| 2076 |
UINT OutputHeight; |
| 2077 |
D3D11_VIDEO_USAGE Usage; |
| 2078 |
} D3D11_VIDEO_PROCESSOR_CONTENT_DESC; |
| 2079 |
|
| 2080 |
typedef struct D3D11_VIDEO_PROCESSOR_CAPS |
| 2081 |
{ |
| 2082 |
UINT DeviceCaps; |
| 2083 |
UINT FeatureCaps; |
| 2084 |
UINT FilterCaps; |
| 2085 |
UINT InputFormatCaps; |
| 2086 |
UINT AutoStreamCaps; |
| 2087 |
UINT StereoCaps; |
| 2088 |
UINT RateConversionCapsCount; |
| 2089 |
UINT MaxInputStreams; |
| 2090 |
UINT MaxStreamStates; |
| 2091 |
} D3D11_VIDEO_PROCESSOR_CAPS; |
| 2092 |
|
| 2093 |
typedef struct D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS |
| 2094 |
{ |
| 2095 |
UINT PastFrames; |
| 2096 |
UINT FutureFrames; |
| 2097 |
UINT ProcessorCaps; |
| 2098 |
UINT ITelecineCaps; |
| 2099 |
UINT CustomRateCount; |
| 2100 |
} D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS; |
| 2101 |
|
| 2102 |
typedef struct D3D11_VIDEO_PROCESSOR_CUSTOM_RATE |
| 2103 |
{ |
| 2104 |
DXGI_RATIONAL CustomRate; |
| 2105 |
UINT OutputFrames; |
| 2106 |
BOOL InputInterlaced; |
| 2107 |
UINT InputFramesOrFields; |
| 2108 |
} D3D11_VIDEO_PROCESSOR_CUSTOM_RATE; |
| 2109 |
|
| 2110 |
typedef enum D3D11_VIDEO_PROCESSOR_FILTER |
| 2111 |
{ |
| 2112 |
D3D11_VIDEO_PROCESSOR_FILTER_BRIGHTNESS = 0, |
| 2113 |
D3D11_VIDEO_PROCESSOR_FILTER_CONTRAST = 1, |
| 2114 |
D3D11_VIDEO_PROCESSOR_FILTER_HUE = 2, |
| 2115 |
D3D11_VIDEO_PROCESSOR_FILTER_SATURATION = 3, |
| 2116 |
D3D11_VIDEO_PROCESSOR_FILTER_NOISE_REDUCTION = 4, |
| 2117 |
D3D11_VIDEO_PROCESSOR_FILTER_EDGE_ENHANCEMENT = 5, |
| 2118 |
D3D11_VIDEO_PROCESSOR_FILTER_ANAMORPHIC_SCALING = 6, |
| 2119 |
D3D11_VIDEO_PROCESSOR_FILTER_STEREO_ADJUSTMENT = 7 |
| 2120 |
} D3D11_VIDEO_PROCESSOR_FILTER; |
| 2121 |
|
| 2122 |
typedef struct D3D11_VIDEO_PROCESSOR_FILTER_RANGE |
| 2123 |
{ |
| 2124 |
int Minimum; |
| 2125 |
int Maximum; |
| 2126 |
int Default; |
| 2127 |
float Multiplier; |
| 2128 |
} D3D11_VIDEO_PROCESSOR_FILTER_RANGE; |
| 2129 |
|
| 2130 |
typedef enum D3D11_AUTHENTICATED_CHANNEL_TYPE |
| 2131 |
{ |
| 2132 |
D3D11_AUTHENTICATED_CHANNEL_D3D11 = 1, |
| 2133 |
D3D11_AUTHENTICATED_CHANNEL_DRIVER_SOFTWARE = 2, |
| 2134 |
D3D11_AUTHENTICATED_CHANNEL_DRIVER_HARDWARE = 3 |
| 2135 |
} D3D11_AUTHENTICATED_CHANNEL_TYPE; |
| 2136 |
|
| 2137 |
typedef enum D3D11_VDOV_DIMENSION |
| 2138 |
{ |
| 2139 |
D3D11_VDOV_DIMENSION_UNKNOWN = 0, |
| 2140 |
D3D11_VDOV_DIMENSION_TEXTURE2D = 1 |
| 2141 |
} D3D11_VDOV_DIMENSION; |
| 2142 |
|
| 2143 |
typedef struct D3D11_TEX2D_VDOV |
| 2144 |
{ |
| 2145 |
UINT ArraySlice; |
| 2146 |
} D3D11_TEX2D_VDOV; |
| 2147 |
|
| 2148 |
typedef struct D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC |
| 2149 |
{ |
| 2150 |
GUID DecodeProfile; |
| 2151 |
D3D11_VDOV_DIMENSION ViewDimension; |
| 2152 |
union { |
| 2153 |
D3D11_TEX2D_VDOV Texture2D; |
| 2154 |
}; |
| 2155 |
} D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC; |
| 2156 |
|
| 2157 |
typedef enum D3D11_VPIV_DIMENSION |
| 2158 |
{ |
| 2159 |
D3D11_VPIV_DIMENSION_UNKNOWN = 0, |
| 2160 |
D3D11_VPIV_DIMENSION_TEXTURE2D = 1 |
| 2161 |
} D3D11_VPIV_DIMENSION; |
| 2162 |
|
| 2163 |
typedef struct D3D11_TEX2D_VPIV |
| 2164 |
{ |
| 2165 |
UINT MipSlice; |
| 2166 |
UINT ArraySlice; |
| 2167 |
} D3D11_TEX2D_VPIV; |
| 2168 |
|
| 2169 |
typedef struct D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC |
| 2170 |
{ |
| 2171 |
UINT FourCC; |
| 2172 |
D3D11_VPIV_DIMENSION ViewDimension; |
| 2173 |
union { |
| 2174 |
D3D11_TEX2D_VPIV Texture2D; |
| 2175 |
}; |
| 2176 |
} D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC; |
| 2177 |
|
| 2178 |
typedef enum D3D11_VPOV_DIMENSION |
| 2179 |
{ |
| 2180 |
D3D11_VPOV_DIMENSION_UNKNOWN = 0, |
| 2181 |
D3D11_VPOV_DIMENSION_TEXTURE2D = 1, |
| 2182 |
D3D11_VPOV_DIMENSION_TEXTURE2DARRAY = 2 |
| 2183 |
} D3D11_VPOV_DIMENSION; |
| 2184 |
|
| 2185 |
typedef struct D3D11_TEX2D_VPOV |
| 2186 |
{ |
| 2187 |
UINT MipSlice; |
| 2188 |
} D3D11_TEX2D_VPOV; |
| 2189 |
|
| 2190 |
typedef struct D3D11_TEX2D_ARRAY_VPOV |
| 2191 |
{ |
| 2192 |
UINT MipSlice; |
| 2193 |
UINT FirstArraySlice; |
| 2194 |
UINT ArraySize; |
| 2195 |
} D3D11_TEX2D_ARRAY_VPOV; |
| 2196 |
|
| 2197 |
typedef struct D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC |
| 2198 |
{ |
| 2199 |
D3D11_VPOV_DIMENSION ViewDimension; |
| 2200 |
union { |
| 2201 |
D3D11_TEX2D_VPOV Texture2D; |
| 2202 |
D3D11_TEX2D_ARRAY_VPOV Texture2DArray; |
| 2203 |
}; |
| 2204 |
} D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC; |
| 2205 |
|
| 2206 |
typedef struct D3D11_VIDEO_CONTENT_PROTECTION_CAPS |
| 2207 |
{ |
| 2208 |
UINT Caps; |
| 2209 |
UINT KeyExchangeTypeCount; |
| 2210 |
UINT BlockAlignmentSize; |
| 2211 |
ULONGLONG ProtectedMemorySize; |
| 2212 |
} D3D11_VIDEO_CONTENT_PROTECTION_CAPS; |
| 2213 |
|
| 2214 |
typedef struct D3D11_ENCRYPTED_BLOCK_INFO |
| 2215 |
{ |
| 2216 |
UINT NumEncryptedBytesAtBeginning; |
| 2217 |
UINT NumBytesInSkipPattern; |
| 2218 |
UINT NumBytesInEncryptPattern; |
| 2219 |
} D3D11_ENCRYPTED_BLOCK_INFO; |
| 2220 |
|
| 2221 |
typedef struct D3D11_VIDEO_DECODER_BUFFER_DESC |
| 2222 |
{ |
| 2223 |
D3D11_VIDEO_DECODER_BUFFER_TYPE BufferType; |
| 2224 |
UINT BufferIndex; |
| 2225 |
UINT DataOffset; |
| 2226 |
UINT DataSize; |
| 2227 |
UINT FirstMBaddress; |
| 2228 |
UINT NumMBsInBuffer; |
| 2229 |
UINT Width; |
| 2230 |
UINT Height; |
| 2231 |
UINT Stride; |
| 2232 |
UINT ReservedBits; |
| 2233 |
void *pIV; |
| 2234 |
UINT IVSize; |
| 2235 |
BOOL PartialEncryption; |
| 2236 |
D3D11_ENCRYPTED_BLOCK_INFO EncryptedBlockInfo; |
| 2237 |
} D3D11_VIDEO_DECODER_BUFFER_DESC; |
| 2238 |
|
| 2239 |
typedef struct D3D11_VIDEO_DECODER_EXTENSION |
| 2240 |
{ |
| 2241 |
UINT Function; |
| 2242 |
void *pPrivateInputData; |
| 2243 |
UINT PrivateInputDataSize; |
| 2244 |
void *pPrivateOutputData; |
| 2245 |
UINT PrivateOutputDataSize; |
| 2246 |
UINT ResourceCount; |
| 2247 |
ID3D11Resource **ppResourceList; |
| 2248 |
} D3D11_VIDEO_DECODER_EXTENSION; |
| 2249 |
|
| 2250 |
typedef struct D3D11_VIDEO_COLOR_YCbCrA |
| 2251 |
{ |
| 2252 |
float Y; |
| 2253 |
float Cb; |
| 2254 |
float Cr; |
| 2255 |
float A; |
| 2256 |
} D3D11_VIDEO_COLOR_YCbCrA; |
| 2257 |
|
| 2258 |
typedef struct D3D11_VIDEO_COLOR_RGBA |
| 2259 |
{ |
| 2260 |
float R; |
| 2261 |
float G; |
| 2262 |
float B; |
| 2263 |
float A; |
| 2264 |
} D3D11_VIDEO_COLOR_RGBA; |
| 2265 |
|
| 2266 |
typedef struct D3D11_VIDEO_COLOR |
| 2267 |
{ |
| 2268 |
union |
| 2269 |
{ |
| 2270 |
D3D11_VIDEO_COLOR_YCbCrA YCbCr; |
| 2271 |
D3D11_VIDEO_COLOR_RGBA RGBA; |
| 2272 |
}; |
| 2273 |
} D3D11_VIDEO_COLOR; |
| 2274 |
|
| 2275 |
typedef struct D3D11_VIDEO_PROCESSOR_COLOR_SPACE |
| 2276 |
{ |
| 2277 |
UINT Usage : 1; |
| 2278 |
UINT RGB_Range : 1; |
| 2279 |
UINT YCbCr_Matrix : 1; |
| 2280 |
UINT YCbCr_xvYCC : 1; |
| 2281 |
UINT Nominal_Range : 2; |
| 2282 |
UINT Reserved : 26; |
| 2283 |
} D3D11_VIDEO_PROCESSOR_COLOR_SPACE; |
| 2284 |
|
| 2285 |
typedef struct D3D11_VIDEO_PROCESSOR_STREAM |
| 2286 |
{ |
| 2287 |
BOOL Enable; |
| 2288 |
UINT OutputIndex; |
| 2289 |
UINT InputFrameOrField; |
| 2290 |
UINT PastFrames; |
| 2291 |
UINT FutureFrames; |
| 2292 |
ID3D11VideoProcessorInputView **ppPastSurfaces; |
| 2293 |
ID3D11VideoProcessorInputView *pInputSurface; |
| 2294 |
ID3D11VideoProcessorInputView **ppFutureSurfaces; |
| 2295 |
ID3D11VideoProcessorInputView **ppPastSurfacesRight; |
| 2296 |
ID3D11VideoProcessorInputView *pInputSurfaceRight; |
| 2297 |
ID3D11VideoProcessorInputView **ppFutureSurfacesRight; |
| 2298 |
} D3D11_VIDEO_PROCESSOR_STREAM; |
| 2299 |
|
| 2300 |
typedef struct D3D11_OMAC |
| 2301 |
{ |
| 2302 |
BYTE Omac[D3D11_OMAC_SIZE]; |
| 2303 |
} D3D11_OMAC; |
| 2304 |
|
| 2305 |
typedef struct D3D11_AUTHENTICATED_CONFIGURE_OUTPUT |
| 2306 |
{ |
| 2307 |
D3D11_OMAC omac; |
| 2308 |
GUID ConfigureType; |
| 2309 |
HANDLE hChannel; |
| 2310 |
UINT SequenceNumber; |
| 2311 |
HRESULT ReturnCode; |
| 2312 |
} D3D11_AUTHENTICATED_CONFIGURE_OUTPUT; |
| 2313 |
|
| 2314 |
typedef struct D3D11_QUERY_DATA_TIMESTAMP_DISJOINT |
| 2315 |
{ |
| 2316 |
UINT64 Frequency; |
| 2317 |
BOOL Disjoint; |
| 2318 |
} D3D11_QUERY_DATA_TIMESTAMP_DISJOINT; |
| 2319 |
|
| 2320 |
typedef struct D3D11_QUERY_DATA_PIPELINE_STATISTICS |
| 2321 |
{ |
| 2322 |
UINT64 IAVertices; |
| 2323 |
UINT64 IAPrimitives; |
| 2324 |
UINT64 VSInvocations; |
| 2325 |
UINT64 GSInvocations; |
| 2326 |
UINT64 GSPrimitives; |
| 2327 |
UINT64 CInvocations; |
| 2328 |
UINT64 CPrimitives; |
| 2329 |
UINT64 PSInvocations; |
| 2330 |
UINT64 HSInvocations; |
| 2331 |
UINT64 DSInvocations; |
| 2332 |
UINT64 CSInvocations; |
| 2333 |
} D3D11_QUERY_DATA_PIPELINE_STATISTICS; |
| 2334 |
|
| 2335 |
typedef struct D3D11_DRAW_INSTANCED_INDIRECT_ARGS |
| 2336 |
{ |
| 2337 |
UINT VertexCountPerInstance; |
| 2338 |
UINT InstanceCount; |
| 2339 |
UINT StartVertexLocation; |
| 2340 |
UINT StartInstanceLocation; |
| 2341 |
} D3D11_DRAW_INSTANCED_INDIRECT_ARGS; |
| 2342 |
|
| 2343 |
typedef struct D3D11_DRAW_INDEXED_INSTANCED_INDIRECT_ARGS |
| 2344 |
{ |
| 2345 |
UINT IndexCountPerInstance; |
| 2346 |
UINT InstanceCount; |
| 2347 |
UINT StartIndexLocation; |
| 2348 |
INT BaseVertexLocation; |
| 2349 |
UINT StartInstanceLocation; |
| 2350 |
} D3D11_DRAW_INDEXED_INSTANCED_INDIRECT_ARGS; |
| 2351 |
|
| 2352 |
typedef struct D3D11_AUTHENTICATED_CONFIGURE_INPUT |
| 2353 |
{ |
| 2354 |
D3D11_OMAC omac; |
| 2355 |
GUID ConfigureType; |
| 2356 |
HANDLE hChannel; |
| 2357 |
UINT SequenceNumber; |
| 2358 |
} D3D11_AUTHENTICATED_CONFIGURE_INPUT; |
| 2359 |
|
| 2360 |
typedef struct D3D11_AUTHENTICATED_QUERY_INPUT |
| 2361 |
{ |
| 2362 |
GUID QueryType; |
| 2363 |
HANDLE hChannel; |
| 2364 |
UINT SequenceNumber; |
| 2365 |
} D3D11_AUTHENTICATED_QUERY_INPUT; |
| 2366 |
|
| 2367 |
typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT |
| 2368 |
{ |
| 2369 |
D3D11_OMAC omac; |
| 2370 |
GUID QueryType; |
| 2371 |
HANDLE hChannel; |
| 2372 |
UINT SequenceNumber; |
| 2373 |
HRESULT ReturnCode; |
| 2374 |
} D3D11_AUTHENTICATED_QUERY_OUTPUT; |
| 2375 |
|
| 2376 |
typedef union D3D11_AUTHENTICATED_PROTECTION_FLAGS |
| 2377 |
{ |
| 2378 |
struct |
| 2379 |
{ |
| 2380 |
UINT ProtectionEnabled : 1; |
| 2381 |
UINT OverlayOrFullscreenRequired : 1; |
| 2382 |
UINT Reserved : 30; |
| 2383 |
} Flags; |
| 2384 |
UINT Value; |
| 2385 |
} D3D11_AUTHENTICATED_PROTECTION_FLAGS; |
| 2386 |
|
| 2387 |
typedef struct D3D11_AUTHENTICATED_QUERY_PROTECTION_OUTPUT |
| 2388 |
{ |
| 2389 |
D3D11_AUTHENTICATED_QUERY_OUTPUT Output; |
| 2390 |
D3D11_AUTHENTICATED_PROTECTION_FLAGS ProtectionFlags; |
| 2391 |
} D3D11_AUTHENTICATED_QUERY_PROTECTION_OUTPUT; |
| 2392 |
|
| 2393 |
typedef struct D3D11_AUTHENTICATED_QUERY_CHANNEL_TYPE_OUTPUT |
| 2394 |
{ |
| 2395 |
D3D11_AUTHENTICATED_QUERY_OUTPUT Output; |
| 2396 |
D3D11_AUTHENTICATED_CHANNEL_TYPE ChannelType; |
| 2397 |
} D3D11_AUTHENTICATED_QUERY_CHANNEL_TYPE_OUTPUT; |
| 2398 |
|
| 2399 |
typedef struct D3D11_AUTHENTICATED_QUERY_DEVICE_HANDLE_OUTPUT |
| 2400 |
{ |
| 2401 |
D3D11_AUTHENTICATED_QUERY_OUTPUT Output; |
| 2402 |
HANDLE DeviceHandle; |
| 2403 |
} D3D11_AUTHENTICATED_QUERY_DEVICE_HANDLE_OUTPUT; |
| 2404 |
|
| 2405 |
typedef struct D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_INPUT |
| 2406 |
{ |
| 2407 |
D3D11_AUTHENTICATED_QUERY_INPUT Input; |
| 2408 |
HANDLE DecoderHandle; |
| 2409 |
} D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_INPUT; |
| 2410 |
|
| 2411 |
typedef struct D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_OUTPUT |
| 2412 |
{ |
| 2413 |
D3D11_AUTHENTICATED_QUERY_OUTPUT Output; |
| 2414 |
HANDLE DecoderHandle; |
| 2415 |
HANDLE CryptoSessionHandle; |
| 2416 |
HANDLE DeviceHandle; |
| 2417 |
} D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_OUTPUT; |
| 2418 |
|
| 2419 |
typedef struct D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_COUNT_OUTPUT |
| 2420 |
{ |
| 2421 |
D3D11_AUTHENTICATED_QUERY_OUTPUT Output; |
| 2422 |
UINT RestrictedSharedResourceProcessCount; |
| 2423 |
} D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_COUNT_OUTPUT; |
| 2424 |
|
| 2425 |
typedef struct D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_INPUT |
| 2426 |
{ |
| 2427 |
D3D11_AUTHENTICATED_QUERY_INPUT Input; |
| 2428 |
UINT ProcessIndex; |
| 2429 |
} D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_INPUT; |
| 2430 |
|
| 2431 |
typedef struct D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_OUTPUT |
| 2432 |
{ |
| 2433 |
D3D11_AUTHENTICATED_QUERY_OUTPUT Output; |
| 2434 |
UINT ProcessIndex; |
| 2435 |
D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE ProcessIdentifier; |
| 2436 |
HANDLE ProcessHandle; |
| 2437 |
} D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_OUTPUT; |
| 2438 |
|
| 2439 |
typedef struct D3D11_AUTHENTICATED_QUERY_UNRESTRICTED_PROTECTED_SHARED_RESOURCE_COUNT_OUTPUT |
| 2440 |
{ |
| 2441 |
D3D11_AUTHENTICATED_QUERY_OUTPUT Output; |
| 2442 |
UINT UnrestrictedProtectedSharedResourceCount; |
| 2443 |
} D3D11_AUTHENTICATED_QUERY_UNRESTRICTED_PROTECTED_SHARED_RESOURCE_COUNT_OUTPUT; |
| 2444 |
|
| 2445 |
typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_INPUT |
| 2446 |
{ |
| 2447 |
D3D11_AUTHENTICATED_QUERY_INPUT Input; |
| 2448 |
HANDLE DeviceHandle; |
| 2449 |
HANDLE CryptoSessionHandle; |
| 2450 |
} D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_INPUT; |
| 2451 |
|
| 2452 |
typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_OUTPUT |
| 2453 |
{ |
| 2454 |
D3D11_AUTHENTICATED_QUERY_OUTPUT Output; |
| 2455 |
HANDLE DeviceHandle; |
| 2456 |
HANDLE CryptoSessionHandle; |
| 2457 |
UINT OutputIDCount; |
| 2458 |
} D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_OUTPUT; |
| 2459 |
|
| 2460 |
typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_INPUT |
| 2461 |
{ |
| 2462 |
D3D11_AUTHENTICATED_QUERY_INPUT Input; |
| 2463 |
HANDLE DeviceHandle; |
| 2464 |
HANDLE CryptoSessionHandle; |
| 2465 |
UINT OutputIDIndex; |
| 2466 |
} D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_INPUT; |
| 2467 |
|
| 2468 |
typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_OUTPUT |
| 2469 |
{ |
| 2470 |
D3D11_AUTHENTICATED_QUERY_OUTPUT Output; |
| 2471 |
HANDLE DeviceHandle; |
| 2472 |
HANDLE CryptoSessionHandle; |
| 2473 |
UINT OutputIDIndex; |
| 2474 |
UINT64 OutputID; |
| 2475 |
} D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_OUTPUT; |
| 2476 |
|
| 2477 |
typedef struct D3D11_AUTHENTICATED_QUERY_ACESSIBILITY_OUTPUT |
| 2478 |
{ |
| 2479 |
D3D11_AUTHENTICATED_QUERY_OUTPUT Output; |
| 2480 |
D3D11_BUS_TYPE BusType; |
| 2481 |
BOOL AccessibleInContiguousBlocks; |
| 2482 |
BOOL AccessibleInNonContiguousBlocks; |
| 2483 |
} D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_OUTPUT; |
| 2484 |
|
| 2485 |
typedef struct D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_COUNT_OUTPUT |
| 2486 |
{ |
| 2487 |
D3D11_AUTHENTICATED_QUERY_OUTPUT Output; |
| 2488 |
UINT EncryptionGuidCount; |
| 2489 |
} D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_COUNT_OUTPUT; |
| 2490 |
|
| 2491 |
typedef struct D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_INPUT |
| 2492 |
{ |
| 2493 |
D3D11_AUTHENTICATED_QUERY_INPUT Input; |
| 2494 |
UINT EncryptionGuidIndex; |
| 2495 |
} D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_INPUT; |
| 2496 |
|
| 2497 |
typedef struct D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_OUTPUT |
| 2498 |
{ |
| 2499 |
D3D11_AUTHENTICATED_QUERY_OUTPUT Output; |
| 2500 |
UINT EncryptionGuidIndex; |
| 2501 |
GUID EncryptionGuid; |
| 2502 |
} D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_OUTPUT; |
| 2503 |
|
| 2504 |
typedef struct D3D11_AUTHENTICATED_QUERY_CURRENT_ACCESSIBILITY_ENCRYPTION_OUTPUT |
| 2505 |
{ |
| 2506 |
D3D11_AUTHENTICATED_QUERY_OUTPUT Output; |
| 2507 |
GUID EncryptionGuid; |
| 2508 |
} D3D11_AUTHENTICATED_QUERY_CURRENT_ACCESSIBILITY_ENCRYPTION_OUTPUT; |
| 2509 |
|
| 2510 |
typedef struct D3D11_AUTHENTICATED_CONFIGURE_INITIALIZE_INPUT |
| 2511 |
{ |
| 2512 |
D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters; |
| 2513 |
UINT StartSequenceQuery; |
| 2514 |
UINT StartSequenceConfigure; |
| 2515 |
} D3D11_AUTHENTICATED_CONFIGURE_INITIALIZE_INPUT; |
| 2516 |
|
| 2517 |
typedef struct D3D11_AUTHENTICATED_CONFIGURE_PROTECTION_INPUT |
| 2518 |
{ |
| 2519 |
D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters; |
| 2520 |
D3D11_AUTHENTICATED_PROTECTION_FLAGS Protections; |
| 2521 |
} D3D11_AUTHENTICATED_CONFIGURE_PROTECTION_INPUT; |
| 2522 |
|
| 2523 |
typedef struct D3D11_AUTHENTICATED_CONFIGURE_CRYPTO_SESSION_INPUT |
| 2524 |
{ |
| 2525 |
D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters; |
| 2526 |
HANDLE DecoderHandle; |
| 2527 |
HANDLE CryptoSessionHandle; |
| 2528 |
HANDLE DeviceHandle; |
| 2529 |
} D3D11_AUTHENTICATED_CONFIGURE_CRYPTO_SESSION_INPUT; |
| 2530 |
|
| 2531 |
typedef struct D3D11_AUTHENTICATED_CONFIGURE_SHARED_RESOURCE_INPUT |
| 2532 |
{ |
| 2533 |
D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters; |
| 2534 |
D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE ProcessType; |
| 2535 |
HANDLE ProcessHandle; |
| 2536 |
BOOL AllowAccess; |
| 2537 |
} D3D11_AUTHENTICATED_CONFIGURE_SHARED_RESOURCE_INPUT; |
| 2538 |
|
| 2539 |
typedef struct D3D11_AUTHENTICATED_CONFIGURE_ACCESSIBLE_ENCRYPTION_INPUT |
| 2540 |
{ |
| 2541 |
D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters; |
| 2542 |
GUID EncryptionGuid; |
| 2543 |
} D3D11_AUTHENTICATED_CONFIGURE_ACCESSIBLE_ENCRYPTION_INPUT; |
| 2544 |
|
| 2545 |
[ |
| 2546 |
object, |
| 2547 |
local, |
| 2548 |
uuid(1841e5c8-16b0-489b-bcc8-44cfb0d5deae) |
| 2549 |
] |
| 2550 |
interface ID3D11DeviceChild : IUnknown |
| 2551 |
{ |
| 2552 |
void GetDevice( |
| 2553 |
[out] ID3D11Device **ppDevice); |
| 2554 |
HRESULT GetPrivateData( |
| 2555 |
[in] REFGUID guid, |
| 2556 |
[in, out] UINT *pDataSize, |
| 2557 |
[out] void *pData); |
| 2558 |
HRESULT SetPrivateData( |
| 2559 |
[in] REFGUID guid, |
| 2560 |
[in] UINT DataSize, |
| 2561 |
[in] const void *pData); |
| 2562 |
HRESULT SetPrivateDataInterface( |
| 2563 |
[in] REFGUID guid, |
| 2564 |
[in] const IUnknown *pData); |
| 2565 |
} |
| 2566 |
|
| 2567 |
[ |
| 2568 |
object, |
| 2569 |
local, |
| 2570 |
uuid(4b35d0cd-1e15-4258-9c98-1b1333f6dd3b) |
| 2571 |
] |
| 2572 |
interface ID3D11Asynchronous : ID3D11DeviceChild |
| 2573 |
{ |
| 2574 |
UINT GetDataSize(); |
| 2575 |
} |
| 2576 |
|
| 2577 |
[ |
| 2578 |
object, |
| 2579 |
local, |
| 2580 |
uuid(d6c00747-87b7-425e-b84d-44d108560afd) |
| 2581 |
] |
| 2582 |
interface ID3D11Query : ID3D11Asynchronous |
| 2583 |
{ |
| 2584 |
void GetDesc( |
| 2585 |
[out] D3D11_QUERY_DESC *pDesc); |
| 2586 |
} |
| 2587 |
|
| 2588 |
[ |
| 2589 |
object, |
| 2590 |
local, |
| 2591 |
uuid(dc8e63f3-d12b-4952-b47b-5e45026a862d) |
| 2592 |
] |
| 2593 |
interface ID3D11Resource : ID3D11DeviceChild |
| 2594 |
{ |
| 2595 |
void GetType( |
| 2596 |
[out] D3D11_RESOURCE_DIMENSION *pResourceDimension); |
| 2597 |
void SetEvictionPriority( |
| 2598 |
[in] UINT EvictionPriority); |
| 2599 |
UINT GetEvictionPriority(); |
| 2600 |
} |
| 2601 |
|
| 2602 |
[ |
| 2603 |
object, |
| 2604 |
local, |
| 2605 |
uuid(839d1216-bb2e-412b-b7f4-a9dbebe08ed1) |
| 2606 |
] |
| 2607 |
interface ID3D11View : ID3D11DeviceChild |
| 2608 |
{ |
| 2609 |
void GetResource( |
| 2610 |
[out] ID3D11Resource **ppResource); |
| 2611 |
} |
| 2612 |
|
| 2613 |
[ |
| 2614 |
object, |
| 2615 |
local, |
| 2616 |
uuid(75b68faa-347d-4159-8f45-a0640f01cd9a) |
| 2617 |
] |
| 2618 |
interface ID3D11BlendState : ID3D11DeviceChild |
| 2619 |
{ |
| 2620 |
void GetDesc( |
| 2621 |
[out] D3D11_BLEND_DESC *pDesc); |
| 2622 |
} |
| 2623 |
|
| 2624 |
[ |
| 2625 |
object, |
| 2626 |
local, |
| 2627 |
uuid(48570b85-d1ee-4fcd-a250-eb350722b037) |
| 2628 |
] |
| 2629 |
interface ID3D11Buffer : ID3D11Resource |
| 2630 |
{ |
| 2631 |
void GetDesc( |
| 2632 |
[out] D3D11_BUFFER_DESC *pDesc); |
| 2633 |
} |
| 2634 |
|
| 2635 |
[ |
| 2636 |
object, |
| 2637 |
local, |
| 2638 |
uuid(a6cd7faa-b0b7-4a2f-9436-8662a65797cb) |
| 2639 |
] |
| 2640 |
interface ID3D11ClassInstance : ID3D11DeviceChild |
| 2641 |
{ |
| 2642 |
void GetClassLinkage( |
| 2643 |
[out] ID3D11ClassLinkage **ppLinkage); |
| 2644 |
void GetDesc( |
| 2645 |
[out] D3D11_CLASS_INSTANCE_DESC *pDesc); |
| 2646 |
void GetInstanceName( |
| 2647 |
[out] LPSTR pInstanceName, |
| 2648 |
[in, out] SIZE_T *pBufferLength); |
| 2649 |
void GetTypeName( |
| 2650 |
[out] LPSTR pTypeName, |
| 2651 |
[in, out] SIZE_T *pBufferLength); |
| 2652 |
} |
| 2653 |
|
| 2654 |
[ |
| 2655 |
object, |
| 2656 |
local, |
| 2657 |
uuid(ddf57cba-9543-46e4-a12b-f207a0fe7fed) |
| 2658 |
] |
| 2659 |
interface ID3D11ClassLinkage : ID3D11DeviceChild |
| 2660 |
{ |
| 2661 |
HRESULT GetClassInstance( |
| 2662 |
[in] LPCSTR pClassInstanceName, |
| 2663 |
[in] UINT InstanceIndex, |
| 2664 |
[out] ID3D11ClassInstance **ppInstance); |
| 2665 |
HRESULT CreateClassInstance( |
| 2666 |
[in] LPCSTR pClassTypeName, |
| 2667 |
[in] UINT ConstantBufferOffset, |
| 2668 |
[in] UINT ConstantVectorOffset, |
| 2669 |
[in] UINT TextureOffset, |
| 2670 |
[in] UINT SamplerOffset, |
| 2671 |
[out] ID3D11ClassInstance **ppInstance); |
| 2672 |
} |
| 2673 |
|
| 2674 |
[ |
| 2675 |
object, |
| 2676 |
local, |
| 2677 |
uuid(a24bc4d1-769e-43f7-8013-98ff566c18e2) |
| 2678 |
] |
| 2679 |
interface ID3D11CommandList : ID3D11DeviceChild |
| 2680 |
{ |
| 2681 |
UINT GetContextFlags(); |
| 2682 |
} |
| 2683 |
|
| 2684 |
[ |
| 2685 |
object, |
| 2686 |
local, |
| 2687 |
uuid(4f5b196e-c2bd-495e-bd01-1fded38e4969) |
| 2688 |
] |
| 2689 |
interface ID3D11ComputeShader : ID3D11DeviceChild |
| 2690 |
{ |
| 2691 |
} |
| 2692 |
|
| 2693 |
[ |
| 2694 |
object, |
| 2695 |
local, |
| 2696 |
uuid(6e8c49fb-a371-4770-b440-29086022b741) |
| 2697 |
] |
| 2698 |
interface ID3D11Counter : ID3D11Asynchronous |
| 2699 |
{ |
| 2700 |
void GetDesc( |
| 2701 |
[out] D3D11_COUNTER_DESC *pDesc); |
| 2702 |
} |
| 2703 |
|
| 2704 |
[ |
| 2705 |
object, |
| 2706 |
local, |
| 2707 |
uuid(03823efb-8d8f-4e1c-9aa2-f64bb2cbfdf1) |
| 2708 |
] |
| 2709 |
interface ID3D11DepthStencilState : ID3D11DeviceChild |
| 2710 |
{ |
| 2711 |
void GetDesc( |
| 2712 |
[out] D3D11_DEPTH_STENCIL_DESC *pDesc); |
| 2713 |
} |
| 2714 |
|
| 2715 |
[ |
| 2716 |
object, |
| 2717 |
local, |
| 2718 |
uuid(9fdac92a-1876-48c3-afad-25b94f84a9b6) |
| 2719 |
] |
| 2720 |
interface ID3D11DepthStencilView : ID3D11View |
| 2721 |
{ |
| 2722 |
void GetDesc( |
| 2723 |
[out] D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc); |
| 2724 |
} |
| 2725 |
|
| 2726 |
[ |
| 2727 |
object, |
| 2728 |
local, |
| 2729 |
uuid(f582c508-0f36-490c-9977-31eece268cfa) |
| 2730 |
] |
| 2731 |
interface ID3D11DomainShader : ID3D11DeviceChild |
| 2732 |
{ |
| 2733 |
} |
| 2734 |
|
| 2735 |
[ |
| 2736 |
object, |
| 2737 |
local, |
| 2738 |
uuid(38325b96-effb-4022-ba02-2e795b70275c) |
| 2739 |
] |
| 2740 |
interface ID3D11GeometryShader : ID3D11DeviceChild |
| 2741 |
{ |
| 2742 |
} |
| 2743 |
|
| 2744 |
[ |
| 2745 |
object, |
| 2746 |
local, |
| 2747 |
uuid(8e5c6061-628a-4c8e-8264-bbe45cb3d5dd) |
| 2748 |
] |
| 2749 |
interface ID3D11HullShader : ID3D11DeviceChild |
| 2750 |
{ |
| 2751 |
} |
| 2752 |
|
| 2753 |
[ |
| 2754 |
object, |
| 2755 |
local, |
| 2756 |
uuid(e4819ddc-4cf0-4025-bd26-5de82a3e07b7) |
| 2757 |
] |
| 2758 |
interface ID3D11InputLayout : ID3D11DeviceChild |
| 2759 |
{ |
| 2760 |
} |
| 2761 |
|
| 2762 |
[ |
| 2763 |
object, |
| 2764 |
local, |
| 2765 |
uuid(ea82e40d-51dc-4f33-93d4-db7c9125ae8c) |
| 2766 |
] |
| 2767 |
interface ID3D11PixelShader : ID3D11DeviceChild |
| 2768 |
{ |
| 2769 |
} |
| 2770 |
|
| 2771 |
[ |
| 2772 |
object, |
| 2773 |
local, |
| 2774 |
uuid(9eb576dd-9f77-4d86-81aa-8bab5fe490e2) |
| 2775 |
] |
| 2776 |
interface ID3D11Predicate : ID3D11Query |
| 2777 |
{ |
| 2778 |
} |
| 2779 |
|
| 2780 |
[ |
| 2781 |
object, |
| 2782 |
local, |
| 2783 |
uuid(9bb4ab81-ab1a-4d8f-b506-fc04200b6ee7) |
| 2784 |
] |
| 2785 |
interface ID3D11RasterizerState : ID3D11DeviceChild |
| 2786 |
{ |
| 2787 |
void GetDesc( |
| 2788 |
[out] D3D11_RASTERIZER_DESC *pDesc); |
| 2789 |
} |
| 2790 |
|
| 2791 |
[ |
| 2792 |
object, |
| 2793 |
local, |
| 2794 |
uuid(dfdba067-0b8d-4865-875b-d7b4516cc164) |
| 2795 |
] |
| 2796 |
interface ID3D11RenderTargetView : ID3D11View |
| 2797 |
{ |
| 2798 |
void GetDesc( |
| 2799 |
[out] D3D11_RENDER_TARGET_VIEW_DESC *pDesc); |
| 2800 |
} |
| 2801 |
|
| 2802 |
[ |
| 2803 |
object, |
| 2804 |
local, |
| 2805 |
uuid(da6fea51-564c-4487-9810-f0d0f9b4e3a5) |
| 2806 |
] |
| 2807 |
interface ID3D11SamplerState : ID3D11DeviceChild |
| 2808 |
{ |
| 2809 |
void GetDesc( |
| 2810 |
[out] D3D11_SAMPLER_DESC *pDesc); |
| 2811 |
} |
| 2812 |
|
| 2813 |
[ |
| 2814 |
object, |
| 2815 |
local, |
| 2816 |
uuid(b0e06fe0-8192-4e1a-b1ca-36d7414710b2) |
| 2817 |
] |
| 2818 |
interface ID3D11ShaderResourceView : ID3D11View |
| 2819 |
{ |
| 2820 |
void GetDesc( |
| 2821 |
[out] D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc); |
| 2822 |
} |
| 2823 |
|
| 2824 |
[ |
| 2825 |
object, |
| 2826 |
local, |
| 2827 |
uuid(f8fb5c27-c6b3-4f75-a4c8-439af2ef564c), |
| 2828 |
] |
| 2829 |
interface ID3D11Texture1D : ID3D11Resource |
| 2830 |
{ |
| 2831 |
void GetDesc( |
| 2832 |
[out] D3D11_TEXTURE1D_DESC *pDesc); |
| 2833 |
} |
| 2834 |
|
| 2835 |
[ |
| 2836 |
object, |
| 2837 |
local, |
| 2838 |
uuid(6f15aaf2-d208-4e89-9ab4-489535d34f9c) |
| 2839 |
] |
| 2840 |
interface ID3D11Texture2D : ID3D11Resource |
| 2841 |
{ |
| 2842 |
void GetDesc( |
| 2843 |
[out] D3D11_TEXTURE2D_DESC *pDesc); |
| 2844 |
} |
| 2845 |
|
| 2846 |
[ |
| 2847 |
object, |
| 2848 |
local, |
| 2849 |
uuid(037e866e-f56d-4357-a8af-9dabbe6e250e) |
| 2850 |
] |
| 2851 |
interface ID3D11Texture3D : ID3D11Resource |
| 2852 |
{ |
| 2853 |
void GetDesc( |
| 2854 |
[out] D3D11_TEXTURE3D_DESC *pDesc); |
| 2855 |
} |
| 2856 |
|
| 2857 |
[ |
| 2858 |
object, |
| 2859 |
local, |
| 2860 |
uuid(28acf509-7f5c-48f6-8611-f316010a6380) |
| 2861 |
] |
| 2862 |
interface ID3D11UnorderedAccessView : ID3D11View |
| 2863 |
{ |
| 2864 |
void GetDesc( |
| 2865 |
[out] D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc); |
| 2866 |
} |
| 2867 |
|
| 2868 |
[ |
| 2869 |
object, |
| 2870 |
local, |
| 2871 |
uuid(3b301d64-d678-4289-8897-22f8928b72f3) |
| 2872 |
] |
| 2873 |
interface ID3D11VertexShader : ID3D11DeviceChild |
| 2874 |
{ |
| 2875 |
} |
| 2876 |
|
| 2877 |
[ |
| 2878 |
object, |
| 2879 |
local, |
| 2880 |
uuid(c0bfa96c-e089-44fb-8eaf-26f8796190da) |
| 2881 |
] |
| 2882 |
interface ID3D11DeviceContext : ID3D11DeviceChild |
| 2883 |
{ |
| 2884 |
void VSSetConstantBuffers( |
| 2885 |
[in] UINT StartSlot, |
| 2886 |
[in] UINT NumBuffers, |
| 2887 |
[in] ID3D11Buffer *const *ppConstantBuffers); |
| 2888 |
void PSSetShaderResources( |
| 2889 |
[in] UINT StartSlot, |
| 2890 |
[in] UINT NumViews, |
| 2891 |
[in] ID3D11ShaderResourceView *const *ppShaderResourceViews); |
| 2892 |
void PSSetShader( |
| 2893 |
[in] ID3D11PixelShader *pPixelShader, |
| 2894 |
[in] ID3D11ClassInstance *const *ppClassInstances, |
| 2895 |
UINT NumClassInstances); |
| 2896 |
void PSSetSamplers( |
| 2897 |
[in] UINT StartSlot, |
| 2898 |
[in] UINT NumSamplers, |
| 2899 |
[in] ID3D11SamplerState *const *ppSamplers); |
| 2900 |
void VSSetShader( |
| 2901 |
[in] ID3D11VertexShader *pVertexShader, |
| 2902 |
[in] ID3D11ClassInstance *const *ppClassInstances, |
| 2903 |
UINT NumClassInstances); |
| 2904 |
void DrawIndexed( |
| 2905 |
[in] UINT IndexCount, |
| 2906 |
[in] UINT StartIndexLocation, |
| 2907 |
[in] INT BaseVertexLocation); |
| 2908 |
void Draw( |
| 2909 |
[in] UINT VertexCount, |
| 2910 |
[in] UINT StartVertexLocation); |
| 2911 |
HRESULT Map( |
| 2912 |
[in] ID3D11Resource *pResource, |
| 2913 |
[in] UINT Subresource, |
| 2914 |
[in] D3D11_MAP MapType, |
| 2915 |
[in] UINT MapFlags, |
| 2916 |
[out] D3D11_MAPPED_SUBRESOURCE *pMappedResource); |
| 2917 |
void Unmap( |
| 2918 |
[in] ID3D11Resource *pResource, |
| 2919 |
[in] UINT Subresource); |
| 2920 |
void PSSetConstantBuffers( |
| 2921 |
[in] UINT StartSlot, |
| 2922 |
[in] UINT NumBuffers, |
| 2923 |
[in] ID3D11Buffer *const *ppConstantBuffers); |
| 2924 |
void IASetInputLayout( |
| 2925 |
[in] ID3D11InputLayout *pInputLayout); |
| 2926 |
void IASetVertexBuffers( |
| 2927 |
[in] UINT StartSlot, |
| 2928 |
[in] UINT NumBuffers, |
| 2929 |
[in] ID3D11Buffer *const *ppVertexBuffers, |
| 2930 |
[in] const UINT *pStrides, |
| 2931 |
[in] const UINT *pOffsets); |
| 2932 |
void IASetIndexBuffer( |
| 2933 |
[in] ID3D11Buffer *pIndexBuffer, |
| 2934 |
[in] DXGI_FORMAT Format, |
| 2935 |
[in] UINT Offset); |
| 2936 |
void DrawIndexedInstanced( |
| 2937 |
[in] UINT IndexCountPerInstance, |
| 2938 |
[in] UINT InstanceCount, |
| 2939 |
[in] UINT StartIndexLocation, |
| 2940 |
[in] INT BaseVertexLocation, |
| 2941 |
[in] UINT StartInstanceLocation); |
| 2942 |
void DrawInstanced( |
| 2943 |
[in] UINT VertexCountPerInstance, |
| 2944 |
[in] UINT InstanceCount, |
| 2945 |
[in] UINT StartVertexLocation, |
| 2946 |
[in] UINT StartInstanceLocation); |
| 2947 |
void GSSetConstantBuffers( |
| 2948 |
[in] UINT StartSlot, |
| 2949 |
[in] UINT NumBuffers, |
| 2950 |
[in] ID3D11Buffer *const *ppConstantBuffers); |
| 2951 |
void GSSetShader( |
| 2952 |
[in] ID3D11GeometryShader *pShader, |
| 2953 |
[in] ID3D11ClassInstance *const *ppClassInstances, |
| 2954 |
UINT NumClassInstances); |
| 2955 |
void IASetPrimitiveTopology( |
| 2956 |
[in] D3D11_PRIMITIVE_TOPOLOGY Topology); |
| 2957 |
void VSSetShaderResources( |
| 2958 |
[in] UINT StartSlot, |
| 2959 |
[in] UINT NumViews, |
| 2960 |
[in] ID3D11ShaderResourceView *const *ppShaderResourceViews); |
| 2961 |
void VSSetSamplers( |
| 2962 |
[in] UINT StartSlot, |
| 2963 |
[in] UINT NumSamplers, |
| 2964 |
[in] ID3D11SamplerState *const *ppSamplers); |
| 2965 |
void Begin( |
| 2966 |
[in] ID3D11Asynchronous *pAsync); |
| 2967 |
void End( |
| 2968 |
[in] ID3D11Asynchronous *pAsync); |
| 2969 |
HRESULT GetData( |
| 2970 |
[in] ID3D11Asynchronous *pAsync, |
| 2971 |
[in] void *pData, |
| 2972 |
[in] UINT DataSize, |
| 2973 |
[in] UINT GetDataFlags); |
| 2974 |
void SetPredication( |
| 2975 |
[in] ID3D11Predicate *pPredicate, |
| 2976 |
[in] BOOL PredicateValue); |
| 2977 |
void GSSetShaderResources( |
| 2978 |
[in] UINT StartSlot, |
| 2979 |
[in] UINT NumViews, |
| 2980 |
[in] ID3D11ShaderResourceView *const *ppShaderResourceViews); |
| 2981 |
void GSSetSamplers( |
| 2982 |
[in] UINT StartSlot, |
| 2983 |
[in] UINT NumSamplers, |
| 2984 |
[in] ID3D11SamplerState *const *ppSamplers); |
| 2985 |
void OMSetRenderTargets( |
| 2986 |
[in] UINT NumViews, |
| 2987 |
[in] ID3D11RenderTargetView *const *ppRenderTargetViews, |
| 2988 |
[in] ID3D11DepthStencilView *pDepthStencilView); |
| 2989 |
void OMSetRenderTargetsAndUnorderedAccessViews( |
| 2990 |
[in] UINT NumRTVs, |
| 2991 |
[in] ID3D11RenderTargetView *const *ppRenderTargetViews, |
| 2992 |
[in] ID3D11DepthStencilView *pDepthStencilView, |
| 2993 |
[in] UINT UAVStartSlot, |
| 2994 |
[in] UINT NumUAVs, |
| 2995 |
[in] ID3D11UnorderedAccessView *const *ppUnorderedAccessViews, |
| 2996 |
[in] const UINT *pUAVInitialCounts); |
| 2997 |
void OMSetBlendState( |
| 2998 |
[in] ID3D11BlendState *pBlendState, |
| 2999 |
[in] const FLOAT BlendFactor[4], |
| 3000 |
[in] UINT SampleMask); |
| 3001 |
void OMSetDepthStencilState( |
| 3002 |
[in] ID3D11DepthStencilState *pDepthStencilState, |
| 3003 |
[in] UINT StencilRef); |
| 3004 |
void SOSetTargets( |
| 3005 |
[in] UINT NumBuffers, |
| 3006 |
[in] ID3D11Buffer *const *ppSOTargets, |
| 3007 |
[in] const UINT *pOffsets); |
| 3008 |
void DrawAuto(); |
| 3009 |
void DrawIndexedInstancedIndirect( |
| 3010 |
[in] ID3D11Buffer *pBufferForArgs, |
| 3011 |
[in] UINT AlignedByteOffsetForArgs); |
| 3012 |
void DrawInstancedIndirect( |
| 3013 |
[in] ID3D11Buffer *pBufferForArgs, |
| 3014 |
[in] UINT AlignedByteOffsetForArgs); |
| 3015 |
void Dispatch( |
| 3016 |
[in] UINT ThreadGroupCountX, |
| 3017 |
[in] UINT ThreadGroupCountY, |
| 3018 |
[in] UINT ThreadGroupCountZ); |
| 3019 |
void DispatchIndirect( |
| 3020 |
[in] ID3D11Buffer *pBufferForArgs, |
| 3021 |
[in] UINT AlignedByteOffsetForArgs); |
| 3022 |
void RSSetState( |
| 3023 |
[in] ID3D11RasterizerState *pRasterizerState); |
| 3024 |
void RSSetViewports( |
| 3025 |
[in] UINT NumViewports, |
| 3026 |
[in] const D3D11_VIEWPORT *pViewports); |
| 3027 |
void RSSetScissorRects( |
| 3028 |
[in] UINT NumRects, |
| 3029 |
[in] const D3D11_RECT *pRects); |
| 3030 |
void CopySubresourceRegion( |
| 3031 |
[in] ID3D11Resource *pDstResource, |
| 3032 |
[in] UINT DstSubresource, |
| 3033 |
[in] UINT DstX, |
| 3034 |
[in] UINT DstY, |
| 3035 |
[in] UINT DstZ, |
| 3036 |
[in] ID3D11Resource *pSrcResource, |
| 3037 |
[in] UINT SrcSubresource, |
| 3038 |
[in] const D3D11_BOX *pSrcBox); |
| 3039 |
void CopyResource( |
| 3040 |
[in] ID3D11Resource *pDstResource, |
| 3041 |
[in] ID3D11Resource *pSrcResource); |
| 3042 |
void UpdateSubresource( |
| 3043 |
[in] ID3D11Resource *pDstResource, |
| 3044 |
[in] UINT DstSubresource, |
| 3045 |
[in] const D3D11_BOX *pDstBox, |
| 3046 |
[in] const void *pSrcData, |
| 3047 |
[in] UINT SrcRowPitch, |
| 3048 |
[in] UINT SrcDepthPitch); |
| 3049 |
void CopyStructureCount( |
| 3050 |
[in] ID3D11Buffer *pDstBuffer, |
| 3051 |
[in] UINT DstAlignedByteOffset, |
| 3052 |
[in] ID3D11UnorderedAccessView *pSrcView); |
| 3053 |
void ClearRenderTargetView( |
| 3054 |
[in] ID3D11RenderTargetView *pRenderTargetView, |
| 3055 |
[in] const FLOAT ColorRGBA[4]); |
| 3056 |
void ClearUnorderedAccessViewUint( |
| 3057 |
[in] ID3D11UnorderedAccessView *pUnorderedAccessView, |
| 3058 |
[in] const UINT Values[4]); |
| 3059 |
void ClearUnorderedAccessViewFloat( |
| 3060 |
[in] ID3D11UnorderedAccessView *pUnorderedAccessView, |
| 3061 |
[in] const FLOAT Values[4]); |
| 3062 |
void ClearDepthStencilView( |
| 3063 |
[in] ID3D11DepthStencilView *pDepthStencilView, |
| 3064 |
[in] UINT ClearFlags, |
| 3065 |
[in] FLOAT Depth, |
| 3066 |
[in] UINT8 Stencil); |
| 3067 |
void GenerateMips( |
| 3068 |
[in] ID3D11ShaderResourceView *pShaderResourceView); |
| 3069 |
void SetResourceMinLOD( |
| 3070 |
[in] ID3D11Resource *pResource, FLOAT MinLOD); |
| 3071 |
FLOAT GetResourceMinLOD( |
| 3072 |
[in] ID3D11Resource *pResource); |
| 3073 |
void ResolveSubresource( |
| 3074 |
[in] ID3D11Resource *pDstResource, |
| 3075 |
[in] UINT DstSubresource, |
| 3076 |
[in] ID3D11Resource *pSrcResource, |
| 3077 |
[in] UINT SrcSubresource, |
| 3078 |
[in] DXGI_FORMAT Format); |
| 3079 |
void ExecuteCommandList( |
| 3080 |
[in] ID3D11CommandList *pCommandList, |
| 3081 |
BOOL RestoreContextState); |
| 3082 |
void HSSetShaderResources( |
| 3083 |
[in] UINT StartSlot, |
| 3084 |
[in] UINT NumViews, |
| 3085 |
[in] ID3D11ShaderResourceView *const *ppShaderResourceViews); |
| 3086 |
void HSSetShader( |
| 3087 |
[in] ID3D11HullShader *pHullShader, |
| 3088 |
[in] ID3D11ClassInstance *const *ppClassInstances, |
| 3089 |
UINT NumClassInstances); |
| 3090 |
void HSSetSamplers( |
| 3091 |
[in] UINT StartSlot, |
| 3092 |
[in] UINT NumSamplers, |
| 3093 |
[in] ID3D11SamplerState *const *ppSamplers); |
| 3094 |
void HSSetConstantBuffers( |
| 3095 |
[in] UINT StartSlot, |
| 3096 |
[in] UINT NumBuffers, |
| 3097 |
[in] ID3D11Buffer *const *ppConstantBuffers); |
| 3098 |
void DSSetShaderResources( |
| 3099 |
[in] UINT StartSlot, |
| 3100 |
[in] UINT NumViews, |
| 3101 |
[in] ID3D11ShaderResourceView *const *ppShaderResourceViews); |
| 3102 |
void DSSetShader( |
| 3103 |
[in] ID3D11DomainShader *pDomainShader, |
| 3104 |
[in] ID3D11ClassInstance *const *ppClassInstances, |
| 3105 |
UINT NumClassInstances); |
| 3106 |
void DSSetSamplers( |
| 3107 |
[in] UINT StartSlot, |
| 3108 |
[in] UINT NumSamplers, |
| 3109 |
[in] ID3D11SamplerState *const *ppSamplers); |
| 3110 |
void DSSetConstantBuffers( |
| 3111 |
[in] UINT StartSlot, |
| 3112 |
[in] UINT NumBuffers, |
| 3113 |
[in] ID3D11Buffer *const *ppConstantBuffers); |
| 3114 |
void CSSetShaderResources( |
| 3115 |
[in] UINT StartSlot, |
| 3116 |
[in] UINT NumViews, |
| 3117 |
[in] ID3D11ShaderResourceView *const *ppShaderResourceViews); |
| 3118 |
void CSSetUnorderedAccessViews( |
| 3119 |
[in] UINT StartSlot, |
| 3120 |
[in] UINT NumUAVs, |
| 3121 |
[in] ID3D11UnorderedAccessView *const *ppUnorderedAccessViews, |
| 3122 |
[in] const UINT *pUAVInitialCounts); |
| 3123 |
void CSSetShader( |
| 3124 |
[in] ID3D11ComputeShader *pComputeShader, |
| 3125 |
[in] ID3D11ClassInstance *const *ppClassInstances, |
| 3126 |
UINT NumClassInstances); |
| 3127 |
void CSSetSamplers( |
| 3128 |
[in] UINT StartSlot, |
| 3129 |
[in] UINT NumSamplers, |
| 3130 |
[in] ID3D11SamplerState *const *ppSamplers); |
| 3131 |
void CSSetConstantBuffers( |
| 3132 |
[in] UINT StartSlot, |
| 3133 |
[in] UINT NumBuffers, |
| 3134 |
[in] ID3D11Buffer *const *ppConstantBuffers); |
| 3135 |
void VSGetConstantBuffers( |
| 3136 |
[in] UINT StartSlot, |
| 3137 |
[in] UINT NumBuffers, |
| 3138 |
[out] ID3D11Buffer **ppConstantBuffers); |
| 3139 |
void PSGetShaderResources( |
| 3140 |
[in] UINT StartSlot, |
| 3141 |
[in] UINT NumViews, |
| 3142 |
[out] ID3D11ShaderResourceView **ppShaderResourceViews); |
| 3143 |
void PSGetShader( |
| 3144 |
[out] ID3D11PixelShader **ppPixelShader, |
| 3145 |
[out] ID3D11ClassInstance **ppClassInstances, |
| 3146 |
[in, out] UINT *pNumClassInstances); |
| 3147 |
void PSGetSamplers( |
| 3148 |
[in] UINT StartSlot, |
| 3149 |
[in] UINT NumSamplers, |
| 3150 |
[out] ID3D11SamplerState **ppSamplers); |
| 3151 |
void VSGetShader( |
| 3152 |
[out] ID3D11VertexShader **ppVertexShader, |
| 3153 |
[out] ID3D11ClassInstance **ppClassInstances, |
| 3154 |
[in, out] UINT *pNumClassInstances); |
| 3155 |
void PSGetConstantBuffers( |
| 3156 |
[in] UINT StartSlot, |
| 3157 |
[in] UINT NumBuffers, |
| 3158 |
[out] ID3D11Buffer **ppConstantBuffers); |
| 3159 |
void IAGetInputLayout( |
| 3160 |
[out] ID3D11InputLayout **ppInputLayout); |
| 3161 |
void IAGetVertexBuffers( |
| 3162 |
[in] UINT StartSlot, |
| 3163 |
[in] UINT NumBuffers, |
| 3164 |
[out] ID3D11Buffer **ppVertexBuffers, |
| 3165 |
[out] UINT *pStrides, |
| 3166 |
[out] UINT *pOffsets); |
| 3167 |
void IAGetIndexBuffer( |
| 3168 |
[out] ID3D11Buffer **pIndexBuffer, |
| 3169 |
[out] DXGI_FORMAT* Format, |
| 3170 |
[out] UINT* Offset); |
| 3171 |
void GSGetConstantBuffers( |
| 3172 |
[in] UINT StartSlot, |
| 3173 |
[in] UINT NumBuffers, |
| 3174 |
[out] ID3D11Buffer **ppConstantBuffers); |
| 3175 |
void GSGetShader( |
| 3176 |
[out] ID3D11GeometryShader **ppGeometryShader, |
| 3177 |
[out] ID3D11ClassInstance **ppClassInstances, |
| 3178 |
[in, out] UINT *pNumClassInstances); |
| 3179 |
void IAGetPrimitiveTopology( |
| 3180 |
[out] D3D11_PRIMITIVE_TOPOLOGY *pTopology); |
| 3181 |
void VSGetShaderResources( |
| 3182 |
[in] UINT StartSlot, |
| 3183 |
[in] UINT NumViews, |
| 3184 |
[out] ID3D11ShaderResourceView **ppShaderResourceViews); |
| 3185 |
void VSGetSamplers( |
| 3186 |
[in] UINT StartSlot, |
| 3187 |
[in] UINT NumSamplers, |
| 3188 |
[out] ID3D11SamplerState **ppSamplers); |
| 3189 |
void GetPredication( |
| 3190 |
[out] ID3D11Predicate **ppPredicate, |
| 3191 |
[out] BOOL *pPredicateValue); |
| 3192 |
void GSGetShaderResources( |
| 3193 |
[in] UINT StartSlot, |
| 3194 |
[in] UINT NumViews, |
| 3195 |
[out] ID3D11ShaderResourceView **ppShaderResourceViews); |
| 3196 |
void GSGetSamplers( |
| 3197 |
[in] UINT StartSlot, |
| 3198 |
[in] UINT NumSamplers, |
| 3199 |
[out] ID3D11SamplerState **ppSamplers); |
| 3200 |
void OMGetRenderTargets( |
| 3201 |
[in] UINT NumViews, |
| 3202 |
[out] ID3D11RenderTargetView **ppRenderTargetViews, |
| 3203 |
[out] ID3D11DepthStencilView **ppDepthStencilView); |
| 3204 |
void OMGetRenderTargetsAndUnorderedAccessViews( |
| 3205 |
[in] UINT NumRTVs, |
| 3206 |
[out] ID3D11RenderTargetView **ppRenderTargetViews, |
| 3207 |
[out] ID3D11DepthStencilView **ppDepthStencilView, |
| 3208 |
[in] UINT UAVStartSlot, |
| 3209 |
[in] UINT NumUAVs, |
| 3210 |
[out] ID3D11UnorderedAccessView **ppUnorderedAccessViews); |
| 3211 |
void OMGetBlendState( |
| 3212 |
[out] ID3D11BlendState **ppBlendState, |
| 3213 |
[out] FLOAT BlendFactor[4], |
| 3214 |
[out] UINT *pSampleMask); |
| 3215 |
void OMGetDepthStencilState( |
| 3216 |
[out] ID3D11DepthStencilState **ppDepthStencilState, |
| 3217 |
[out] UINT *pStencilRef); |
| 3218 |
void SOGetTargets( |
| 3219 |
[in] UINT NumBuffers, |
| 3220 |
[out] ID3D11Buffer **ppSOTargets); |
| 3221 |
void RSGetState( |
| 3222 |
[out] ID3D11RasterizerState **ppRasterizerState); |
| 3223 |
void RSGetViewports( |
| 3224 |
[in, out] UINT *pNumViewports, |
| 3225 |
[out] D3D11_VIEWPORT *pViewports); |
| 3226 |
void RSGetScissorRects( |
| 3227 |
[in, out] UINT *pNumRects, |
| 3228 |
[out] D3D11_RECT *pRects); |
| 3229 |
void HSGetShaderResources( |
| 3230 |
[in] UINT StartSlot, |
| 3231 |
[in] UINT NumViews, |
| 3232 |
[out] ID3D11ShaderResourceView **ppShaderResourceViews); |
| 3233 |
void HSGetShader( |
| 3234 |
[out] ID3D11HullShader **ppHullShader, |
| 3235 |
[out] ID3D11ClassInstance **ppClassInstances, |
| 3236 |
[in, out] UINT *pNumClassInstances); |
| 3237 |
void HSGetSamplers( |
| 3238 |
[in] UINT StartSlot, |
| 3239 |
[in] UINT NumSamplers, |
| 3240 |
[out] ID3D11SamplerState **ppSamplers); |
| 3241 |
void HSGetConstantBuffers( |
| 3242 |
[in] UINT StartSlot, |
| 3243 |
[in] UINT NumBuffers, |
| 3244 |
[out] ID3D11Buffer **ppConstantBuffers); |
| 3245 |
void DSGetShaderResources( |
| 3246 |
[in] UINT StartSlot, |
| 3247 |
[in] UINT NumViews, |
| 3248 |
[out] ID3D11ShaderResourceView **ppShaderResourceViews); |
| 3249 |
void DSGetShader( |
| 3250 |
[out] ID3D11DomainShader **ppDomainShader, |
| 3251 |
[out] ID3D11ClassInstance **ppClassInstances, |
| 3252 |
[in, out] UINT *pNumClassInstances); |
| 3253 |
void DSGetSamplers( |
| 3254 |
[in] UINT StartSlot, |
| 3255 |
[in] UINT NumSamplers, |
| 3256 |
[out] ID3D11SamplerState **ppSamplers); |
| 3257 |
void DSGetConstantBuffers( |
| 3258 |
[in] UINT StartSlot, |
| 3259 |
[in] UINT NumBuffers, |
| 3260 |
[out] ID3D11Buffer **ppConstantBuffers); |
| 3261 |
void CSGetShaderResources( |
| 3262 |
[in] UINT StartSlot, |
| 3263 |
[in] UINT NumViews, |
| 3264 |
[out] ID3D11ShaderResourceView **ppShaderResourceViews); |
| 3265 |
void CSGetUnorderedAccessViews( |
| 3266 |
[in] UINT StartSlot, |
| 3267 |
[in] UINT NumUAVs, |
| 3268 |
[out] ID3D11UnorderedAccessView **ppUnorderedAccessViews); |
| 3269 |
void CSGetShader( |
| 3270 |
[out] ID3D11ComputeShader **ppComputeShader, |
| 3271 |
[out] ID3D11ClassInstance **ppClassInstances, |
| 3272 |
[in, out] UINT *pNumClassInstances); |
| 3273 |
void CSGetSamplers( |
| 3274 |
[in] UINT StartSlot, |
| 3275 |
[in] UINT NumSamplers, |
| 3276 |
[out] ID3D11SamplerState **ppSamplers); |
| 3277 |
void CSGetConstantBuffers( |
| 3278 |
[in] UINT StartSlot, |
| 3279 |
[in] UINT NumBuffers, |
| 3280 |
[out] ID3D11Buffer **ppConstantBuffers); |
| 3281 |
void ClearState(); |
| 3282 |
void Flush(); |
| 3283 |
D3D11_DEVICE_CONTEXT_TYPE GetType(); |
| 3284 |
UINT GetContextFlags(); |
| 3285 |
HRESULT FinishCommandList( |
| 3286 |
BOOL RestoreDeferredContextState, |
| 3287 |
[out] ID3D11CommandList **ppCommandList); |
| 3288 |
} |
| 3289 |
|
| 3290 |
[ |
| 3291 |
object, |
| 3292 |
uuid(3015a308-dcbd-47aa-a747-192486d14d4a), |
| 3293 |
local, |
| 3294 |
pointer_default(unique) |
| 3295 |
] |
| 3296 |
interface ID3D11AuthenticatedChannel : ID3D11DeviceChild |
| 3297 |
{ |
| 3298 |
HRESULT GetCertificateSize( |
| 3299 |
UINT *pCertificateSize); |
| 3300 |
HRESULT GetCertificate( |
| 3301 |
UINT CertificateSize, |
| 3302 |
BYTE *pCertificate); |
| 3303 |
void GetChannelHandle( |
| 3304 |
HANDLE *pChannelHandle); |
| 3305 |
} |
| 3306 |
|
| 3307 |
[ |
| 3308 |
object, |
| 3309 |
uuid(9b32f9ad-bdcc-40a6-a39d-d5c865845720), |
| 3310 |
local, |
| 3311 |
pointer_default(unique) |
| 3312 |
] |
| 3313 |
interface ID3D11CryptoSession : ID3D11DeviceChild |
| 3314 |
{ |
| 3315 |
void GetCryptoType( |
| 3316 |
GUID *pCryptoType); |
| 3317 |
void GetDecoderProfile( |
| 3318 |
GUID *pDecoderProfile); |
| 3319 |
HRESULT GetCertificateSize( |
| 3320 |
UINT *pCertificateSize); |
| 3321 |
HRESULT GetCertificate( |
| 3322 |
UINT CertificateSize, |
| 3323 |
BYTE *pCertificate); |
| 3324 |
void GetCryptoSessionHandle( |
| 3325 |
HANDLE *pCryptoSessionHandle); |
| 3326 |
} |
| 3327 |
|
| 3328 |
[ |
| 3329 |
object, |
| 3330 |
uuid(3c9c5b51-995d-48d1-9b8d-fa5caeded65c), |
| 3331 |
local, |
| 3332 |
pointer_default(unique) |
| 3333 |
] |
| 3334 |
interface ID3D11VideoDecoder : ID3D11DeviceChild |
| 3335 |
{ |
| 3336 |
HRESULT GetCreationParameters( |
| 3337 |
D3D11_VIDEO_DECODER_DESC *pVideoDesc, |
| 3338 |
D3D11_VIDEO_DECODER_CONFIG *pConfig); |
| 3339 |
HRESULT GetDriverHandle( |
| 3340 |
HANDLE *pDriverHandle); |
| 3341 |
} |
| 3342 |
|
| 3343 |
[ |
| 3344 |
object, |
| 3345 |
uuid(31627037-53ab-4200-9061-05faa9ab45f9), |
| 3346 |
local, |
| 3347 |
pointer_default(unique) |
| 3348 |
] |
| 3349 |
interface ID3D11VideoProcessorEnumerator : ID3D11DeviceChild |
| 3350 |
{ |
| 3351 |
HRESULT GetVideoProcessorContentDesc( |
| 3352 |
D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pContentDesc); |
| 3353 |
HRESULT CheckVideoProcessorFormat( |
| 3354 |
DXGI_FORMAT Format, |
| 3355 |
UINT *pFlags); |
| 3356 |
HRESULT GetVideoProcessorCaps( |
| 3357 |
D3D11_VIDEO_PROCESSOR_CAPS *pCaps); |
| 3358 |
HRESULT GetVideoProcessorRateConversionCaps( |
| 3359 |
UINT TypeIndex, |
| 3360 |
D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS *pCaps); |
| 3361 |
HRESULT GetVideoProcessorCustomRate( |
| 3362 |
UINT TypeIndex, |
| 3363 |
UINT CustomRateIndex, |
| 3364 |
D3D11_VIDEO_PROCESSOR_CUSTOM_RATE *pRate); |
| 3365 |
HRESULT GetVideoProcessorFilterRange( |
| 3366 |
D3D11_VIDEO_PROCESSOR_FILTER Filter, |
| 3367 |
D3D11_VIDEO_PROCESSOR_FILTER_RANGE *pRange); |
| 3368 |
} |
| 3369 |
|
| 3370 |
[ |
| 3371 |
object, |
| 3372 |
uuid(1d7b0652-185f-41c6-85ce-0c5be3d4ae6c), |
| 3373 |
local, |
| 3374 |
pointer_default(unique) |
| 3375 |
] |
| 3376 |
interface ID3D11VideoProcessor : ID3D11DeviceChild |
| 3377 |
{ |
| 3378 |
void GetContentDesc( |
| 3379 |
D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pDesc); |
| 3380 |
void GetRateConversionCaps( |
| 3381 |
D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS *pCaps); |
| 3382 |
} |
| 3383 |
|
| 3384 |
[ |
| 3385 |
object, |
| 3386 |
uuid(c2931aea-2a85-4f20-860f-fba1fd256e18), |
| 3387 |
local, |
| 3388 |
pointer_default(unique) |
| 3389 |
] |
| 3390 |
interface ID3D11VideoDecoderOutputView : ID3D11View |
| 3391 |
{ |
| 3392 |
void GetDesc( |
| 3393 |
D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *pDesc); |
| 3394 |
} |
| 3395 |
|
| 3396 |
[ |
| 3397 |
object, |
| 3398 |
uuid(11ec5a5f-51dc-4945-ab34-6e8c21300ea5), |
| 3399 |
local, |
| 3400 |
pointer_default(unique) |
| 3401 |
] |
| 3402 |
interface ID3D11VideoProcessorInputView : ID3D11View |
| 3403 |
{ |
| 3404 |
void GetDesc( |
| 3405 |
D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC *pDesc); |
| 3406 |
} |
| 3407 |
|
| 3408 |
[ |
| 3409 |
object, |
| 3410 |
uuid(a048285e-25a9-4527-bd93-d68b68c44254), |
| 3411 |
local, |
| 3412 |
pointer_default(unique) |
| 3413 |
] |
| 3414 |
interface ID3D11VideoProcessorOutputView : ID3D11View |
| 3415 |
{ |
| 3416 |
void GetDesc( |
| 3417 |
D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC *pDesc); |
| 3418 |
} |
| 3419 |
|
| 3420 |
[ |
| 3421 |
object, |
| 3422 |
uuid(10ec4d5b-975a-4689-b9e4-d0aac30fe333), |
| 3423 |
local, |
| 3424 |
pointer_default(unique) |
| 3425 |
] |
| 3426 |
interface ID3D11VideoDevice : IUnknown |
| 3427 |
{ |
| 3428 |
HRESULT CreateVideoDecoder( |
| 3429 |
const D3D11_VIDEO_DECODER_DESC *pVideoDesc, |
| 3430 |
const D3D11_VIDEO_DECODER_CONFIG *pConfig, |
| 3431 |
ID3D11VideoDecoder **ppDecoder); |
| 3432 |
HRESULT CreateVideoProcessor( |
| 3433 |
ID3D11VideoProcessorEnumerator *pEnum, |
| 3434 |
UINT RateConversionIndex, |
| 3435 |
ID3D11VideoProcessor **ppVideoProcessor); |
| 3436 |
HRESULT CreateAuthenticatedChannel( |
| 3437 |
D3D11_AUTHENTICATED_CHANNEL_TYPE ChannelType, |
| 3438 |
ID3D11AuthenticatedChannel **ppAuthenticatedChannel); |
| 3439 |
HRESULT CreateCryptoSession( |
| 3440 |
const GUID *pCryptoType, |
| 3441 |
const GUID *pDecoderProfile, |
| 3442 |
const GUID *pKeyExchangeType, |
| 3443 |
ID3D11CryptoSession **ppCryptoSession); |
| 3444 |
HRESULT CreateVideoDecoderOutputView( |
| 3445 |
ID3D11Resource *pResource, |
| 3446 |
const D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *pDesc, |
| 3447 |
ID3D11VideoDecoderOutputView **ppVDOVView); |
| 3448 |
HRESULT CreateVideoProcessorInputView( |
| 3449 |
ID3D11Resource *pResource, |
| 3450 |
ID3D11VideoProcessorEnumerator *pEnum, |
| 3451 |
const D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC *pDesc, |
| 3452 |
ID3D11VideoProcessorInputView **ppVPIView); |
| 3453 |
HRESULT CreateVideoProcessorOutputView( |
| 3454 |
ID3D11Resource *pResource, |
| 3455 |
ID3D11VideoProcessorEnumerator *pEnum, |
| 3456 |
const D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC *pDesc, |
| 3457 |
ID3D11VideoProcessorOutputView **ppVPOView); |
| 3458 |
HRESULT CreateVideoProcessorEnumerator( |
| 3459 |
const D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pDesc, |
| 3460 |
ID3D11VideoProcessorEnumerator **ppEnum); |
| 3461 |
UINT GetVideoDecoderProfileCount(); |
| 3462 |
HRESULT GetVideoDecoderProfile( |
| 3463 |
UINT Index, |
| 3464 |
GUID *pDecoderProfile); |
| 3465 |
HRESULT CheckVideoDecoderFormat( |
| 3466 |
const GUID *pDecoderProfile, |
| 3467 |
DXGI_FORMAT Format, |
| 3468 |
BOOL *pSupported); |
| 3469 |
HRESULT GetVideoDecoderConfigCount( |
| 3470 |
const D3D11_VIDEO_DECODER_DESC *pDesc, |
| 3471 |
UINT *pCount); |
| 3472 |
HRESULT GetVideoDecoderConfig( |
| 3473 |
const D3D11_VIDEO_DECODER_DESC *pDesc, |
| 3474 |
UINT Index, |
| 3475 |
D3D11_VIDEO_DECODER_CONFIG *pConfig); |
| 3476 |
HRESULT GetContentProtectionCaps( |
| 3477 |
const GUID *pCryptoType, |
| 3478 |
const GUID *pDecoderProfile, |
| 3479 |
D3D11_VIDEO_CONTENT_PROTECTION_CAPS *pCaps); |
| 3480 |
HRESULT CheckCryptoKeyExchange( |
| 3481 |
const GUID *pCryptoType, |
| 3482 |
const GUID *pDecoderProfile, |
| 3483 |
UINT Index, |
| 3484 |
GUID *pKeyExchangeType); |
| 3485 |
HRESULT SetPrivateData( |
| 3486 |
REFGUID guid, |
| 3487 |
UINT DataSize, |
| 3488 |
const void *pData); |
| 3489 |
HRESULT SetPrivateDataInterface( |
| 3490 |
REFGUID guid, |
| 3491 |
const IUnknown *pData); |
| 3492 |
} |
| 3493 |
|
| 3494 |
[ |
| 3495 |
object, |
| 3496 |
uuid(61f21c45-3c0e-4a74-9cea-67100d9ad5e4), |
| 3497 |
local, |
| 3498 |
pointer_default(unique) |
| 3499 |
] |
| 3500 |
interface ID3D11VideoContext : ID3D11DeviceChild |
| 3501 |
{ |
| 3502 |
HRESULT GetDecoderBuffer( |
| 3503 |
[in] ID3D11VideoDecoder *decoder, |
| 3504 |
[in] D3D11_VIDEO_DECODER_BUFFER_TYPE type, |
| 3505 |
[out] UINT *buffer_size, |
| 3506 |
[out] void **buffer |
| 3507 |
); |
| 3508 |
HRESULT ReleaseDecoderBuffer( |
| 3509 |
[in] ID3D11VideoDecoder *decoder, |
| 3510 |
[in] D3D11_VIDEO_DECODER_BUFFER_TYPE type |
| 3511 |
); |
| 3512 |
HRESULT DecoderBeginFrame( |
| 3513 |
[in] ID3D11VideoDecoder *decoder, |
| 3514 |
[in] ID3D11VideoDecoderOutputView *view, |
| 3515 |
[in] UINT key_size, |
| 3516 |
[in] const void *key |
| 3517 |
); |
| 3518 |
HRESULT DecoderEndFrame( |
| 3519 |
[in] ID3D11VideoDecoder *decoder |
| 3520 |
); |
| 3521 |
HRESULT SubmitDecoderBuffers( |
| 3522 |
[in] ID3D11VideoDecoder *decoder, |
| 3523 |
[in] UINT buffers_count, |
| 3524 |
[in] const D3D11_VIDEO_DECODER_BUFFER_DESC *buffer_desc |
| 3525 |
); |
| 3526 |
HRESULT DecoderExtension( |
| 3527 |
[in] ID3D11VideoDecoder *decoder, |
| 3528 |
[in] const D3D11_VIDEO_DECODER_EXTENSION *extension |
| 3529 |
); |
| 3530 |
void VideoProcessorSetOutputTargetRect( |
| 3531 |
[in] ID3D11VideoProcessor *processor, |
| 3532 |
[in] BOOL enable, |
| 3533 |
[in] const RECT *rect |
| 3534 |
); |
| 3535 |
void VideoProcessorSetOutputBackgroundColor( |
| 3536 |
[in] ID3D11VideoProcessor *processor, |
| 3537 |
[in] BOOL y_cb_cr, |
| 3538 |
[in] const D3D11_VIDEO_COLOR *color |
| 3539 |
); |
| 3540 |
void VideoProcessorSetOutputColorSpace( |
| 3541 |
[in] ID3D11VideoProcessor *processor, |
| 3542 |
[in] const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space |
| 3543 |
); |
| 3544 |
void VideoProcessorSetOutputAlphaFillMode( |
| 3545 |
[in] ID3D11VideoProcessor *processor, |
| 3546 |
[in] D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE alpha_fill_mode, |
| 3547 |
[in] UINT stream_idx |
| 3548 |
); |
| 3549 |
void VideoProcessorSetOutputConstriction( |
| 3550 |
[in] ID3D11VideoProcessor *processor, |
| 3551 |
[in] BOOL enable, |
| 3552 |
[in] SIZE size |
| 3553 |
); |
| 3554 |
void VideoProcessorSetOutputStereoMode( |
| 3555 |
[in] ID3D11VideoProcessor *processor, |
| 3556 |
[in] BOOL enable |
| 3557 |
); |
| 3558 |
HRESULT VideoProcessorSetOutputExtension( |
| 3559 |
[in] ID3D11VideoProcessor *processor, |
| 3560 |
[in] const GUID *guid, |
| 3561 |
[in] UINT data_size, |
| 3562 |
[in] void *data |
| 3563 |
); |
| 3564 |
void VideoProcessorGetOutputTargetRect( |
| 3565 |
[in] ID3D11VideoProcessor *processor, |
| 3566 |
[out] BOOL *enabled, |
| 3567 |
[out] RECT *rect |
| 3568 |
); |
| 3569 |
void VideoProcessorGetOutputBackgroundColor( |
| 3570 |
[in] ID3D11VideoProcessor *processor, |
| 3571 |
[out] BOOL *y_cb_cr, |
| 3572 |
[out] D3D11_VIDEO_COLOR *color |
| 3573 |
); |
| 3574 |
void VideoProcessorGetOutputColorSpace( |
| 3575 |
[in] ID3D11VideoProcessor *processor, |
| 3576 |
[out] D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space |
| 3577 |
); |
| 3578 |
void VideoProcessorGetOutputAlphaFillMode( |
| 3579 |
[in] ID3D11VideoProcessor *processor, |
| 3580 |
[out] D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE *alpha_fill_mode, |
| 3581 |
[out] UINT *stream_idx |
| 3582 |
); |
| 3583 |
void VideoProcessorGetOutputConstriction( |
| 3584 |
[in] ID3D11VideoProcessor *processor, |
| 3585 |
[out] BOOL *enabled, |
| 3586 |
[out] SIZE *size |
| 3587 |
); |
| 3588 |
void VideoProcessorGetOutputStereoMode( |
| 3589 |
[in] ID3D11VideoProcessor *processor, |
| 3590 |
[out] BOOL *enabled |
| 3591 |
); |
| 3592 |
HRESULT VideoProcessorGetOutputExtension( |
| 3593 |
[in] ID3D11VideoProcessor *processor, |
| 3594 |
[in] const GUID *guid, |
| 3595 |
[in] UINT data_size, |
| 3596 |
[out] void *data |
| 3597 |
); |
| 3598 |
void VideoProcessorSetStreamFrameFormat( |
| 3599 |
[in] ID3D11VideoProcessor *processor, |
| 3600 |
[in] UINT stream_idx, |
| 3601 |
[in] D3D11_VIDEO_FRAME_FORMAT format |
| 3602 |
); |
| 3603 |
void VideoProcessorSetStreamColorSpace( |
| 3604 |
[in] ID3D11VideoProcessor *processor, |
| 3605 |
[in] UINT stream_idx, |
| 3606 |
[in] const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space |
| 3607 |
); |
| 3608 |
void VideoProcessorSetStreamOutputRate( |
| 3609 |
[in] ID3D11VideoProcessor *processor, |
| 3610 |
[in] UINT stream_idx, |
| 3611 |
[in] D3D11_VIDEO_PROCESSOR_OUTPUT_RATE rate, |
| 3612 |
[in] BOOL repeat, |
| 3613 |
[in] const DXGI_RATIONAL *custom_rate |
| 3614 |
); |
| 3615 |
void VideoProcessorSetStreamSourceRect( |
| 3616 |
[in] ID3D11VideoProcessor *processor, |
| 3617 |
[in] UINT stream_idx, |
| 3618 |
[in] BOOL enable, |
| 3619 |
[in] const RECT *rect |
| 3620 |
); |
| 3621 |
void VideoProcessorSetStreamDestRect( |
| 3622 |
[in] ID3D11VideoProcessor *processor, |
| 3623 |
[in] UINT stream_idx, |
| 3624 |
[in] BOOL enable, |
| 3625 |
[in] const RECT *rect |
| 3626 |
); |
| 3627 |
void VideoProcessorSetStreamAlpha( |
| 3628 |
[in] ID3D11VideoProcessor *processor, |
| 3629 |
[in] UINT stream_idx, |
| 3630 |
[in] BOOL enable, |
| 3631 |
[in] float alpha |
| 3632 |
); |
| 3633 |
void VideoProcessorSetStreamPalette( |
| 3634 |
[in] ID3D11VideoProcessor *processor, |
| 3635 |
[in] UINT stream_idx, |
| 3636 |
[in] UINT entry_count, |
| 3637 |
[in] const UINT *entries |
| 3638 |
); |
| 3639 |
void VideoProcessorSetStreamPixelAspectRatio( |
| 3640 |
[in] ID3D11VideoProcessor *processor, |
| 3641 |
[in] UINT stream_idx, |
| 3642 |
[in] BOOL enable, |
| 3643 |
[in] const DXGI_RATIONAL *src_aspect_ratio, |
| 3644 |
[in] const DXGI_RATIONAL *dst_aspect_ratio |
| 3645 |
); |
| 3646 |
void VideoProcessorSetStreamLumaKey( |
| 3647 |
[in] ID3D11VideoProcessor *processor, |
| 3648 |
[in] UINT stream_idx, |
| 3649 |
[in] BOOL enable, |
| 3650 |
[in] float lower, |
| 3651 |
[in] float upper |
| 3652 |
); |
| 3653 |
void VideoProcessorSetStreamStereoFormat( |
| 3654 |
[in] ID3D11VideoProcessor *processor, |
| 3655 |
[in] UINT stream_idx, |
| 3656 |
[in] BOOL enable, |
| 3657 |
[in] D3D11_VIDEO_PROCESSOR_STEREO_FORMAT format, |
| 3658 |
[in] BOOL left_view_frame0, |
| 3659 |
[in] BOOL base_view_frame0, |
| 3660 |
[in] D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE flip_mode, |
| 3661 |
[in] int mono_offset |
| 3662 |
); |
| 3663 |
void VideoProcessorSetStreamAutoProcessingMode( |
| 3664 |
[in] ID3D11VideoProcessor *processor, |
| 3665 |
[in] UINT stream_idx, |
| 3666 |
[in] BOOL enable |
| 3667 |
); |
| 3668 |
void VideoProcessorSetStreamFilter( |
| 3669 |
[in] ID3D11VideoProcessor *processor, |
| 3670 |
[in] UINT stream_idx, |
| 3671 |
[in] D3D11_VIDEO_PROCESSOR_FILTER filter, |
| 3672 |
[in] BOOL enable, |
| 3673 |
[in] int level |
| 3674 |
); |
| 3675 |
HRESULT VideoProcessorSetStreamExtension( |
| 3676 |
[in] ID3D11VideoProcessor *processor, |
| 3677 |
[in] UINT stream_idx, |
| 3678 |
[in] const GUID *guid, |
| 3679 |
[in] UINT data_size, |
| 3680 |
[in] void *data |
| 3681 |
); |
| 3682 |
void VideoProcessorGetStreamFrameFormat( |
| 3683 |
[in] ID3D11VideoProcessor *processor, |
| 3684 |
[in] UINT stream_idx, |
| 3685 |
[out] D3D11_VIDEO_FRAME_FORMAT *format |
| 3686 |
); |
| 3687 |
void VideoProcessorGetStreamColorSpace( |
| 3688 |
[in] ID3D11VideoProcessor *processor, |
| 3689 |
[in] UINT stream_idx, |
| 3690 |
[out] D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space |
| 3691 |
); |
| 3692 |
void VideoProcessorGetStreamOutputRate( |
| 3693 |
[in] ID3D11VideoProcessor *processor, |
| 3694 |
[in] UINT stream_idx, |
| 3695 |
[out] D3D11_VIDEO_PROCESSOR_OUTPUT_RATE *rate, |
| 3696 |
[out] BOOL *repeat, |
| 3697 |
[out] DXGI_RATIONAL *custom_rate |
| 3698 |
); |
| 3699 |
void VideoProcessorGetStreamSourceRect( |
| 3700 |
[in] ID3D11VideoProcessor *processor, |
| 3701 |
[in] UINT stream_idx, |
| 3702 |
[out] BOOL *enabled, |
| 3703 |
[out] RECT *rect |
| 3704 |
); |
| 3705 |
void VideoProcessorGetStreamDestRect( |
| 3706 |
[in] ID3D11VideoProcessor *processor, |
| 3707 |
[in] UINT stream_idx, |
| 3708 |
[out] BOOL *enabled, |
| 3709 |
[out] RECT *rect |
| 3710 |
); |
| 3711 |
void VideoProcessorGetStreamAlpha( |
| 3712 |
[in] ID3D11VideoProcessor *processor, |
| 3713 |
[in] UINT stream_idx, |
| 3714 |
[out] BOOL *enabled, |
| 3715 |
[out] float *alpha |
| 3716 |
); |
| 3717 |
void VideoProcessorGetStreamPalette( |
| 3718 |
[in] ID3D11VideoProcessor *processor, |
| 3719 |
[in] UINT stream_idx, |
| 3720 |
[in] UINT entry_count, |
| 3721 |
[out] UINT *entries |
| 3722 |
); |
| 3723 |
void VideoProcessorGetStreamPixelAspectRatio( |
| 3724 |
[in] ID3D11VideoProcessor *processor, |
| 3725 |
[in] UINT stream_idx, |
| 3726 |
[out] BOOL *enabled, |
| 3727 |
[out] DXGI_RATIONAL *src_aspect_ratio, |
| 3728 |
[out] DXGI_RATIONAL *dst_aspect_ratio |
| 3729 |
); |
| 3730 |
void VideoProcessorGetStreamLumaKey( |
| 3731 |
[in] ID3D11VideoProcessor *processor, |
| 3732 |
[in] UINT stream_idx, |
| 3733 |
[out] BOOL *enabled, |
| 3734 |
[out] float *lower, |
| 3735 |
[out] float *upper |
| 3736 |
); |
| 3737 |
void VideoProcessorGetStreamStereoFormat( |
| 3738 |
[in] ID3D11VideoProcessor *processor, |
| 3739 |
[in] UINT stream_idx, |
| 3740 |
[out] BOOL *enabled, |
| 3741 |
[out] D3D11_VIDEO_PROCESSOR_STEREO_FORMAT *format, |
| 3742 |
[out] BOOL *left_view_frame0, |
| 3743 |
[out] BOOL *base_view_frame0, |
| 3744 |
[out] D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE *flip_mode, |
| 3745 |
[out] int *mono_offset |
| 3746 |
); |
| 3747 |
void VideoProcessorGetStreamAutoProcessingMode( |
| 3748 |
[in] ID3D11VideoProcessor *processor, |
| 3749 |
[in] UINT stream_idx, |
| 3750 |
[out] BOOL *enabled |
| 3751 |
); |
| 3752 |
void VideoProcessorGetStreamFilter( |
| 3753 |
[in] ID3D11VideoProcessor *processor, |
| 3754 |
[in] UINT stream_idx, |
| 3755 |
[in] D3D11_VIDEO_PROCESSOR_FILTER filter, |
| 3756 |
[out] BOOL *enabled, |
| 3757 |
[out] int *level |
| 3758 |
); |
| 3759 |
HRESULT VideoProcessorGetStreamExtension( |
| 3760 |
[in] ID3D11VideoProcessor *processor, |
| 3761 |
[in] UINT stream_idx, |
| 3762 |
[in] const GUID *guid, |
| 3763 |
[in] UINT data_size, |
| 3764 |
[out] void *data |
| 3765 |
); |
| 3766 |
HRESULT VideoProcessorBlt( |
| 3767 |
[in] ID3D11VideoProcessor *processor, |
| 3768 |
[in] ID3D11VideoProcessorOutputView *view, |
| 3769 |
[in] UINT frame_idx, |
| 3770 |
[in] UINT stream_count, |
| 3771 |
[in] const D3D11_VIDEO_PROCESSOR_STREAM *streams |
| 3772 |
); |
| 3773 |
HRESULT NegotiateCryptoSessionKeyExchange( |
| 3774 |
[in] ID3D11CryptoSession *session, |
| 3775 |
[in] UINT data_size, |
| 3776 |
[in, out] void *data |
| 3777 |
); |
| 3778 |
void EncryptionBlt( |
| 3779 |
[in] ID3D11CryptoSession *session, |
| 3780 |
[in] ID3D11Texture2D *src_surface, |
| 3781 |
[in] ID3D11Texture2D *dst_surface, |
| 3782 |
[in] UINT iv_size, |
| 3783 |
[in, out] void *iv |
| 3784 |
); |
| 3785 |
void DecryptionBlt( |
| 3786 |
[in] ID3D11CryptoSession *session, |
| 3787 |
[in] ID3D11Texture2D *src_surface, |
| 3788 |
[in] ID3D11Texture2D *dst_surface, |
| 3789 |
[in] D3D11_ENCRYPTED_BLOCK_INFO *block_info, |
| 3790 |
[in] UINT key_size, |
| 3791 |
[in] const void *key, |
| 3792 |
[in] UINT iv_size, |
| 3793 |
[in, out] void *iv |
| 3794 |
); |
| 3795 |
void StartSessionKeyRefresh( |
| 3796 |
[in] ID3D11CryptoSession *session, |
| 3797 |
[in] UINT random_number_size, |
| 3798 |
[out] void *random_number |
| 3799 |
); |
| 3800 |
void FinishSessionKeyRefresh( |
| 3801 |
[in] ID3D11CryptoSession *session |
| 3802 |
); |
| 3803 |
HRESULT GetEncryptionBltKey( |
| 3804 |
[in] ID3D11CryptoSession *session, |
| 3805 |
[in] UINT key_size, |
| 3806 |
[out] void *key |
| 3807 |
); |
| 3808 |
HRESULT NegotiateAuthenticatedChannelKeyExchange( |
| 3809 |
[in] ID3D11AuthenticatedChannel *channel, |
| 3810 |
[in] UINT data_size, |
| 3811 |
[in, out] void *data |
| 3812 |
); |
| 3813 |
HRESULT QueryAuthenticatedChannel( |
| 3814 |
[in] ID3D11AuthenticatedChannel *channel, |
| 3815 |
[in] UINT input_size, |
| 3816 |
[in] const void *input, |
| 3817 |
[in] UINT output_size, |
| 3818 |
[out] void *output |
| 3819 |
); |
| 3820 |
HRESULT ConfigureAuthenticatedChannel( |
| 3821 |
[in] ID3D11AuthenticatedChannel *channel, |
| 3822 |
[in] UINT input_size, |
| 3823 |
[in] const void *input, |
| 3824 |
[out] D3D11_AUTHENTICATED_CONFIGURE_OUTPUT *output |
| 3825 |
); |
| 3826 |
void VideoProcessorSetStreamRotation( |
| 3827 |
[in] ID3D11VideoProcessor *processor, |
| 3828 |
[in] UINT stream_idx, |
| 3829 |
[in] BOOL enable, |
| 3830 |
[in] D3D11_VIDEO_PROCESSOR_ROTATION rotation |
| 3831 |
); |
| 3832 |
void VideoProcessorGetStreamRotation( |
| 3833 |
[in] ID3D11VideoProcessor *processor, |
| 3834 |
[in] UINT stream_idx, |
| 3835 |
[out] BOOL *enable, |
| 3836 |
[out] D3D11_VIDEO_PROCESSOR_ROTATION *rotation |
| 3837 |
); |
| 3838 |
} |
| 3839 |
|
| 3840 |
[ |
| 3841 |
object, |
| 3842 |
local, |
| 3843 |
uuid(db6f6ddb-ac77-4e88-8253-819df9bbf140) |
| 3844 |
] |
| 3845 |
interface ID3D11Device : IUnknown |
| 3846 |
{ |
| 3847 |
HRESULT CreateBuffer( |
| 3848 |
[in] const D3D11_BUFFER_DESC *pDesc, |
| 3849 |
[in] const D3D11_SUBRESOURCE_DATA *pInitialData, |
| 3850 |
[out] ID3D11Buffer **ppBuffer); |
| 3851 |
HRESULT CreateTexture1D( |
| 3852 |
[in] const D3D11_TEXTURE1D_DESC *pDesc, |
| 3853 |
[in] const D3D11_SUBRESOURCE_DATA *pInitialData, |
| 3854 |
[out] ID3D11Texture1D **ppTexture1D); |
| 3855 |
HRESULT CreateTexture2D( |
| 3856 |
[in] const D3D11_TEXTURE2D_DESC *pDesc, |
| 3857 |
[in] const D3D11_SUBRESOURCE_DATA *pInitialData, |
| 3858 |
[out] ID3D11Texture2D **ppTexture2D); |
| 3859 |
HRESULT CreateTexture3D( |
| 3860 |
[in] const D3D11_TEXTURE3D_DESC *pDesc, |
| 3861 |
[in] const D3D11_SUBRESOURCE_DATA *pInitialData, |
| 3862 |
[out] ID3D11Texture3D **ppTexture3D); |
| 3863 |
HRESULT CreateShaderResourceView( |
| 3864 |
[in] ID3D11Resource *pResource, |
| 3865 |
[in] const D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc, |
| 3866 |
[out] ID3D11ShaderResourceView **ppSRView); |
| 3867 |
HRESULT CreateUnorderedAccessView( |
| 3868 |
[in] ID3D11Resource *pResource, |
| 3869 |
[in] const D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc, |
| 3870 |
[out] ID3D11UnorderedAccessView **ppUAView); |
| 3871 |
HRESULT CreateRenderTargetView( |
| 3872 |
[in] ID3D11Resource *pResource, |
| 3873 |
[in] const D3D11_RENDER_TARGET_VIEW_DESC *pDesc, |
| 3874 |
[out] ID3D11RenderTargetView **ppRTView); |
| 3875 |
HRESULT CreateDepthStencilView( |
| 3876 |
[in] ID3D11Resource *pResource, |
| 3877 |
[in] const D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc, |
| 3878 |
[out] ID3D11DepthStencilView **ppDepthStencilView); |
| 3879 |
HRESULT CreateInputLayout( |
| 3880 |
[in] const D3D11_INPUT_ELEMENT_DESC *pInputElementDescs, |
| 3881 |
[in] UINT NumElements, |
| 3882 |
[in] const void *pShaderBytecodeWithInputSignature, |
| 3883 |
[in] SIZE_T BytecodeLength, |
| 3884 |
[out] ID3D11InputLayout **ppInputLayout); |
| 3885 |
HRESULT CreateVertexShader( |
| 3886 |
[in] const void *pShaderBytecode, |
| 3887 |
[in] SIZE_T BytecodeLength, |
| 3888 |
[in] ID3D11ClassLinkage *pClassLinkage, |
| 3889 |
[out] ID3D11VertexShader **ppVertexShader); |
| 3890 |
HRESULT CreateGeometryShader( |
| 3891 |
[in] const void *pShaderBytecode, |
| 3892 |
[in] SIZE_T BytecodeLength, |
| 3893 |
[in] ID3D11ClassLinkage *pClassLinkage, |
| 3894 |
[out] ID3D11GeometryShader **ppGeometryShader); |
| 3895 |
HRESULT CreateGeometryShaderWithStreamOutput( |
| 3896 |
[in] const void *pShaderBytecode, |
| 3897 |
[in] SIZE_T BytecodeLength, |
| 3898 |
[in] const D3D11_SO_DECLARATION_ENTRY *pSODeclaration, |
| 3899 |
[in] UINT NumEntries, |
| 3900 |
[in] const UINT *pBufferStrides, |
| 3901 |
[in] UINT NumStrides, |
| 3902 |
[in] UINT RasterizedStream, |
| 3903 |
[in] ID3D11ClassLinkage *pClassLinkage, |
| 3904 |
[out] ID3D11GeometryShader **ppGeometryShader); |
| 3905 |
HRESULT CreatePixelShader( |
| 3906 |
[in] const void *pShaderBytecode, |
| 3907 |
[in] SIZE_T BytecodeLength, |
| 3908 |
[in] ID3D11ClassLinkage *pClassLinkage, |
| 3909 |
[out] ID3D11PixelShader **ppPixelShader); |
| 3910 |
HRESULT CreateHullShader( |
| 3911 |
[in] const void *pShaderBytecode, |
| 3912 |
[in] SIZE_T BytecodeLength, |
| 3913 |
[in] ID3D11ClassLinkage *pClassLinkage, |
| 3914 |
[out] ID3D11HullShader **ppHullShader); |
| 3915 |
HRESULT CreateDomainShader( |
| 3916 |
[in] const void *pShaderBytecode, |
| 3917 |
[in] SIZE_T BytecodeLength, |
| 3918 |
[in] ID3D11ClassLinkage *pClassLinkage, |
| 3919 |
[out] ID3D11DomainShader **ppDomainShader); |
| 3920 |
HRESULT CreateComputeShader( |
| 3921 |
[in] const void *pShaderBytecode, |
| 3922 |
[in] SIZE_T BytecodeLength, |
| 3923 |
[in] ID3D11ClassLinkage *pClassLinkage, |
| 3924 |
[out] ID3D11ComputeShader **ppComputeShader); |
| 3925 |
HRESULT CreateClassLinkage( |
| 3926 |
[out] ID3D11ClassLinkage **ppLinkage); |
| 3927 |
HRESULT CreateBlendState( |
| 3928 |
[in] const D3D11_BLEND_DESC *pBlendStateDesc, |
| 3929 |
[out] ID3D11BlendState **ppBlendState); |
| 3930 |
HRESULT CreateDepthStencilState( |
| 3931 |
[in] const D3D11_DEPTH_STENCIL_DESC *pDepthStencilDesc, |
| 3932 |
[out] ID3D11DepthStencilState **ppDepthStencilState); |
| 3933 |
HRESULT CreateRasterizerState( |
| 3934 |
[in] const D3D11_RASTERIZER_DESC *pRasterizerDesc, |
| 3935 |
[out] ID3D11RasterizerState **ppRasterizerState); |
| 3936 |
HRESULT CreateSamplerState( |
| 3937 |
[in] const D3D11_SAMPLER_DESC *pSamplerDesc, |
| 3938 |
[out] ID3D11SamplerState **ppSamplerState); |
| 3939 |
HRESULT CreateQuery( |
| 3940 |
[in] const D3D11_QUERY_DESC *pQueryDesc, |
| 3941 |
[out] ID3D11Query **ppQuery); |
| 3942 |
HRESULT CreatePredicate( |
| 3943 |
[in] const D3D11_QUERY_DESC *pPredicateDesc, |
| 3944 |
[out] ID3D11Predicate **ppPredicate); |
| 3945 |
HRESULT CreateCounter( |
| 3946 |
[in] const D3D11_COUNTER_DESC *pCounterDesc, |
| 3947 |
[out] ID3D11Counter **ppCounter); |
| 3948 |
HRESULT CreateDeferredContext( |
| 3949 |
UINT ContextFlags, |
| 3950 |
[out] ID3D11DeviceContext **ppDeferredContext); |
| 3951 |
HRESULT OpenSharedResource( |
| 3952 |
[in] HANDLE hResource, |
| 3953 |
[in] REFIID ReturnedInterface, |
| 3954 |
[out] void **ppResource); |
| 3955 |
HRESULT CheckFormatSupport( |
| 3956 |
[in] DXGI_FORMAT Format, |
| 3957 |
[out] UINT *pFormatSupport); |
| 3958 |
HRESULT CheckMultisampleQualityLevels( |
| 3959 |
[in] DXGI_FORMAT Format, |
| 3960 |
[in] UINT SampleCount, |
| 3961 |
[out] UINT *pNumQualityLevels); |
| 3962 |
void CheckCounterInfo( |
| 3963 |
[out] D3D11_COUNTER_INFO *pCounterInfo); |
| 3964 |
HRESULT CheckCounter( |
| 3965 |
[in] const D3D11_COUNTER_DESC *pDesc, |
| 3966 |
[out] D3D11_COUNTER_TYPE *pType, |
| 3967 |
[out] UINT *pActiveCounters, |
| 3968 |
[out] LPSTR szName, |
| 3969 |
[in, out] UINT *pNameLength, |
| 3970 |
[out] LPSTR szUnits, |
| 3971 |
[in, out] UINT *pUnitsLength, |
| 3972 |
[out] LPSTR szDescription, |
| 3973 |
[in, out] UINT *pDescriptionLength); |
| 3974 |
HRESULT CheckFeatureSupport( |
| 3975 |
D3D11_FEATURE Feature, |
| 3976 |
[out] void *pFeatureSupportData, |
| 3977 |
UINT FeatureSupportDataSize); |
| 3978 |
HRESULT GetPrivateData( |
| 3979 |
[in] REFGUID guid, |
| 3980 |
[in, out] UINT *pDataSize, |
| 3981 |
[out] void *pData); |
| 3982 |
HRESULT SetPrivateData( |
| 3983 |
[in] REFGUID guid, |
| 3984 |
[in] UINT DataSize, |
| 3985 |
[in] const void *pData); |
| 3986 |
HRESULT SetPrivateDataInterface( |
| 3987 |
[in] REFGUID guid, |
| 3988 |
[in] const IUnknown *pData); |
| 3989 |
D3D_FEATURE_LEVEL GetFeatureLevel(); |
| 3990 |
UINT GetCreationFlags(); |
| 3991 |
HRESULT GetDeviceRemovedReason(); |
| 3992 |
void GetImmediateContext( |
| 3993 |
[out] ID3D11DeviceContext **ppImmediateContext); |
| 3994 |
HRESULT SetExceptionMode(UINT RaiseFlags); |
| 3995 |
UINT GetExceptionMode(); |
| 3996 |
} |
| 3997 |
|
| 3998 |
typedef enum D3D11_CREATE_DEVICE_FLAG { |
| 3999 |
D3D11_CREATE_DEVICE_SINGLETHREADED = 0x0001, |
| 4000 |
D3D11_CREATE_DEVICE_DEBUG = 0x0002, |
| 4001 |
D3D11_CREATE_DEVICE_SWITCH_TO_REF = 0x0004, |
| 4002 |
D3D11_CREATE_DEVICE_PREVENT_INTERNAL_THREADING_OPTIMIZATIONS = 0x0008, |
| 4003 |
D3D11_CREATE_DEVICE_BGRA_SUPPORT = 0x0020, |
| 4004 |
D3D11_CREATE_DEVICE_DEBUGGABLE = 0x0040, |
| 4005 |
D3D11_CREATE_DEVICE_PREVENT_ALTERING_LAYER_SETTINGS_FROM_REGISTRY = 0x0080, |
| 4006 |
D3D11_CREATE_DEVICE_DISABLE_GPU_TIMEOUT = 0x0100, |
| 4007 |
D3D11_CREATE_DEVICE_VIDEO_SUPPORT = 0x0800 |
| 4008 |
} D3D11_CREATE_DEVICE_FLAG; |
| 4009 |
|
| 4010 |
typedef enum D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT |
| 4011 |
{ |
| 4012 |
D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT_INPUT = 0x0001, |
| 4013 |
D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT_OUTPUT = 0x0002, |
| 4014 |
} D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT; |
| 4015 |
|
| 4016 |
const UINT D3D11_SDK_VERSION = 7; |
| 4017 |
|
| 4018 |
cpp_quote("#include <d3d10_1.h>") |
| 4019 |
cpp_quote("#ifndef D3D11_IGNORE_SDK_LAYERS") |
| 4020 |
cpp_quote("# include <d3d11sdklayers.h>") |
| 4021 |
cpp_quote("#endif") |
| 4022 |
cpp_quote("#include <d3d10misc.h>") |
| 4023 |
cpp_quote("#include <d3d10shader.h>") |
| 4024 |
cpp_quote("#include <d3d10effect.h>") |
| 4025 |
cpp_quote("#include <d3d10_1shader.h>") |
| 4026 |
|
| 4027 |
const UINT _FACD3D11 = 0x87c; |
| 4028 |
cpp_quote("#define MAKE_D3D11_HRESULT(code) MAKE_HRESULT(SEVERITY_ERROR, _FACD3D11, code)") |
| 4029 |
|
| 4030 |
cpp_quote("typedef HRESULT (WINAPI* PFN_D3D11_CREATE_DEVICE)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,") |
| 4031 |
cpp_quote(" const D3D_FEATURE_LEVEL*,UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);") |
| 4032 |
|
| 4033 |
cpp_quote("HRESULT WINAPI D3D11CreateDevice(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,const D3D_FEATURE_LEVEL*," ) |
| 4034 |
cpp_quote(" UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);") |
| 4035 |
|
| 4036 |
cpp_quote("typedef HRESULT (WINAPI *PFN_D3D11_CREATE_DEVICE_AND_SWAP_CHAIN)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,") |
| 4037 |
cpp_quote(" const D3D_FEATURE_LEVEL*,UINT,UINT,const DXGI_SWAP_CHAIN_DESC*,IDXGISwapChain**,ID3D11Device**,") |
| 4038 |
cpp_quote(" D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);") |
| 4039 |
|
| 4040 |
[local] HRESULT __stdcall D3D11CreateDeviceAndSwapChain(IDXGIAdapter *adapter, D3D_DRIVER_TYPE driver_type, |
| 4041 |
HMODULE swrast, UINT flags, const D3D_FEATURE_LEVEL *feature_levels, UINT levels, UINT sdk_version, |
| 4042 |
const DXGI_SWAP_CHAIN_DESC *swapchain_desc, IDXGISwapChain **swapchain, ID3D11Device **device, |
| 4043 |
D3D_FEATURE_LEVEL *obtained_feature_level, ID3D11DeviceContext **immediate_context); |