From 88ca2e699403537b8386a764ac0d04bf56e04b9f Mon Sep 17 00:00:00 2001 From: Amer Koleci Date: Thu, 22 Sep 2022 12:21:25 +0200 Subject: [PATCH] Fxc bindings support. --- src/Generator/Program.cs | 82 ++++- .../Generated/Graphics/Direct2D.Common.cs | 5 - .../Generated/Graphics/Direct2D.cs | 50 --- .../Generated/Graphics/Direct3D.Dxc.cs | 7 - .../Generated/Graphics/Direct3D.Fxc.cs | 316 ++++++++++++++++++ .../Generated/Graphics/Direct3D.cs | 2 - .../Generated/Graphics/Direct3D11.cs | 208 +----------- .../Generated/Graphics/Direct3D12.cs | 247 -------------- .../Generated/Graphics/DirectWrite.cs | 44 +-- .../Generated/Graphics/Dxgi.Common.cs | 11 - src/Vortice.Win32/Generated/Graphics/Dxgi.cs | 32 -- .../Generated/Graphics/Graphics.cs | 1 - .../Generated/Graphics/Imaging.cs | 15 - src/Vortice.Win32/Graphics/Fxc/Apis.cs | 147 ++++++++ .../Graphics/Fxc/FxcCompilationException.cs | 40 +++ src/Vortice.Win32/NetStandard.cs | 39 ++- src/Vortice.Win32/StringUtilities.cs | 18 +- src/Vortice.Win32/Vortice.Win32.csproj | 2 +- 18 files changed, 616 insertions(+), 650 deletions(-) create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D.Fxc.cs create mode 100644 src/Vortice.Win32/Graphics/Fxc/Apis.cs create mode 100644 src/Vortice.Win32/Graphics/Fxc/FxcCompilationException.cs diff --git a/src/Generator/Program.cs b/src/Generator/Program.cs index 4c1773e..b0eb225 100644 --- a/src/Generator/Program.cs +++ b/src/Generator/Program.cs @@ -22,6 +22,7 @@ public static class Program "Graphics.Direct3D11.json", "Graphics.Direct3D12.json", "Graphics.Direct3D.Dxc.json", + "Graphics.Direct3D.Fxc.json", "Graphics.Direct2D.Common.json", "Graphics.Imaging.json", "Graphics.DirectWrite.json", @@ -701,6 +702,7 @@ public static class Program "DWRITE", "HDR", "DC", + "XNA", }; @@ -768,6 +770,10 @@ public static class Program { "WICComponentSigning", "WICComponent" }, { "WICPixelFormatNumericRepresentation", "WICPixelFormatNumericRepresentation" }, { "WICPlanarOptions", "WICPlanarOptions" }, + + // FXC + { "D3DCOMPILER_STRIP_FLAGS", "D3DCOMPILER_STRIP" }, + { "D3D_BLOB_PART", "D3D_BLOB" }, }; private static readonly Dictionary s_knownEnumValueNames = new() @@ -813,6 +819,14 @@ public static class Program {"DXC_HASHFLAG", true }, {"DxcValidatorFlags", true }, {"DxcVersionInfoFlags", true }, + + // FXC + {"D3DCOMPILE_EFFECT", true }, + {"D3DCOMPILE", true }, + {"D3DCOMPILE_FLAGS2", true }, + {"D3DCOMPILE_SECDATA", true }, + {"D3D_COMPRESS_SHADER", true }, + {"D3D_DISASM", true }, }; private static readonly HashSet s_ignoredStartParts = new(StringComparer.OrdinalIgnoreCase) @@ -825,6 +839,7 @@ public static class Program "D2D", "D2D1", "DWRITE", + "D3DCOMPILER", }; private static readonly HashSet s_ignoredParts = new(StringComparer.OrdinalIgnoreCase) @@ -873,6 +888,14 @@ public static class Program { "DXC_HASHFLAG", "DxcHashFlags" }, { "DxcValidatorFlags", "DxcValidatorFlags" }, { "DxcVersionInfoFlags", "DxcVersionInfoFlags" }, + + // FXC + {"D3DCOMPILE", "CompileFlags" }, + {"D3DCOMPILE_FLAGS2", "CompileFlags2" }, + {"D3DCOMPILE_EFFECT", "CompileEffectFlags" }, + {"D3DCOMPILE_SECDATA", "CompileSecondaryFlags" }, + {"D3D_COMPRESS_SHADER", "CompressShaderFlags" }, + {"D3D_DISASM", "DisasmFlags" }, }; private static readonly Dictionary s_structFieldTypeRemap = new() @@ -953,6 +976,13 @@ public static class Program // WIC { "IWICImagingFactory::CreateDecoderFromFilename::dwDesiredAccess", "NativeFileAccess" }, { "IWICBitmap::Lock::flags", "WICBitmapLockFlags" }, + + // FXC + { "D3DCompile::Flags1", "D3DCOMPILE" }, + { "D3DCompile2::Flags1", "D3DCOMPILE" }, + { "D3DCompileFromFile::Flags1", "D3DCOMPILE" }, + { "D3DCompressShaders::uFlags", "D3D_COMPRESS_SHADER" }, + { "D3DDisassemble::Flags", "D3D_DISASM" }, }; private static readonly HashSet s_visitedEnums = new(); @@ -1108,6 +1138,7 @@ public static class Program private static void GenerateTypes(CodeWriter writer, ApiData api) { bool regionWritten = false; + bool needNewLine = false; foreach (ApiType enumType in api.Types.Where(item => item.Kind.ToLowerInvariant() == "enum")) { if (enumType.Name.StartsWith("D3DX11")) @@ -1121,7 +1152,13 @@ public static class Program regionWritten = true; } + if (needNewLine) + { + writer.WriteLine(); + } + GenerateEnum(writer, enumType, false); + needNewLine = true; s_visitedEnums.Add($"{writer.Api}.{enumType.Name}"); } @@ -1134,6 +1171,7 @@ public static class Program // Generated enums -> from constants regionWritten = false; + needNewLine = false; Dictionary createdEnums = new(); foreach (ApiDataConstant constant in api.Constants) @@ -1185,7 +1223,13 @@ public static class Program regionWritten = true; } + if (needNewLine) + { + writer.WriteLine(); + } + GenerateEnum(writer, enumType, true); + needNewLine = true; } if (regionWritten) @@ -1196,6 +1240,7 @@ public static class Program // Unions regionWritten = false; + needNewLine = true; foreach (ApiType structType in api.Types.Where(item => item.Kind.ToLowerInvariant() == "union")) { @@ -1216,7 +1261,13 @@ public static class Program regionWritten = true; } + if (needNewLine) + { + writer.WriteLine(); + } + GenerateStruct(api, writer, structType); + needNewLine = true; s_visitedStructs.Add($"{writer.Api}.{structType.Name}"); } @@ -1374,16 +1425,23 @@ public static class Program writer.WriteLine($"#region Functions"); using (writer.PushBlock($"public static unsafe partial class Apis")) { + bool needNewLine = false; foreach (ApiType function in api.Functions) { if (function.Name.StartsWith("D3DX11") || - function.Name == "D3DDisassemble11Trace") + function.Name == "D3DDisassemble11Trace" || + function.Name == "D3DDisassemble10Effect") { continue; } + if (needNewLine) + { + writer.WriteLine(); + } + WriteFunction(writer, api, function, string.Empty, false, false, true); - writer.WriteLine(); + needNewLine = true; } } @@ -1416,7 +1474,7 @@ public static class Program foreach (ApiParameter parameter in function.Params) { GetParameterSignature(api, writer, parameter, - string.Empty, + function.Name, out string parameterType, out string parameterName); @@ -1546,11 +1604,6 @@ public static class Program baseTypeName = "byte"; } - if (enumType.Name == "WICColorContextType") - { - - } - using (writer.PushBlock($"public enum {csTypeName} : {baseTypeName}")) { if (isFlags && @@ -1585,6 +1638,15 @@ public static class Program continue; } + if (autoGenerated && + enumType.Name == "D3DCOMPILE" && + (enumItem.Name.StartsWith("D3DCOMPILE_EFFECT_") || + enumItem.Name.StartsWith("D3DCOMPILE_FLAGS2_") || + enumItem.Name.StartsWith("D3DCOMPILE_SECDATA_"))) + { + continue; + } + string enumValueName = GetEnumItemName(enumType, enumItem, enumPrefix, skipPrettify); if (!autoGenerated) @@ -1605,8 +1667,6 @@ public static class Program writer.WriteLine($"{enumValueName} = {enumItem.Value},"); } } - - writer.WriteLine(); } private static string GetEnumItemName(ApiType enumType, ApiEnumValue enumItem, string enumPrefix, bool skipPrettify) @@ -1883,8 +1943,6 @@ public static class Program } } } - - writer.WriteLine(); } private static void GenerateComType( diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D.Common.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D.Common.cs index 3c84aa5..3f5c133 100644 --- a/src/Vortice.Win32/Generated/Graphics/Direct2D.Common.cs +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D.Common.cs @@ -248,7 +248,6 @@ public enum CompositeMode : uint /// D2D1_COMPOSITE_MODE_MASK_INVERT MaskInvert = 12, } - #endregion Enums #region Structs @@ -262,7 +261,6 @@ public partial struct PixelFormat /// public AlphaMode alphaMode; } - /// /// D2D_RECT_F public partial struct RectF @@ -279,7 +277,6 @@ public partial struct RectF /// public float bottom; } - /// /// D2D_RECT_U public partial struct RectU @@ -296,7 +293,6 @@ public partial struct RectU /// public uint bottom; } - /// /// D2D1_BEZIER_SEGMENT public partial struct BezierSegment @@ -310,7 +306,6 @@ public partial struct BezierSegment /// public System.Drawing.PointF point3; } - #endregion Structs #region COM Types diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D.cs index c28b248..174c356 100644 --- a/src/Vortice.Win32/Generated/Graphics/Direct2D.cs +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D.cs @@ -4627,7 +4627,6 @@ public enum ColorContextType : uint /// D2D1_COLOR_CONTEXT_TYPE_DXGI DXGI = 2, } - #endregion Enums #region Structs @@ -4644,7 +4643,6 @@ public partial struct BitmapProperties /// public float dpiY; } - /// /// D2D1_GRADIENT_STOP public partial struct GradientStop @@ -4655,7 +4653,6 @@ public partial struct GradientStop /// public Color4 color; } - /// /// D2D1_BRUSH_PROPERTIES public partial struct BrushProperties @@ -4666,7 +4663,6 @@ public partial struct BrushProperties /// public Matrix3x2 transform; } - /// /// D2D1_BITMAP_BRUSH_PROPERTIES public partial struct BitmapBrushProperties @@ -4680,7 +4676,6 @@ public partial struct BitmapBrushProperties /// public BitmapInterpolationMode interpolationMode; } - /// /// D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES public partial struct LinearGradientBrushProperties @@ -4691,7 +4686,6 @@ public partial struct LinearGradientBrushProperties /// public System.Drawing.PointF endPoint; } - /// /// D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES public partial struct RadialGradientBrushProperties @@ -4708,7 +4702,6 @@ public partial struct RadialGradientBrushProperties /// public float radiusY; } - /// /// D2D1_TRIANGLE public partial struct Triangle @@ -4722,7 +4715,6 @@ public partial struct Triangle /// public System.Drawing.PointF point3; } - /// /// D2D1_ARC_SEGMENT public partial struct ArcSegment @@ -4742,7 +4734,6 @@ public partial struct ArcSegment /// public ArcSize arcSize; } - /// /// D2D1_QUADRATIC_BEZIER_SEGMENT public partial struct QuadraticBezierSegment @@ -4753,7 +4744,6 @@ public partial struct QuadraticBezierSegment /// public System.Drawing.PointF point2; } - /// /// D2D1_ELLIPSE public partial struct Ellipse @@ -4767,7 +4757,6 @@ public partial struct Ellipse /// public float radiusY; } - /// /// D2D1_ROUNDED_RECT public partial struct RoundedRect @@ -4781,7 +4770,6 @@ public partial struct RoundedRect /// public float radiusY; } - /// /// D2D1_STROKE_STYLE_PROPERTIES public partial struct StrokeStyleProperties @@ -4807,7 +4795,6 @@ public partial struct StrokeStyleProperties /// public float dashOffset; } - /// /// D2D1_LAYER_PARAMETERS public partial struct LayerParameters @@ -4833,7 +4820,6 @@ public partial struct LayerParameters /// public LayerOptions layerOptions; } - /// /// D2D1_RENDER_TARGET_PROPERTIES public partial struct RenderTargetProperties @@ -4856,7 +4842,6 @@ public partial struct RenderTargetProperties /// public FeatureLevel minLevel; } - /// /// D2D1_HWND_RENDER_TARGET_PROPERTIES public partial struct HwndRenderTargetProperties @@ -4870,7 +4855,6 @@ public partial struct HwndRenderTargetProperties /// public PresentOptions presentOptions; } - /// /// D2D1_DRAWING_STATE_DESCRIPTION public partial struct DrawingStateDescription @@ -4890,7 +4874,6 @@ public partial struct DrawingStateDescription /// public Matrix3x2 transform; } - /// /// D2D1_FACTORY_OPTIONS public partial struct FactoryOptions @@ -4898,7 +4881,6 @@ public partial struct FactoryOptions /// public DebugLevel debugLevel; } - /// /// D2D1_BITMAP_PROPERTIES1 public partial struct BitmapProperties1 @@ -4918,7 +4900,6 @@ public partial struct BitmapProperties1 /// public unsafe ID2D1ColorContext* colorContext; } - /// /// D2D1_MAPPED_RECT public partial struct MappedRect @@ -4929,7 +4910,6 @@ public partial struct MappedRect /// public unsafe byte* bits; } - /// /// D2D1_RENDERING_CONTROLS public partial struct RenderingControls @@ -4940,7 +4920,6 @@ public partial struct RenderingControls /// public System.Drawing.Size tileSize; } - /// /// D2D1_EFFECT_INPUT_DESCRIPTION public partial struct EffectInputDescription @@ -4954,7 +4933,6 @@ public partial struct EffectInputDescription /// public Common.RectF inputRectangle; } - /// /// D2D1_POINT_DESCRIPTION public partial struct PointDescription @@ -4974,7 +4952,6 @@ public partial struct PointDescription /// public float lengthToEndSegment; } - /// /// D2D1_IMAGE_BRUSH_PROPERTIES public partial struct ImageBrushProperties @@ -4991,7 +4968,6 @@ public partial struct ImageBrushProperties /// public InterpolationMode interpolationMode; } - /// /// D2D1_BITMAP_BRUSH_PROPERTIES1 public partial struct BitmapBrushProperties1 @@ -5005,7 +4981,6 @@ public partial struct BitmapBrushProperties1 /// public InterpolationMode interpolationMode; } - /// /// D2D1_STROKE_STYLE_PROPERTIES1 public partial struct StrokeStyleProperties1 @@ -5034,7 +5009,6 @@ public partial struct StrokeStyleProperties1 /// public StrokeTransformType transformType; } - /// /// D2D1_LAYER_PARAMETERS1 public partial struct LayerParameters1 @@ -5060,7 +5034,6 @@ public partial struct LayerParameters1 /// public LayerOptions1 layerOptions; } - /// /// D2D1_DRAWING_STATE_DESCRIPTION1 public partial struct DrawingStateDescription1 @@ -5086,7 +5059,6 @@ public partial struct DrawingStateDescription1 /// public UnitMode unitMode; } - /// /// D2D1_PRINT_CONTROL_PROPERTIES public partial struct PrintControlProperties @@ -5100,7 +5072,6 @@ public partial struct PrintControlProperties /// public ColorSpace colorSpace; } - /// /// D2D1_CREATION_PROPERTIES public partial struct CreationProperties @@ -5114,7 +5085,6 @@ public partial struct CreationProperties /// public DeviceContextOptions options; } - /// /// D2D1_PROPERTY_BINDING public partial struct PropertyBinding @@ -5128,7 +5098,6 @@ public partial struct PropertyBinding /// public unsafe delegate* unmanaged[Stdcall] getFunction; } - /// /// D2D1_RESOURCE_TEXTURE_PROPERTIES public partial struct ResourceTextureProperties @@ -5151,7 +5120,6 @@ public partial struct ResourceTextureProperties /// public unsafe ExtendMode* extendModes; } - /// /// D2D1_INPUT_ELEMENT_DESC public partial struct InputElementDescription @@ -5171,7 +5139,6 @@ public partial struct InputElementDescription /// public uint alignedByteOffset; } - /// /// D2D1_VERTEX_BUFFER_PROPERTIES public partial struct VertexBufferProperties @@ -5188,7 +5155,6 @@ public partial struct VertexBufferProperties /// public uint byteWidth; } - /// /// D2D1_CUSTOM_VERTEX_BUFFER_PROPERTIES public partial struct CustomVertexBufferProperties @@ -5208,7 +5174,6 @@ public partial struct CustomVertexBufferProperties /// public uint stride; } - /// /// D2D1_VERTEX_RANGE public partial struct VertexRange @@ -5219,7 +5184,6 @@ public partial struct VertexRange /// public uint vertexCount; } - /// /// D2D1_BLEND_DESCRIPTION public partial struct BlendDescription @@ -5245,7 +5209,6 @@ public partial struct BlendDescription /// public unsafe fixed float blendFactor[4]; } - /// /// D2D1_INPUT_DESCRIPTION public partial struct InputDescription @@ -5256,7 +5219,6 @@ public partial struct InputDescription /// public uint levelOfDetailCount; } - /// /// D2D1_FEATURE_DATA_DOUBLES public partial struct FeatureDataDoubles @@ -5264,7 +5226,6 @@ public partial struct FeatureDataDoubles /// public Bool32 doublePrecisionFloatShaderOps; } - /// /// D2D1_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS public partial struct FeatureDataD3D10XHardwareOptions @@ -5272,7 +5233,6 @@ public partial struct FeatureDataD3D10XHardwareOptions /// public Bool32 computeShaders_Plus_RawAndStructuredBuffers_Via_Shader_4_x; } - /// /// D2D1_SVG_LENGTH public partial struct SvgLength @@ -5283,7 +5243,6 @@ public partial struct SvgLength /// public SvgLengthUnits units; } - /// /// D2D1_SVG_PRESERVE_ASPECT_RATIO public partial struct SvgPreserveAspectRatio @@ -5297,7 +5256,6 @@ public partial struct SvgPreserveAspectRatio /// public SvgAspectScaling meetOrSlice; } - /// /// D2D1_SVG_VIEWBOX public partial struct SvgViewbox @@ -5314,7 +5272,6 @@ public partial struct SvgViewbox /// public float height; } - /// /// D2D1_TRANSFORMED_IMAGE_SOURCE_PROPERTIES public partial struct TransformedImageSourceProperties @@ -5334,7 +5291,6 @@ public partial struct TransformedImageSourceProperties /// public TransformedImageSourceOptions options; } - /// /// D2D1_INK_POINT public partial struct InkPoint @@ -5348,7 +5304,6 @@ public partial struct InkPoint /// public float radius; } - /// /// D2D1_INK_BEZIER_SEGMENT public partial struct InkBezierSegment @@ -5362,7 +5317,6 @@ public partial struct InkBezierSegment /// public InkPoint point3; } - /// /// D2D1_INK_STYLE_PROPERTIES public partial struct InkStyleProperties @@ -5373,7 +5327,6 @@ public partial struct InkStyleProperties /// public Matrix3x2 nibTransform; } - /// /// D2D1_GRADIENT_MESH_PATCH public partial struct GradientMeshPatch @@ -5450,7 +5403,6 @@ public partial struct GradientMeshPatch /// public PatchEdgeMode rightEdgeMode; } - /// /// D2D1_SIMPLE_COLOR_PROFILE public partial struct SimpleColorProfile @@ -5470,7 +5422,6 @@ public partial struct SimpleColorProfile /// public Gamma1 gamma; } - #endregion Structs #region COM Types @@ -5517,6 +5468,5 @@ public static unsafe partial class Apis [DllImport("d2d1", ExactSpelling = true)] public static extern void D2D1GetGradientMeshInteriorPointsFromCoonsPatch(System.Drawing.PointF* pPoint0, System.Drawing.PointF* pPoint1, System.Drawing.PointF* pPoint2, System.Drawing.PointF* pPoint3, System.Drawing.PointF* pPoint4, System.Drawing.PointF* pPoint5, System.Drawing.PointF* pPoint6, System.Drawing.PointF* pPoint7, System.Drawing.PointF* pPoint8, System.Drawing.PointF* pPoint9, System.Drawing.PointF* pPoint10, System.Drawing.PointF* pPoint11, System.Drawing.PointF* pTensorPoint11, System.Drawing.PointF* pTensorPoint12, System.Drawing.PointF* pTensorPoint21, System.Drawing.PointF* pTensorPoint22); - } #endregion Functions diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D.Dxc.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D.Dxc.cs index 34d0702..a1506df 100644 --- a/src/Vortice.Win32/Generated/Graphics/Direct3D.Dxc.cs +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D.Dxc.cs @@ -331,7 +331,6 @@ public enum DxcOutKind : int /// DXC_OUT_EXTRA_OUTPUTS ExtraOutputs = 10, } - #endregion Enums #region Generated Enums @@ -372,7 +371,6 @@ public enum DxcVersionInfoFlags : uint /// DxcVersionInfoFlags_Internal Internal = 2, } - #endregion Generated Enums #region Structs @@ -386,7 +384,6 @@ public partial struct DxcShaderHash /// public unsafe fixed byte HashDigest[16]; } - /// /// DxcBuffer public partial struct DxcBuffer @@ -400,7 +397,6 @@ public partial struct DxcBuffer /// public uint Encoding; } - /// /// DxcDefine public partial struct DxcDefine @@ -411,7 +407,6 @@ public partial struct DxcDefine /// public unsafe ushort* Value; } - /// /// DxcArgPair public partial struct DxcArgPair @@ -422,7 +417,6 @@ public partial struct DxcArgPair /// public unsafe ushort* pValue; } - #endregion Structs #region COM Types @@ -436,6 +430,5 @@ public static unsafe partial class Apis [DllImport("dxcompiler", ExactSpelling = true)] public static extern HResult DxcCreateInstance2(Com.IMalloc* pMalloc, Guid* rclsid, Guid* riid, void** ppv); - } #endregion Functions diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D.Fxc.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D.Fxc.cs new file mode 100644 index 0000000..23eb1ea --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D.Fxc.cs @@ -0,0 +1,316 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +namespace Win32.Graphics.Direct3D.Fxc; + +public static partial class Apis +{ + public const uint D3D_COMPILER_VERSION = 47; + public const uint D3D_GET_INST_OFFSETS_INCLUDE_NON_EXECUTABLE = 1; +} + +#region Enums +/// +/// D3DCOMPILER_STRIP_FLAGS +[Flags] +public enum StripFlags : int +{ + None = 0, + /// + /// D3DCOMPILER_STRIP_REFLECTION_DATA + ReflectionData = 1, + /// + /// D3DCOMPILER_STRIP_DEBUG_INFO + DebugInfo = 2, + /// + /// D3DCOMPILER_STRIP_TEST_BLOBS + TestBlobs = 4, + /// + /// D3DCOMPILER_STRIP_PRIVATE_DATA + PrivateData = 8, + /// + /// D3DCOMPILER_STRIP_ROOT_SIGNATURE + RootSignature = 16, +} + +/// +/// D3D_BLOB_PART +public enum BlobPart : int +{ + /// + /// D3D_BLOB_INPUT_SIGNATURE_BLOB + InputSignatureBlob = 0, + /// + /// D3D_BLOB_OUTPUT_SIGNATURE_BLOB + OutputSignatureBlob = 1, + /// + /// D3D_BLOB_INPUT_AND_OUTPUT_SIGNATURE_BLOB + InputAndOutputSignatureBlob = 2, + /// + /// D3D_BLOB_PATCH_CONSTANT_SIGNATURE_BLOB + PatchConstantSignatureBlob = 3, + /// + /// D3D_BLOB_ALL_SIGNATURE_BLOB + AllSignatureBlob = 4, + /// + /// D3D_BLOB_DEBUG_INFO + DebugInfo = 5, + /// + /// D3D_BLOB_LEGACY_SHADER + LegacyShader = 6, + /// + /// D3D_BLOB_XNA_PREPASS_SHADER + XNAPrepassShader = 7, + /// + /// D3D_BLOB_XNA_SHADER + XNAShader = 8, + /// + /// D3D_BLOB_PDB + Pdb = 9, + /// + /// D3D_BLOB_PRIVATE_DATA + PrivateData = 10, + /// + /// D3D_BLOB_ROOT_SIGNATURE + RootSignature = 11, + /// + /// D3D_BLOB_DEBUG_NAME + DebugName = 12, + /// + /// D3D_BLOB_TEST_ALTERNATE_SHADER + TestAlternateShader = 32768, + /// + /// D3D_BLOB_TEST_COMPILE_DETAILS + TestCompileDetails = 32769, + /// + /// D3D_BLOB_TEST_COMPILE_PERF + TestCompilePerf = 32770, + /// + /// D3D_BLOB_TEST_COMPILE_REPORT + TestCompileReport = 32771, +} +#endregion Enums + +#region Generated Enums +/// D3DCOMPILE +[Flags] +public enum CompileFlags : uint +{ + None = 0, + /// D3DCOMPILE_DEBUG + Debug = 1, + /// D3DCOMPILE_SKIP_VALIDATION + SkipValidation = 2, + /// D3DCOMPILE_SKIP_OPTIMIZATION + SkipOptimization = 4, + /// D3DCOMPILE_PACK_MATRIX_ROW_MAJOR + PackMatrixRowMajor = 8, + /// D3DCOMPILE_PACK_MATRIX_COLUMN_MAJOR + PackMatrixColumnMajor = 16, + /// D3DCOMPILE_PARTIAL_PRECISION + PartialPrecision = 32, + /// D3DCOMPILE_FORCE_VS_SOFTWARE_NO_OPT + ForceVSSoftwareNoOpt = 64, + /// D3DCOMPILE_FORCE_PS_SOFTWARE_NO_OPT + ForcePSSoftwareNoOpt = 128, + /// D3DCOMPILE_NO_PRESHADER + NoPreshader = 256, + /// D3DCOMPILE_AVOID_FLOW_CONTROL + AvoidFlowControl = 512, + /// D3DCOMPILE_PREFER_FLOW_CONTROL + PreferFlowControl = 1024, + /// D3DCOMPILE_ENABLE_STRICTNESS + EnableStrictness = 2048, + /// D3DCOMPILE_ENABLE_BACKWARDS_COMPATIBILITY + EnableBackwardsCompatibility = 4096, + /// D3DCOMPILE_IEEE_STRICTNESS + IeeeStrictness = 8192, + /// D3DCOMPILE_OPTIMIZATION_LEVEL0 + OptimizationLevel0 = 16384, + /// D3DCOMPILE_OPTIMIZATION_LEVEL1 + OptimizationLevel1 = 0, + /// D3DCOMPILE_OPTIMIZATION_LEVEL3 + OptimizationLevel3 = 32768, + /// D3DCOMPILE_RESERVED16 + Reserved16 = 65536, + /// D3DCOMPILE_RESERVED17 + Reserved17 = 131072, + /// D3DCOMPILE_WARNINGS_ARE_ERRORS + WarningsAreErrors = 262144, + /// D3DCOMPILE_RESOURCES_MAY_ALIAS + ResourcesMayAlias = 524288, + /// D3DCOMPILE_ENABLE_UNBOUNDED_DESCRIPTOR_TABLES + EnableUnboundedDescriptorTables = 1048576, + /// D3DCOMPILE_ALL_RESOURCES_BOUND + AllResourcesBound = 2097152, + /// D3DCOMPILE_DEBUG_NAME_FOR_SOURCE + DebugNameForSource = 4194304, + /// D3DCOMPILE_DEBUG_NAME_FOR_BINARY + DebugNameForBinary = 8388608, +} + +/// D3DCOMPILE_EFFECT +[Flags] +public enum CompileEffectFlags : uint +{ + None = 0, + /// D3DCOMPILE_EFFECT_CHILD_EFFECT + ChildEffect = 1, + /// D3DCOMPILE_EFFECT_ALLOW_SLOW_OPS + AllowSlowOps = 2, +} + +/// D3DCOMPILE_FLAGS2 +[Flags] +public enum CompileFlags2 : uint +{ + None = 0, + /// D3DCOMPILE_FLAGS2_FORCE_ROOT_SIGNATURE_LATEST + ForceRootSignatureLatest = 0, + /// D3DCOMPILE_FLAGS2_FORCE_ROOT_SIGNATURE_1_0 + ForceRootSignature10 = 16, + /// D3DCOMPILE_FLAGS2_FORCE_ROOT_SIGNATURE_1_1 + ForceRootSignature11 = 32, +} + +/// D3DCOMPILE_SECDATA +[Flags] +public enum CompileSecondaryFlags : uint +{ + None = 0, + /// D3DCOMPILE_SECDATA_MERGE_UAV_SLOTS + MergeUavSlots = 1, + /// D3DCOMPILE_SECDATA_PRESERVE_TEMPLATE_SLOTS + PreserveTemplateSlots = 2, + /// D3DCOMPILE_SECDATA_REQUIRE_TEMPLATE_MATCH + RequireTemplateMatch = 4, +} + +/// D3D_DISASM +[Flags] +public enum DisasmFlags : uint +{ + None = 0, + /// D3D_DISASM_ENABLE_COLOR_CODE + EnableColorCode = 1, + /// D3D_DISASM_ENABLE_DEFAULT_VALUE_PRINTS + EnableDefaultValuePrints = 2, + /// D3D_DISASM_ENABLE_INSTRUCTION_NUMBERING + EnableInstructionNumbering = 4, + /// D3D_DISASM_ENABLE_INSTRUCTION_CYCLE + EnableInstructionCycle = 8, + /// D3D_DISASM_DISABLE_DEBUG_INFO + DisableDebugInfo = 16, + /// D3D_DISASM_ENABLE_INSTRUCTION_OFFSET + EnableInstructionOffset = 32, + /// D3D_DISASM_INSTRUCTION_ONLY + InstructionOnly = 64, + /// D3D_DISASM_PRINT_HEX_LITERALS + PrintHexLiterals = 128, +} + +/// D3D_COMPRESS_SHADER +[Flags] +public enum CompressShaderFlags : uint +{ + None = 0, + /// D3D_COMPRESS_SHADER_KEEP_ALL_PARTS + KeepAllParts = 1, +} +#endregion Generated Enums + +#region Structs +/// +/// D3D_SHADER_DATA +public partial struct ShaderData +{ + /// + public unsafe void* pBytecode; + + /// + public nuint BytecodeLength; +} +#endregion Structs + +#region Functions +public static unsafe partial class Apis +{ + [DllImport("D3DCOMPILER_47", ExactSpelling = true)] + public static extern HResult D3DReadFileToBlob(ushort* pFileName, Graphics.Direct3D.ID3DBlob** ppContents); + + [DllImport("D3DCOMPILER_47", ExactSpelling = true)] + public static extern HResult D3DWriteBlobToFile(Graphics.Direct3D.ID3DBlob* pBlob, ushort* pFileName, Bool32 bOverwrite); + + [DllImport("D3DCOMPILER_47", ExactSpelling = true)] + public static extern HResult D3DCompile(void* pSrcData, nuint SrcDataSize, sbyte* pSourceName, Graphics.Direct3D.ShaderMacro* pDefines, Graphics.Direct3D.ID3DInclude* pInclude, sbyte* pEntrypoint, sbyte* pTarget, CompileFlags Flags1, uint Flags2, Graphics.Direct3D.ID3DBlob** ppCode, Graphics.Direct3D.ID3DBlob** ppErrorMsgs); + + [DllImport("D3DCOMPILER_47", ExactSpelling = true)] + public static extern HResult D3DCompile2(void* pSrcData, nuint SrcDataSize, sbyte* pSourceName, Graphics.Direct3D.ShaderMacro* pDefines, Graphics.Direct3D.ID3DInclude* pInclude, sbyte* pEntrypoint, sbyte* pTarget, CompileFlags Flags1, uint Flags2, uint SecondaryDataFlags, void* pSecondaryData, nuint SecondaryDataSize, Graphics.Direct3D.ID3DBlob** ppCode, Graphics.Direct3D.ID3DBlob** ppErrorMsgs); + + [DllImport("D3DCOMPILER_47", ExactSpelling = true)] + public static extern HResult D3DCompileFromFile(ushort* pFileName, Graphics.Direct3D.ShaderMacro* pDefines, Graphics.Direct3D.ID3DInclude* pInclude, sbyte* pEntrypoint, sbyte* pTarget, CompileFlags Flags1, uint Flags2, Graphics.Direct3D.ID3DBlob** ppCode, Graphics.Direct3D.ID3DBlob** ppErrorMsgs); + + [DllImport("D3DCOMPILER_47", ExactSpelling = true)] + public static extern HResult D3DPreprocess(void* pSrcData, nuint SrcDataSize, sbyte* pSourceName, Graphics.Direct3D.ShaderMacro* pDefines, Graphics.Direct3D.ID3DInclude* pInclude, Graphics.Direct3D.ID3DBlob** ppCodeText, Graphics.Direct3D.ID3DBlob** ppErrorMsgs); + + [DllImport("D3DCOMPILER_47", ExactSpelling = true)] + public static extern HResult D3DGetDebugInfo(void* pSrcData, nuint SrcDataSize, Graphics.Direct3D.ID3DBlob** ppDebugInfo); + + [DllImport("D3DCOMPILER_47", ExactSpelling = true)] + public static extern HResult D3DReflect(void* pSrcData, nuint SrcDataSize, Guid* pInterface, void** ppReflector); + + [DllImport("D3DCOMPILER_47", ExactSpelling = true)] + public static extern HResult D3DReflectLibrary(void* pSrcData, nuint SrcDataSize, Guid* riid, void** ppReflector); + + [DllImport("D3DCOMPILER_47", ExactSpelling = true)] + public static extern HResult D3DDisassemble(void* pSrcData, nuint SrcDataSize, DisasmFlags Flags, sbyte* szComments, Graphics.Direct3D.ID3DBlob** ppDisassembly); + + [DllImport("D3DCOMPILER_47", ExactSpelling = true)] + public static extern HResult D3DDisassembleRegion(void* pSrcData, nuint SrcDataSize, uint Flags, sbyte* szComments, nuint StartByteOffset, nuint NumInsts, nuint* pFinishByteOffset, Graphics.Direct3D.ID3DBlob** ppDisassembly); + + [DllImport("D3DCOMPILER_47", ExactSpelling = true)] + public static extern HResult D3DCreateLinker(Graphics.Direct3D11.ID3D11Linker** ppLinker); + + [DllImport("D3DCOMPILER_47", ExactSpelling = true)] + public static extern HResult D3DLoadModule(void* pSrcData, nuint cbSrcDataSize, Graphics.Direct3D11.ID3D11Module** ppModule); + + [DllImport("D3DCOMPILER_47", ExactSpelling = true)] + public static extern HResult D3DCreateFunctionLinkingGraph(uint uFlags, Graphics.Direct3D11.ID3D11FunctionLinkingGraph** ppFunctionLinkingGraph); + + [DllImport("D3DCOMPILER_47", ExactSpelling = true)] + public static extern HResult D3DGetTraceInstructionOffsets(void* pSrcData, nuint SrcDataSize, uint Flags, nuint StartInstIndex, nuint NumInsts, nuint* pOffsets, nuint* pTotalInsts); + + [DllImport("D3DCOMPILER_47", ExactSpelling = true)] + public static extern HResult D3DGetInputSignatureBlob(void* pSrcData, nuint SrcDataSize, Graphics.Direct3D.ID3DBlob** ppSignatureBlob); + + [DllImport("D3DCOMPILER_47", ExactSpelling = true)] + public static extern HResult D3DGetOutputSignatureBlob(void* pSrcData, nuint SrcDataSize, Graphics.Direct3D.ID3DBlob** ppSignatureBlob); + + [DllImport("D3DCOMPILER_47", ExactSpelling = true)] + public static extern HResult D3DGetInputAndOutputSignatureBlob(void* pSrcData, nuint SrcDataSize, Graphics.Direct3D.ID3DBlob** ppSignatureBlob); + + [DllImport("D3DCOMPILER_47", ExactSpelling = true)] + public static extern HResult D3DStripShader(void* pShaderBytecode, nuint BytecodeLength, uint uStripFlags, Graphics.Direct3D.ID3DBlob** ppStrippedBlob); + + [DllImport("D3DCOMPILER_47", ExactSpelling = true)] + public static extern HResult D3DGetBlobPart(void* pSrcData, nuint SrcDataSize, BlobPart Part, uint Flags, Graphics.Direct3D.ID3DBlob** ppPart); + + [DllImport("D3DCOMPILER_47", ExactSpelling = true)] + public static extern HResult D3DSetBlobPart(void* pSrcData, nuint SrcDataSize, BlobPart Part, uint Flags, void* pPart, nuint PartSize, Graphics.Direct3D.ID3DBlob** ppNewShader); + + [DllImport("D3DCOMPILER_47", ExactSpelling = true)] + public static extern HResult D3DCreateBlob(nuint Size, Graphics.Direct3D.ID3DBlob** ppBlob); + + [DllImport("D3DCOMPILER_47", ExactSpelling = true)] + public static extern HResult D3DCompressShaders(uint uNumShaders, ShaderData* pShaderData, CompressShaderFlags uFlags, Graphics.Direct3D.ID3DBlob** ppCompressedData); + + [DllImport("D3DCOMPILER_47", ExactSpelling = true)] + public static extern HResult D3DDecompressShaders(void* pSrcData, nuint SrcDataSize, uint uNumShaders, uint uStartIndex, uint* pIndices, uint uFlags, Graphics.Direct3D.ID3DBlob** ppShaders, uint* pTotalShaders); +} +#endregion Functions diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D.cs index 860641e..21cac71 100644 --- a/src/Vortice.Win32/Generated/Graphics/Direct3D.cs +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D.cs @@ -1193,7 +1193,6 @@ public enum ParameterFlags : int /// D3D_PF_OUT Out = 2, } - #endregion Enums #region Structs @@ -1207,7 +1206,6 @@ public partial struct ShaderMacro /// public unsafe sbyte* Definition; } - #endregion Structs #region COM Types diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11.cs index 77ef10c..461c91b 100644 --- a/src/Vortice.Win32/Generated/Graphics/Direct3D11.cs +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11.cs @@ -8400,10 +8400,10 @@ public enum TraceRegisterType : int /// D3D11_TRACE_INTERFACE_POINTER D3D11_TRACE_INTERFACE_POINTER = 35, } - #endregion Enums #region Unions + /// /// D3D11_AUTHENTICATED_PROTECTION_FLAGS [StructLayout(LayoutKind.Explicit)] @@ -8422,9 +8422,7 @@ public partial struct AuthenticatedProtectionFlags /// public uint _bitfield; } - } - #endregion Unions #region Structs @@ -8453,7 +8451,6 @@ public partial struct InputElementDescription /// public uint InstanceDataStepRate; } - /// /// D3D11_SO_DECLARATION_ENTRY public partial struct SODeclarationEntry @@ -8476,7 +8473,6 @@ public partial struct SODeclarationEntry /// public byte OutputSlot; } - /// /// D3D11_DRAW_INSTANCED_INDIRECT_ARGS public partial struct DrawInstancedIndirectArgs @@ -8493,7 +8489,6 @@ public partial struct DrawInstancedIndirectArgs /// public uint StartInstanceLocation; } - /// /// D3D11_DRAW_INDEXED_INSTANCED_INDIRECT_ARGS public partial struct DrawIndexedInstancedIndirectArgs @@ -8513,7 +8508,6 @@ public partial struct DrawIndexedInstancedIndirectArgs /// public uint StartInstanceLocation; } - /// /// D3D11_BOX public partial struct Box @@ -8536,7 +8530,6 @@ public partial struct Box /// public uint back; } - /// /// D3D11_DEPTH_STENCILOP_DESC public partial struct DepthStencilOperationDescription @@ -8553,7 +8546,6 @@ public partial struct DepthStencilOperationDescription /// public ComparisonFunction StencilFunc; } - /// /// D3D11_DEPTH_STENCIL_DESC public partial struct DepthStencilDescription @@ -8582,7 +8574,6 @@ public partial struct DepthStencilDescription /// public DepthStencilOperationDescription BackFace; } - /// /// D3D11_RENDER_TARGET_BLEND_DESC public partial struct RenderTargetBlendDescription @@ -8611,7 +8602,6 @@ public partial struct RenderTargetBlendDescription /// public ColorWriteEnable RenderTargetWriteMask; } - /// /// D3D11_BLEND_DESC public partial struct BlendDescription @@ -8654,7 +8644,6 @@ public partial struct BlendDescription } } } - /// /// D3D11_RASTERIZER_DESC public partial struct RasterizerDescription @@ -8689,7 +8678,6 @@ public partial struct RasterizerDescription /// public Bool32 AntialiasedLineEnable; } - /// /// D3D11_SUBRESOURCE_DATA public partial struct SubresourceData @@ -8703,7 +8691,6 @@ public partial struct SubresourceData /// public uint SysMemSlicePitch; } - /// /// D3D11_MAPPED_SUBRESOURCE public partial struct MappedSubresource @@ -8717,7 +8704,6 @@ public partial struct MappedSubresource /// public uint DepthPitch; } - /// /// D3D11_BUFFER_DESC public partial struct BufferDescription @@ -8740,7 +8726,6 @@ public partial struct BufferDescription /// public uint StructureByteStride; } - /// /// D3D11_TEXTURE1D_DESC public partial struct Texture1DDescription @@ -8769,7 +8754,6 @@ public partial struct Texture1DDescription /// public ResourceMiscFlags MiscFlags; } - /// /// D3D11_TEXTURE2D_DESC public partial struct Texture2DDescription @@ -8804,7 +8788,6 @@ public partial struct Texture2DDescription /// public ResourceMiscFlags MiscFlags; } - /// /// D3D11_TEXTURE3D_DESC public partial struct Texture3DDescription @@ -8836,7 +8819,6 @@ public partial struct Texture3DDescription /// public ResourceMiscFlags MiscFlags; } - /// /// D3D11_BUFFER_SRV public partial struct BufferSrv @@ -8898,7 +8880,6 @@ public partial struct BufferSrv [FieldOffset(0)] public uint ElementOffset; } - [StructLayout(LayoutKind.Explicit)] public partial struct _Anonymous2_e__Union { @@ -8910,9 +8891,7 @@ public partial struct BufferSrv [FieldOffset(0)] public uint ElementWidth; } - } - /// /// D3D11_BUFFEREX_SRV public partial struct BufferExtendedSrv @@ -8926,7 +8905,6 @@ public partial struct BufferExtendedSrv /// public BufferExtendedSrvFlags Flags; } - /// /// D3D11_TEX1D_SRV public partial struct Texture1DSrv @@ -8937,7 +8915,6 @@ public partial struct Texture1DSrv /// public uint MipLevels; } - /// /// D3D11_TEX1D_ARRAY_SRV public partial struct Texture1DArraySrv @@ -8954,7 +8931,6 @@ public partial struct Texture1DArraySrv /// public uint ArraySize; } - /// /// D3D11_TEX2D_SRV public partial struct Texture2DSrv @@ -8965,7 +8941,6 @@ public partial struct Texture2DSrv /// public uint MipLevels; } - /// /// D3D11_TEX2D_ARRAY_SRV public partial struct Texture2DArraySrv @@ -8982,7 +8957,6 @@ public partial struct Texture2DArraySrv /// public uint ArraySize; } - /// /// D3D11_TEX3D_SRV public partial struct Texture3DSrv @@ -8993,7 +8967,6 @@ public partial struct Texture3DSrv /// public uint MipLevels; } - /// /// D3D11_TEXCUBE_SRV public partial struct TexureCubeSrv @@ -9004,7 +8977,6 @@ public partial struct TexureCubeSrv /// public uint MipLevels; } - /// /// D3D11_TEXCUBE_ARRAY_SRV public partial struct TexureCubeArraySrv @@ -9021,7 +8993,6 @@ public partial struct TexureCubeArraySrv /// public uint NumCubes; } - /// /// D3D11_TEX2DMS_SRV public partial struct Texture2DMsSrv @@ -9029,7 +9000,6 @@ public partial struct Texture2DMsSrv /// public uint UnusedField_NothingToDefine; } - /// /// D3D11_TEX2DMS_ARRAY_SRV public partial struct Texture2DMsArraySrv @@ -9040,7 +9010,6 @@ public partial struct Texture2DMsArraySrv /// public uint ArraySize; } - /// /// D3D11_SHADER_RESOURCE_VIEW_DESC public partial struct ShaderResourceViewDescription @@ -9211,9 +9180,7 @@ public partial struct ShaderResourceViewDescription [FieldOffset(0)] public BufferExtendedSrv BufferEx; } - } - /// /// D3D11_BUFFER_RTV public partial struct BufferRtv @@ -9275,7 +9242,6 @@ public partial struct BufferRtv [FieldOffset(0)] public uint ElementWidth; } - [StructLayout(LayoutKind.Explicit)] public partial struct _Anonymous1_e__Union { @@ -9287,9 +9253,7 @@ public partial struct BufferRtv [FieldOffset(0)] public uint ElementOffset; } - } - /// /// D3D11_TEX1D_RTV public partial struct Texture1DRtv @@ -9297,7 +9261,6 @@ public partial struct Texture1DRtv /// public uint MipSlice; } - /// /// D3D11_TEX1D_ARRAY_RTV public partial struct Texture1DArrayRtv @@ -9311,7 +9274,6 @@ public partial struct Texture1DArrayRtv /// public uint ArraySize; } - /// /// D3D11_TEX2D_RTV public partial struct Texture2DRtv @@ -9319,7 +9281,6 @@ public partial struct Texture2DRtv /// public uint MipSlice; } - /// /// D3D11_TEX2DMS_RTV public partial struct Texture2DMsRtv @@ -9327,7 +9288,6 @@ public partial struct Texture2DMsRtv /// public uint UnusedField_NothingToDefine; } - /// /// D3D11_TEX2D_ARRAY_RTV public partial struct Texture2DArrayRtv @@ -9341,7 +9301,6 @@ public partial struct Texture2DArrayRtv /// public uint ArraySize; } - /// /// D3D11_TEX2DMS_ARRAY_RTV public partial struct Texture2DMsArrayRtv @@ -9352,7 +9311,6 @@ public partial struct Texture2DMsArrayRtv /// public uint ArraySize; } - /// /// D3D11_TEX3D_RTV public partial struct Texture3DRtv @@ -9366,7 +9324,6 @@ public partial struct Texture3DRtv /// public uint WSize; } - /// /// D3D11_RENDER_TARGET_VIEW_DESC public partial struct RenderTargetViewDescription @@ -9495,9 +9452,7 @@ public partial struct RenderTargetViewDescription [FieldOffset(0)] public Texture3DRtv Texture3D; } - } - /// /// D3D11_TEX1D_DSV public partial struct Texture1DDsv @@ -9505,7 +9460,6 @@ public partial struct Texture1DDsv /// public uint MipSlice; } - /// /// D3D11_TEX1D_ARRAY_DSV public partial struct Texture1DArrayDsv @@ -9519,7 +9473,6 @@ public partial struct Texture1DArrayDsv /// public uint ArraySize; } - /// /// D3D11_TEX2D_DSV public partial struct Texture2DDsv @@ -9527,7 +9480,6 @@ public partial struct Texture2DDsv /// public uint MipSlice; } - /// /// D3D11_TEX2D_ARRAY_DSV public partial struct Texture2DArrayDsv @@ -9541,7 +9493,6 @@ public partial struct Texture2DArrayDsv /// public uint ArraySize; } - /// /// D3D11_TEX2DMS_DSV public partial struct Texture2DMsDsv @@ -9549,7 +9500,6 @@ public partial struct Texture2DMsDsv /// public uint UnusedField_NothingToDefine; } - /// /// D3D11_TEX2DMS_ARRAY_DSV public partial struct Texture2DMsArrayDsv @@ -9560,7 +9510,6 @@ public partial struct Texture2DMsArrayDsv /// public uint ArraySize; } - /// /// D3D11_DEPTH_STENCIL_VIEW_DESC public partial struct DepthStencilViewDescription @@ -9664,9 +9613,7 @@ public partial struct DepthStencilViewDescription [FieldOffset(0)] public Texture2DMsArrayDsv Texture2DMSArray; } - } - /// /// D3D11_BUFFER_UAV public partial struct BufferUav @@ -9680,7 +9627,6 @@ public partial struct BufferUav /// public BufferUavFlags Flags; } - /// /// D3D11_TEX1D_UAV public partial struct Texture1DUav @@ -9688,7 +9634,6 @@ public partial struct Texture1DUav /// public uint MipSlice; } - /// /// D3D11_TEX1D_ARRAY_UAV public partial struct Texture1DArrayUav @@ -9702,7 +9647,6 @@ public partial struct Texture1DArrayUav /// public uint ArraySize; } - /// /// D3D11_TEX2D_UAV public partial struct Texture2DUav @@ -9710,7 +9654,6 @@ public partial struct Texture2DUav /// public uint MipSlice; } - /// /// D3D11_TEX2D_ARRAY_UAV public partial struct Texture2DArrayUav @@ -9724,7 +9667,6 @@ public partial struct Texture2DArrayUav /// public uint ArraySize; } - /// /// D3D11_TEX3D_UAV public partial struct Texture3DUav @@ -9738,7 +9680,6 @@ public partial struct Texture3DUav /// public uint WSize; } - /// /// D3D11_UNORDERED_ACCESS_VIEW_DESC public partial struct UnorderedAccessViewDescription @@ -9839,9 +9780,7 @@ public partial struct UnorderedAccessViewDescription [FieldOffset(0)] public Texture3DUav Texture3D; } - } - /// /// D3D11_SAMPLER_DESC public partial struct SamplerDescription @@ -9876,7 +9815,6 @@ public partial struct SamplerDescription /// public float MaxLOD; } - /// /// D3D11_QUERY_DESC public partial struct QueryDescription @@ -9887,7 +9825,6 @@ public partial struct QueryDescription /// public QueryMiscFlags MiscFlags; } - /// /// D3D11_QUERY_DATA_TIMESTAMP_DISJOINT public partial struct QueryDataTimestampDisjoint @@ -9898,7 +9835,6 @@ public partial struct QueryDataTimestampDisjoint /// public Bool32 Disjoint; } - /// /// D3D11_QUERY_DATA_PIPELINE_STATISTICS public partial struct QueryDataPipelineStatistics @@ -9936,7 +9872,6 @@ public partial struct QueryDataPipelineStatistics /// public ulong CSInvocations; } - /// /// D3D11_QUERY_DATA_SO_STATISTICS public partial struct QueryDataSOStatistics @@ -9947,7 +9882,6 @@ public partial struct QueryDataSOStatistics /// public ulong PrimitivesStorageNeeded; } - /// /// D3D11_COUNTER_DESC public partial struct CounterDescription @@ -9958,7 +9892,6 @@ public partial struct CounterDescription /// public uint MiscFlags; } - /// /// D3D11_COUNTER_INFO public partial struct CounterInfo @@ -9972,7 +9905,6 @@ public partial struct CounterInfo /// public byte NumDetectableParallelUnits; } - /// /// D3D11_CLASS_INSTANCE_DESC public partial struct ClassInstanceDescription @@ -10001,7 +9933,6 @@ public partial struct ClassInstanceDescription /// public Bool32 Created; } - /// /// D3D11_FEATURE_DATA_THREADING public partial struct FeatureDataThreading @@ -10012,7 +9943,6 @@ public partial struct FeatureDataThreading /// public Bool32 DriverCommandLists; } - /// /// D3D11_FEATURE_DATA_DOUBLES public partial struct FeatureDataDoubles @@ -10020,7 +9950,6 @@ public partial struct FeatureDataDoubles /// public Bool32 DoublePrecisionFloatShaderOps; } - /// /// D3D11_FEATURE_DATA_FORMAT_SUPPORT public partial struct FeatureDataFormatSupport @@ -10031,7 +9960,6 @@ public partial struct FeatureDataFormatSupport /// public FormatSupport OutFormatSupport; } - /// /// D3D11_FEATURE_DATA_FORMAT_SUPPORT2 public partial struct FeatureDataFormatSupport2 @@ -10042,7 +9970,6 @@ public partial struct FeatureDataFormatSupport2 /// public FormatSupport2 OutFormatSupport2; } - /// /// D3D11_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS public partial struct FeatureDataD3D10XHardwareOptions @@ -10050,7 +9977,6 @@ public partial struct FeatureDataD3D10XHardwareOptions /// public Bool32 ComputeShaders_Plus_RawAndStructuredBuffers_Via_Shader_4_x; } - /// /// D3D11_FEATURE_DATA_D3D11_OPTIONS public partial struct FeatureDataD3D11Options @@ -10097,7 +10023,6 @@ public partial struct FeatureDataD3D11Options /// public Bool32 ExtendedResourceSharing; } - /// /// D3D11_FEATURE_DATA_ARCHITECTURE_INFO public partial struct FeatureDataArchitectureInfo @@ -10105,7 +10030,6 @@ public partial struct FeatureDataArchitectureInfo /// public Bool32 TileBasedDeferredRenderer; } - /// /// D3D11_FEATURE_DATA_D3D9_OPTIONS public partial struct FeatureDataD3d9Options @@ -10113,7 +10037,6 @@ public partial struct FeatureDataD3d9Options /// public Bool32 FullNonPow2TextureSupport; } - /// /// D3D11_FEATURE_DATA_D3D9_SHADOW_SUPPORT public partial struct FeatureDataD3d9ShadowSupport @@ -10121,7 +10044,6 @@ public partial struct FeatureDataD3d9ShadowSupport /// public Bool32 SupportsDepthAsTextureWithLessEqualComparisonFilter; } - /// /// D3D11_FEATURE_DATA_SHADER_MIN_PRECISION_SUPPORT public partial struct FeatureDataShaderMinPrecisionSupport @@ -10132,7 +10054,6 @@ public partial struct FeatureDataShaderMinPrecisionSupport /// public uint AllOtherShaderStagesMinPrecision; } - /// /// D3D11_FEATURE_DATA_D3D11_OPTIONS1 public partial struct FeatureDataD3D11Options1 @@ -10149,7 +10070,6 @@ public partial struct FeatureDataD3D11Options1 /// public Bool32 MapOnDefaultBuffers; } - /// /// D3D11_FEATURE_DATA_D3D9_SIMPLE_INSTANCING_SUPPORT public partial struct FeatureDataD3d9SimpleInstancingSupport @@ -10157,7 +10077,6 @@ public partial struct FeatureDataD3d9SimpleInstancingSupport /// public Bool32 SimpleInstancingSupported; } - /// /// D3D11_FEATURE_DATA_MARKER_SUPPORT public partial struct FeatureDataMarkerSupport @@ -10165,7 +10084,6 @@ public partial struct FeatureDataMarkerSupport /// public Bool32 Profile; } - /// /// D3D11_FEATURE_DATA_D3D9_OPTIONS1 public partial struct FeatureDataD3d9Options1 @@ -10182,7 +10100,6 @@ public partial struct FeatureDataD3d9Options1 /// public Bool32 TextureCubeFaceRenderTargetWithNonCubeDepthStencilSupported; } - /// /// D3D11_FEATURE_DATA_D3D11_OPTIONS2 public partial struct FeatureDataD3D11Options2 @@ -10211,7 +10128,6 @@ public partial struct FeatureDataD3D11Options2 /// public Bool32 UnifiedMemoryArchitecture; } - /// /// D3D11_FEATURE_DATA_D3D11_OPTIONS3 public partial struct FeatureDataD3D11Options3 @@ -10219,7 +10135,6 @@ public partial struct FeatureDataD3D11Options3 /// public Bool32 VPAndRTArrayIndexFromAnyShaderFeedingRasterizer; } - /// /// D3D11_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT public partial struct FeatureDataGpuVirtualAddressSupport @@ -10230,7 +10145,6 @@ public partial struct FeatureDataGpuVirtualAddressSupport /// public uint MaxGPUVirtualAddressBitsPerProcess; } - /// /// D3D11_FEATURE_DATA_SHADER_CACHE public partial struct FeatureDataShaderCache @@ -10238,7 +10152,6 @@ public partial struct FeatureDataShaderCache /// public uint SupportFlags; } - /// /// D3D11_FEATURE_DATA_DISPLAYABLE public partial struct FeatureDataDisplayable @@ -10249,7 +10162,6 @@ public partial struct FeatureDataDisplayable /// public SharedResourceTier SharedResourceTier; } - /// /// D3D11_FEATURE_DATA_D3D11_OPTIONS5 public partial struct FeatureDataD3D11Options5 @@ -10257,7 +10169,6 @@ public partial struct FeatureDataD3D11Options5 /// public SharedResourceTier SharedResourceTier; } - /// /// D3D11_VIDEO_DECODER_DESC public partial struct VideoDecoderDescription @@ -10274,7 +10185,6 @@ public partial struct VideoDecoderDescription /// public Graphics.Dxgi.Common.Format OutputFormat; } - /// /// D3D11_VIDEO_DECODER_CONFIG public partial struct VideoDecoderConfig @@ -10330,7 +10240,6 @@ public partial struct VideoDecoderConfig /// public ushort ConfigDecoderSpecific; } - /// /// D3D11_AES_CTR_IV public partial struct AesCtrIv @@ -10341,7 +10250,6 @@ public partial struct AesCtrIv /// public ulong Count; } - /// /// D3D11_ENCRYPTED_BLOCK_INFO public partial struct EncryptedBlockInfo @@ -10355,7 +10263,6 @@ public partial struct EncryptedBlockInfo /// public uint NumBytesInEncryptPattern; } - /// /// D3D11_VIDEO_DECODER_BUFFER_DESC public partial struct VideoDecoderBufferDescription @@ -10402,7 +10309,6 @@ public partial struct VideoDecoderBufferDescription /// public EncryptedBlockInfo EncryptedBlockInfo; } - /// /// D3D11_VIDEO_DECODER_EXTENSION public partial struct VideoDecoderExtension @@ -10428,7 +10334,6 @@ public partial struct VideoDecoderExtension /// public unsafe ID3D11Resource* ppResourceList; } - /// /// D3D11_VIDEO_PROCESSOR_CAPS public partial struct VideoProcessorCaps @@ -10460,7 +10365,6 @@ public partial struct VideoProcessorCaps /// public uint MaxStreamStates; } - /// /// D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS public partial struct VideoProcessorRateConversionCaps @@ -10480,7 +10384,6 @@ public partial struct VideoProcessorRateConversionCaps /// public uint CustomRateCount; } - /// /// D3D11_VIDEO_CONTENT_PROTECTION_CAPS public partial struct VideoContentProtectionCaps @@ -10497,7 +10400,6 @@ public partial struct VideoContentProtectionCaps /// public ulong ProtectedMemorySize; } - /// /// D3D11_VIDEO_PROCESSOR_CUSTOM_RATE public partial struct VideoProcessorCustomRate @@ -10514,7 +10416,6 @@ public partial struct VideoProcessorCustomRate /// public uint InputFramesOrFields; } - /// /// D3D11_VIDEO_PROCESSOR_FILTER_RANGE public partial struct VideoProcessorFilterRange @@ -10531,7 +10432,6 @@ public partial struct VideoProcessorFilterRange /// public float Multiplier; } - /// /// D3D11_VIDEO_PROCESSOR_CONTENT_DESC public partial struct VideoProcessorContentDescription @@ -10560,7 +10460,6 @@ public partial struct VideoProcessorContentDescription /// public VideoUsage Usage; } - /// /// D3D11_VIDEO_COLOR_RGBA public partial struct VideoColorRgba @@ -10577,7 +10476,6 @@ public partial struct VideoColorRgba /// public float A; } - /// /// D3D11_VIDEO_COLOR_YCbCrA public partial struct VideoColorYcbcra @@ -10594,7 +10492,6 @@ public partial struct VideoColorYcbcra /// public float A; } - /// /// D3D11_VIDEO_COLOR public partial struct VideoColor @@ -10633,9 +10530,7 @@ public partial struct VideoColor [FieldOffset(0)] public VideoColorRgba RGBA; } - } - /// /// D3D11_VIDEO_PROCESSOR_COLOR_SPACE public partial struct VideoProcessorColorSpace @@ -10643,7 +10538,6 @@ public partial struct VideoProcessorColorSpace /// public uint _bitfield; } - /// /// D3D11_VIDEO_PROCESSOR_STREAM public partial struct VideoProcessorStream @@ -10681,7 +10575,6 @@ public partial struct VideoProcessorStream /// public unsafe ID3D11VideoProcessorInputView* ppFutureSurfacesRight; } - /// /// D3D11_OMAC public partial struct Omac @@ -10689,7 +10582,6 @@ public partial struct Omac /// public unsafe fixed byte Buffer[16]; } - /// /// D3D11_AUTHENTICATED_QUERY_INPUT public partial struct AuthenticatedQueryInput @@ -10703,7 +10595,6 @@ public partial struct AuthenticatedQueryInput /// public uint SequenceNumber; } - /// /// D3D11_AUTHENTICATED_QUERY_OUTPUT public partial struct AuthenticatedQueryOutput @@ -10723,7 +10614,6 @@ public partial struct AuthenticatedQueryOutput /// public HResult ReturnCode; } - /// /// D3D11_AUTHENTICATED_QUERY_PROTECTION_OUTPUT public partial struct AuthenticatedQueryProtectionOutput @@ -10734,7 +10624,6 @@ public partial struct AuthenticatedQueryProtectionOutput /// public AuthenticatedProtectionFlags ProtectionFlags; } - /// /// D3D11_AUTHENTICATED_QUERY_CHANNEL_TYPE_OUTPUT public partial struct AuthenticatedQueryChannelTypeOutput @@ -10745,7 +10634,6 @@ public partial struct AuthenticatedQueryChannelTypeOutput /// public AuthenticatedChannelType ChannelType; } - /// /// D3D11_AUTHENTICATED_QUERY_DEVICE_HANDLE_OUTPUT public partial struct AuthenticatedQueryDeviceHandleOutput @@ -10756,7 +10644,6 @@ public partial struct AuthenticatedQueryDeviceHandleOutput /// public Handle DeviceHandle; } - /// /// D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_INPUT public partial struct AuthenticatedQueryCryptoSessionInput @@ -10767,7 +10654,6 @@ public partial struct AuthenticatedQueryCryptoSessionInput /// public Handle DecoderHandle; } - /// /// D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_OUTPUT public partial struct AuthenticatedQueryCryptoSessionOutput @@ -10784,7 +10670,6 @@ public partial struct AuthenticatedQueryCryptoSessionOutput /// public Handle DeviceHandle; } - /// /// D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_COUNT_OUTPUT public partial struct AuthenticatedQueryRestrictedSharedResourceProcessCountOutput @@ -10795,7 +10680,6 @@ public partial struct AuthenticatedQueryRestrictedSharedResourceProcessCountOutp /// public uint RestrictedSharedResourceProcessCount; } - /// /// D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_INPUT public partial struct AuthenticatedQueryRestrictedSharedResourceProcessInput @@ -10806,7 +10690,6 @@ public partial struct AuthenticatedQueryRestrictedSharedResourceProcessInput /// public uint ProcessIndex; } - /// /// D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_OUTPUT public partial struct AuthenticatedQueryRestrictedSharedResourceProcessOutput @@ -10823,7 +10706,6 @@ public partial struct AuthenticatedQueryRestrictedSharedResourceProcessOutput /// public Handle ProcessHandle; } - /// /// D3D11_AUTHENTICATED_QUERY_UNRESTRICTED_PROTECTED_SHARED_RESOURCE_COUNT_OUTPUT public partial struct AuthenticatedQueryUnrestrictedProtectedSharedResourceCountOutput @@ -10834,7 +10716,6 @@ public partial struct AuthenticatedQueryUnrestrictedProtectedSharedResourceCount /// public uint UnrestrictedProtectedSharedResourceCount; } - /// /// D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_INPUT public partial struct AuthenticatedQueryOutputIdCountInput @@ -10848,7 +10729,6 @@ public partial struct AuthenticatedQueryOutputIdCountInput /// public Handle CryptoSessionHandle; } - /// /// D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_OUTPUT public partial struct AuthenticatedQueryOutputIdCountOutput @@ -10865,7 +10745,6 @@ public partial struct AuthenticatedQueryOutputIdCountOutput /// public uint OutputIDCount; } - /// /// D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_INPUT public partial struct AuthenticatedQueryOutputIdInput @@ -10882,7 +10761,6 @@ public partial struct AuthenticatedQueryOutputIdInput /// public uint OutputIDIndex; } - /// /// D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_OUTPUT public partial struct AuthenticatedQueryOutputIdOutput @@ -10902,7 +10780,6 @@ public partial struct AuthenticatedQueryOutputIdOutput /// public ulong OutputID; } - /// /// D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_OUTPUT public partial struct AuthenticatedQueryAccessibilityOutput @@ -10919,7 +10796,6 @@ public partial struct AuthenticatedQueryAccessibilityOutput /// public Bool32 AccessibleInNonContiguousBlocks; } - /// /// D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_COUNT_OUTPUT public partial struct AuthenticatedQueryAccessibilityEncryptionGuidCountOutput @@ -10930,7 +10806,6 @@ public partial struct AuthenticatedQueryAccessibilityEncryptionGuidCountOutput /// public uint EncryptionGuidCount; } - /// /// D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_INPUT public partial struct AuthenticatedQueryAccessibilityEncryptionGuidInput @@ -10941,7 +10816,6 @@ public partial struct AuthenticatedQueryAccessibilityEncryptionGuidInput /// public uint EncryptionGuidIndex; } - /// /// D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_OUTPUT public partial struct AuthenticatedQueryAccessibilityEncryptionGuidOutput @@ -10955,7 +10829,6 @@ public partial struct AuthenticatedQueryAccessibilityEncryptionGuidOutput /// public Guid EncryptionGuid; } - /// /// D3D11_AUTHENTICATED_QUERY_CURRENT_ACCESSIBILITY_ENCRYPTION_OUTPUT public partial struct AuthenticatedQueryCurrentAccessibilityEncryptionOutput @@ -10966,7 +10839,6 @@ public partial struct AuthenticatedQueryCurrentAccessibilityEncryptionOutput /// public Guid EncryptionGuid; } - /// /// D3D11_AUTHENTICATED_CONFIGURE_INPUT public partial struct AuthenticatedConfigureInput @@ -10983,7 +10855,6 @@ public partial struct AuthenticatedConfigureInput /// public uint SequenceNumber; } - /// /// D3D11_AUTHENTICATED_CONFIGURE_OUTPUT public partial struct AuthenticatedConfigureOutput @@ -11003,7 +10874,6 @@ public partial struct AuthenticatedConfigureOutput /// public HResult ReturnCode; } - /// /// D3D11_AUTHENTICATED_CONFIGURE_INITIALIZE_INPUT public partial struct AuthenticatedConfigureInitializeInput @@ -11017,7 +10887,6 @@ public partial struct AuthenticatedConfigureInitializeInput /// public uint StartSequenceConfigure; } - /// /// D3D11_AUTHENTICATED_CONFIGURE_PROTECTION_INPUT public partial struct AuthenticatedConfigureProtectionInput @@ -11028,7 +10897,6 @@ public partial struct AuthenticatedConfigureProtectionInput /// public AuthenticatedProtectionFlags Protections; } - /// /// D3D11_AUTHENTICATED_CONFIGURE_CRYPTO_SESSION_INPUT public partial struct AuthenticatedConfigureCryptoSessionInput @@ -11045,7 +10913,6 @@ public partial struct AuthenticatedConfigureCryptoSessionInput /// public Handle DeviceHandle; } - /// /// D3D11_AUTHENTICATED_CONFIGURE_SHARED_RESOURCE_INPUT public partial struct AuthenticatedConfigureSharedResourceInput @@ -11062,7 +10929,6 @@ public partial struct AuthenticatedConfigureSharedResourceInput /// public Bool32 AllowAccess; } - /// /// D3D11_AUTHENTICATED_CONFIGURE_ACCESSIBLE_ENCRYPTION_INPUT public partial struct AuthenticatedConfigureAccessibleEncryptionInput @@ -11073,7 +10939,6 @@ public partial struct AuthenticatedConfigureAccessibleEncryptionInput /// public Guid EncryptionGuid; } - /// /// D3D11_TEX2D_VDOV public partial struct Texture2DVdov @@ -11081,7 +10946,6 @@ public partial struct Texture2DVdov /// public uint ArraySlice; } - /// /// D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC public partial struct VideoDecoderOutputViewDescription @@ -11112,9 +10976,7 @@ public partial struct VideoDecoderOutputViewDescription [FieldOffset(0)] public Texture2DVdov Texture2D; } - } - /// /// D3D11_TEX2D_VPIV public partial struct Texture2DVpiv @@ -11125,7 +10987,6 @@ public partial struct Texture2DVpiv /// public uint ArraySlice; } - /// /// D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC public partial struct VideoProcessorInputViewDescription @@ -11156,9 +11017,7 @@ public partial struct VideoProcessorInputViewDescription [FieldOffset(0)] public Texture2DVpiv Texture2D; } - } - /// /// D3D11_TEX2D_VPOV public partial struct Texture2DVpov @@ -11166,7 +11025,6 @@ public partial struct Texture2DVpov /// public uint MipSlice; } - /// /// D3D11_TEX2D_ARRAY_VPOV public partial struct Texture2DArrayVpov @@ -11180,7 +11038,6 @@ public partial struct Texture2DArrayVpov /// public uint ArraySize; } - /// /// D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC public partial struct VideoProcessorOutputViewDescription @@ -11222,9 +11079,7 @@ public partial struct VideoProcessorOutputViewDescription [FieldOffset(0)] public Texture2DArrayVpov Texture2DArray; } - } - /// /// D3D11_MESSAGE public partial struct Message @@ -11244,7 +11099,6 @@ public partial struct Message /// public nuint DescriptionByteLength; } - /// /// D3D11_INFO_QUEUE_FILTER_DESC public partial struct InfoQueueFilterDescription @@ -11267,7 +11121,6 @@ public partial struct InfoQueueFilterDescription /// public unsafe MessageId* pIDList; } - /// /// D3D11_INFO_QUEUE_FILTER public partial struct InfoQueueFilter @@ -11278,7 +11131,6 @@ public partial struct InfoQueueFilter /// public InfoQueueFilterDescription DenyList; } - /// /// D3D11_RENDER_TARGET_BLEND_DESC1 public partial struct RenderTargetBlendDescription1 @@ -11313,7 +11165,6 @@ public partial struct RenderTargetBlendDescription1 /// public ColorWriteEnable RenderTargetWriteMask; } - /// /// D3D11_BLEND_DESC1 public partial struct BlendDescription1 @@ -11356,7 +11207,6 @@ public partial struct BlendDescription1 } } } - /// /// D3D11_RASTERIZER_DESC1 public partial struct RasterizerDescription1 @@ -11394,7 +11244,6 @@ public partial struct RasterizerDescription1 /// public uint ForcedSampleCount; } - /// /// D3D11_VIDEO_DECODER_SUB_SAMPLE_MAPPING_BLOCK public partial struct VideoDecoderSubSampleMappingBlock @@ -11405,7 +11254,6 @@ public partial struct VideoDecoderSubSampleMappingBlock /// public uint EncryptedSize; } - /// /// D3D11_VIDEO_DECODER_BUFFER_DESC1 public partial struct VideoDecoderBufferDescription1 @@ -11431,7 +11279,6 @@ public partial struct VideoDecoderBufferDescription1 /// public uint SubSampleMappingCount; } - /// /// D3D11_VIDEO_DECODER_BEGIN_FRAME_CRYPTO_SESSION public partial struct VideoDecoderBeginFrameCryptoSession @@ -11454,7 +11301,6 @@ public partial struct VideoDecoderBeginFrameCryptoSession /// public unsafe void* pPrivateData; } - /// /// D3D11_VIDEO_PROCESSOR_STREAM_BEHAVIOR_HINT public partial struct VideoProcessorStreamBehaviorHint @@ -11471,7 +11317,6 @@ public partial struct VideoProcessorStreamBehaviorHint /// public Graphics.Dxgi.Common.Format Format; } - /// /// D3D11_KEY_EXCHANGE_HW_PROTECTION_INPUT_DATA public partial struct KeyExchangeHWProtectionInputData @@ -11485,7 +11330,6 @@ public partial struct KeyExchangeHWProtectionInputData /// public unsafe fixed byte pbInput[4]; } - /// /// D3D11_KEY_EXCHANGE_HW_PROTECTION_OUTPUT_DATA public partial struct KeyExchangeHWProtectionOutputData @@ -11508,7 +11352,6 @@ public partial struct KeyExchangeHWProtectionOutputData /// public unsafe fixed byte pbOutput[4]; } - /// /// D3D11_KEY_EXCHANGE_HW_PROTECTION_DATA public partial struct KeyExchangeHWProtectionData @@ -11525,7 +11368,6 @@ public partial struct KeyExchangeHWProtectionData /// public HResult Status; } - /// /// D3D11_VIDEO_SAMPLE_DESC public partial struct VideoSampleDescription @@ -11542,7 +11384,6 @@ public partial struct VideoSampleDescription /// public Graphics.Dxgi.Common.ColorSpaceType ColorSpace; } - /// /// D3D11_TILED_RESOURCE_COORDINATE public partial struct TiledResourceCoordinate @@ -11559,7 +11400,6 @@ public partial struct TiledResourceCoordinate /// public uint Subresource; } - /// /// D3D11_TILE_REGION_SIZE public partial struct TileRegionSize @@ -11579,7 +11419,6 @@ public partial struct TileRegionSize /// public ushort Depth; } - /// /// D3D11_SUBRESOURCE_TILING public partial struct SubresourceTiling @@ -11596,7 +11435,6 @@ public partial struct SubresourceTiling /// public uint StartTileIndexInOverallResource; } - /// /// D3D11_TILE_SHAPE public partial struct TileShape @@ -11610,7 +11448,6 @@ public partial struct TileShape /// public uint DepthInTexels; } - /// /// D3D11_PACKED_MIP_DESC public partial struct PackedMipDescription @@ -11627,7 +11464,6 @@ public partial struct PackedMipDescription /// public uint StartTileIndexInOverallResource; } - /// /// D3D11_TEXTURE2D_DESC1 public partial struct Texture2DDescription1 @@ -11665,7 +11501,6 @@ public partial struct Texture2DDescription1 /// public TextureLayout TextureLayout; } - /// /// D3D11_TEXTURE3D_DESC1 public partial struct Texture3DDescription1 @@ -11700,7 +11535,6 @@ public partial struct Texture3DDescription1 /// public TextureLayout TextureLayout; } - /// /// D3D11_RASTERIZER_DESC2 public partial struct RasterizerDescription2 @@ -11741,7 +11575,6 @@ public partial struct RasterizerDescription2 /// public ConservativeRasterizationMode ConservativeRaster; } - /// /// D3D11_TEX2D_SRV1 public partial struct Texture2DSrv1 @@ -11755,7 +11588,6 @@ public partial struct Texture2DSrv1 /// public uint PlaneSlice; } - /// /// D3D11_TEX2D_ARRAY_SRV1 public partial struct Texture2DArraySrv1 @@ -11775,7 +11607,6 @@ public partial struct Texture2DArraySrv1 /// public uint PlaneSlice; } - /// /// D3D11_SHADER_RESOURCE_VIEW_DESC1 public partial struct ShaderResourceViewDescription1 @@ -11946,9 +11777,7 @@ public partial struct ShaderResourceViewDescription1 [FieldOffset(0)] public BufferExtendedSrv BufferEx; } - } - /// /// D3D11_TEX2D_RTV1 public partial struct Texture2DRtv1 @@ -11959,7 +11788,6 @@ public partial struct Texture2DRtv1 /// public uint PlaneSlice; } - /// /// D3D11_TEX2D_ARRAY_RTV1 public partial struct Texture2DArrayRtv1 @@ -11976,7 +11804,6 @@ public partial struct Texture2DArrayRtv1 /// public uint PlaneSlice; } - /// /// D3D11_RENDER_TARGET_VIEW_DESC1 public partial struct RenderTargetViewDescription1 @@ -12105,9 +11932,7 @@ public partial struct RenderTargetViewDescription1 [FieldOffset(0)] public Texture3DRtv Texture3D; } - } - /// /// D3D11_TEX2D_UAV1 public partial struct Texture2DUav1 @@ -12118,7 +11943,6 @@ public partial struct Texture2DUav1 /// public uint PlaneSlice; } - /// /// D3D11_TEX2D_ARRAY_UAV1 public partial struct Texture2DArrayUav1 @@ -12135,7 +11959,6 @@ public partial struct Texture2DArrayUav1 /// public uint PlaneSlice; } - /// /// D3D11_UNORDERED_ACCESS_VIEW_DESC1 public partial struct UnorderedAccessViewDescription1 @@ -12236,9 +12059,7 @@ public partial struct UnorderedAccessViewDescription1 [FieldOffset(0)] public Texture3DUav Texture3D; } - } - /// /// D3D11_QUERY_DESC1 public partial struct QueryDescription1 @@ -12252,7 +12073,6 @@ public partial struct QueryDescription1 /// public ContextType ContextType; } - /// /// D3D11_FEATURE_DATA_VIDEO_DECODER_HISTOGRAM public partial struct FeatureDataVideoDecoderHistogram @@ -12269,7 +12089,6 @@ public partial struct FeatureDataVideoDecoderHistogram /// public uint CounterBitDepth; } - /// /// D3D11_VIDEO_DECODER_BUFFER_DESC2 public partial struct VideoDecoderBufferDescription2 @@ -12301,7 +12120,6 @@ public partial struct VideoDecoderBufferDescription2 /// public uint cBlocksStripeClear; } - /// /// D3D11_FEATURE_DATA_D3D11_OPTIONS4 public partial struct FeatureDataD3D11Options4 @@ -12309,7 +12127,6 @@ public partial struct FeatureDataD3D11Options4 /// public Bool32 ExtendedNV12SharedTextureSupported; } - /// /// D3D11_SIGNATURE_PARAMETER_DESC public partial struct SignatureParameterDescription @@ -12341,7 +12158,6 @@ public partial struct SignatureParameterDescription /// public Graphics.Direct3D.MinPrecision MinPrecision; } - /// /// D3D11_SHADER_BUFFER_DESC public partial struct ShaderBufferDescription @@ -12361,7 +12177,6 @@ public partial struct ShaderBufferDescription /// public uint uFlags; } - /// /// D3D11_SHADER_VARIABLE_DESC public partial struct ShaderVariableDescription @@ -12393,7 +12208,6 @@ public partial struct ShaderVariableDescription /// public uint SamplerSize; } - /// /// D3D11_SHADER_TYPE_DESC public partial struct ShaderTypeDescription @@ -12422,7 +12236,6 @@ public partial struct ShaderTypeDescription /// public unsafe sbyte* Name; } - /// /// D3D11_SHADER_DESC public partial struct ShaderDescription @@ -12541,7 +12354,6 @@ public partial struct ShaderDescription /// public uint cTextureStoreInstructions; } - /// /// D3D11_SHADER_INPUT_BIND_DESC public partial struct ShaderInputBindDescription @@ -12570,7 +12382,6 @@ public partial struct ShaderInputBindDescription /// public uint NumSamples; } - /// /// D3D11_LIBRARY_DESC public partial struct LibraryDescription @@ -12584,7 +12395,6 @@ public partial struct LibraryDescription /// public uint FunctionCount; } - /// /// D3D11_FUNCTION_DESC public partial struct FunctionDescription @@ -12688,7 +12498,6 @@ public partial struct FunctionDescription /// public Bool32 Has10Level9PixelShader; } - /// /// D3D11_PARAMETER_DESC public partial struct ParameterDescription @@ -12729,7 +12538,6 @@ public partial struct ParameterDescription /// public uint FirstOutComponent; } - /// /// D3D11_VERTEX_SHADER_TRACE_DESC public partial struct VertexShaderTraceDescription @@ -12737,7 +12545,6 @@ public partial struct VertexShaderTraceDescription /// public ulong Invocation; } - /// /// D3D11_HULL_SHADER_TRACE_DESC public partial struct HullShaderTraceDescription @@ -12745,7 +12552,6 @@ public partial struct HullShaderTraceDescription /// public ulong Invocation; } - /// /// D3D11_DOMAIN_SHADER_TRACE_DESC public partial struct DomainShaderTraceDescription @@ -12753,7 +12559,6 @@ public partial struct DomainShaderTraceDescription /// public ulong Invocation; } - /// /// D3D11_GEOMETRY_SHADER_TRACE_DESC public partial struct GeometryShaderTraceDescription @@ -12761,7 +12566,6 @@ public partial struct GeometryShaderTraceDescription /// public ulong Invocation; } - /// /// D3D11_PIXEL_SHADER_TRACE_DESC public partial struct PixelShaderTraceDescription @@ -12778,7 +12582,6 @@ public partial struct PixelShaderTraceDescription /// public ulong SampleMask; } - /// /// D3D11_COMPUTE_SHADER_TRACE_DESC public partial struct ComputeShaderTraceDescription @@ -12792,7 +12595,6 @@ public partial struct ComputeShaderTraceDescription /// public unsafe fixed uint ThreadGroupID[3]; } - /// /// D3D11_SHADER_TRACE_DESC public partial struct ShaderTraceDescription @@ -12893,9 +12695,7 @@ public partial struct ShaderTraceDescription [FieldOffset(0)] public ComputeShaderTraceDescription ComputeShaderTraceDesc; } - } - /// /// D3D11_TRACE_STATS public partial struct TraceStats @@ -12969,7 +12769,6 @@ public partial struct TraceStats /// public unsafe fixed byte DSInputPatchConstantMask[32]; } - /// /// D3D11_TRACE_VALUE public partial struct TraceValue @@ -12980,7 +12779,6 @@ public partial struct TraceValue /// public byte ValidMask; } - /// /// D3D11_TRACE_REGISTER public partial struct TraceRegister @@ -13028,9 +12826,7 @@ public partial struct TraceRegister [FieldOffset(0)] public unsafe fixed ushort Index2D[2]; } - } - /// /// D3D11_TRACE_STEP public partial struct TraceStep @@ -13056,7 +12852,6 @@ public partial struct TraceStep /// public ulong CurrentGlobalCycle; } - #endregion Structs #region COM Types @@ -13070,6 +12865,5 @@ public static unsafe partial class Apis [DllImport("d3d11", ExactSpelling = true)] public static extern HResult D3D11CreateDeviceAndSwapChain(Graphics.Dxgi.IDXGIAdapter* pAdapter, Graphics.Direct3D.DriverType DriverType, IntPtr Software, CreateDeviceFlags Flags, Graphics.Direct3D.FeatureLevel* pFeatureLevels, uint FeatureLevels, uint SDKVersion, Graphics.Dxgi.SwapChainDescription* pSwapChainDesc, Graphics.Dxgi.IDXGISwapChain** ppSwapChain, ID3D11Device** ppDevice, Graphics.Direct3D.FeatureLevel* pFeatureLevel, ID3D11DeviceContext** ppImmediateContext); - } #endregion Functions diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12.cs index 1dfa361..295c615 100644 --- a/src/Vortice.Win32/Generated/Graphics/Direct3D12.cs +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12.cs @@ -6916,7 +6916,6 @@ public enum ShaderVersionType : int /// D3D12_SHVER_RESERVED0 Reserved0 = 65520, } - #endregion Enums #region Structs @@ -6936,7 +6935,6 @@ public partial struct CommandQueueDescription /// public uint NodeMask; } - /// /// D3D12_INPUT_ELEMENT_DESC public partial struct InputElementDescription @@ -6962,7 +6960,6 @@ public partial struct InputElementDescription /// public uint InstanceDataStepRate; } - /// /// D3D12_SO_DECLARATION_ENTRY public partial struct SODeclarationEntry @@ -6985,7 +6982,6 @@ public partial struct SODeclarationEntry /// public byte OutputSlot; } - /// /// D3D12_BOX public partial struct Box @@ -7008,7 +7004,6 @@ public partial struct Box /// public uint back; } - /// /// D3D12_DEPTH_STENCILOP_DESC public partial struct DepthStencilOperationDescription @@ -7025,7 +7020,6 @@ public partial struct DepthStencilOperationDescription /// public ComparisonFunction StencilFunc; } - /// /// D3D12_DEPTH_STENCIL_DESC public partial struct DepthStencilDescription @@ -7054,7 +7048,6 @@ public partial struct DepthStencilDescription /// public DepthStencilOperationDescription BackFace; } - /// /// D3D12_DEPTH_STENCIL_DESC1 public partial struct DepthStencilDescription1 @@ -7086,7 +7079,6 @@ public partial struct DepthStencilDescription1 /// public Bool32 DepthBoundsTestEnable; } - /// /// D3D12_RENDER_TARGET_BLEND_DESC public partial struct RenderTargetBlendDescription @@ -7121,7 +7113,6 @@ public partial struct RenderTargetBlendDescription /// public ColorWriteEnable RenderTargetWriteMask; } - /// /// D3D12_BLEND_DESC public partial struct BlendDescription @@ -7164,7 +7155,6 @@ public partial struct BlendDescription } } } - /// /// D3D12_RASTERIZER_DESC public partial struct RasterizerDescription @@ -7202,7 +7192,6 @@ public partial struct RasterizerDescription /// public ConservativeRasterizationMode ConservativeRaster; } - /// /// D3D12_SHADER_BYTECODE public partial struct ShaderBytecode @@ -7213,7 +7202,6 @@ public partial struct ShaderBytecode /// public nuint BytecodeLength; } - /// /// D3D12_STREAM_OUTPUT_DESC public partial struct StreamOutputDescription @@ -7233,7 +7221,6 @@ public partial struct StreamOutputDescription /// public uint RasterizedStream; } - /// /// D3D12_INPUT_LAYOUT_DESC public partial struct InputLayoutDescription @@ -7244,7 +7231,6 @@ public partial struct InputLayoutDescription /// public uint NumElements; } - /// /// D3D12_CACHED_PIPELINE_STATE public partial struct CachedPipelineState @@ -7255,7 +7241,6 @@ public partial struct CachedPipelineState /// public nuint CachedBlobSizeInBytes; } - /// /// D3D12_GRAPHICS_PIPELINE_STATE_DESC public partial struct GraphicsPipelineStateDescription @@ -7352,7 +7337,6 @@ public partial struct GraphicsPipelineStateDescription /// public PipelineStateFlags Flags; } - /// /// D3D12_COMPUTE_PIPELINE_STATE_DESC public partial struct ComputePipelineStateDescription @@ -7372,7 +7356,6 @@ public partial struct ComputePipelineStateDescription /// public PipelineStateFlags Flags; } - /// /// D3D12_RT_FORMAT_ARRAY public partial struct RtFormatArray @@ -7412,7 +7395,6 @@ public partial struct RtFormatArray /// public uint NumRenderTargets; } - /// /// D3D12_PIPELINE_STATE_STREAM_DESC public partial struct PipelineStateStreamDescription @@ -7423,7 +7405,6 @@ public partial struct PipelineStateStreamDescription /// public unsafe void* pPipelineStateSubobjectStream; } - /// /// D3D12_FEATURE_DATA_D3D12_OPTIONS public partial struct FeatureDataD3D12Options @@ -7473,7 +7454,6 @@ public partial struct FeatureDataD3D12Options /// public ResourceHeapTier ResourceHeapTier; } - /// /// D3D12_FEATURE_DATA_D3D12_OPTIONS1 public partial struct FeatureDataD3D12Options1 @@ -7496,7 +7476,6 @@ public partial struct FeatureDataD3D12Options1 /// public Bool32 Int64ShaderOps; } - /// /// D3D12_FEATURE_DATA_D3D12_OPTIONS2 public partial struct FeatureDataD3D12Options2 @@ -7507,7 +7486,6 @@ public partial struct FeatureDataD3D12Options2 /// public ProgrammableSamplePositionsTier ProgrammableSamplePositionsTier; } - /// /// D3D12_FEATURE_DATA_ROOT_SIGNATURE public partial struct FeatureDataRootSignature @@ -7515,7 +7493,6 @@ public partial struct FeatureDataRootSignature /// public RootSignatureVersion HighestVersion; } - /// /// D3D12_FEATURE_DATA_ARCHITECTURE public partial struct FeatureDataArchitecture @@ -7532,7 +7509,6 @@ public partial struct FeatureDataArchitecture /// public Bool32 CacheCoherentUMA; } - /// /// D3D12_FEATURE_DATA_ARCHITECTURE1 public partial struct FeatureDataArchitecture1 @@ -7552,7 +7528,6 @@ public partial struct FeatureDataArchitecture1 /// public Bool32 IsolatedMMU; } - /// /// D3D12_FEATURE_DATA_FEATURE_LEVELS public partial struct FeatureDataFeatureLevels @@ -7566,7 +7541,6 @@ public partial struct FeatureDataFeatureLevels /// public Graphics.Direct3D.FeatureLevel MaxSupportedFeatureLevel; } - /// /// D3D12_FEATURE_DATA_SHADER_MODEL public partial struct FeatureDataShaderModel @@ -7574,7 +7548,6 @@ public partial struct FeatureDataShaderModel /// public ShaderModel HighestShaderModel; } - /// /// D3D12_FEATURE_DATA_FORMAT_SUPPORT public partial struct FeatureDataFormatSupport @@ -7588,7 +7561,6 @@ public partial struct FeatureDataFormatSupport /// public FormatSupport2 Support2; } - /// /// D3D12_FEATURE_DATA_MULTISAMPLE_QUALITY_LEVELS public partial struct FeatureDataMultisampleQualityLevels @@ -7605,7 +7577,6 @@ public partial struct FeatureDataMultisampleQualityLevels /// public uint NumQualityLevels; } - /// /// D3D12_FEATURE_DATA_FORMAT_INFO public partial struct FeatureDataFormatInfo @@ -7616,7 +7587,6 @@ public partial struct FeatureDataFormatInfo /// public byte PlaneCount; } - /// /// D3D12_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT public partial struct FeatureDataGpuVirtualAddressSupport @@ -7627,7 +7597,6 @@ public partial struct FeatureDataGpuVirtualAddressSupport /// public uint MaxGPUVirtualAddressBitsPerProcess; } - /// /// D3D12_FEATURE_DATA_SHADER_CACHE public partial struct FeatureDataShaderCache @@ -7635,7 +7604,6 @@ public partial struct FeatureDataShaderCache /// public ShaderCacheSupportFlags SupportFlags; } - /// /// D3D12_FEATURE_DATA_COMMAND_QUEUE_PRIORITY public partial struct FeatureDataCommandQueuePriority @@ -7649,7 +7617,6 @@ public partial struct FeatureDataCommandQueuePriority /// public Bool32 PriorityForTypeIsSupported; } - /// /// D3D12_FEATURE_DATA_D3D12_OPTIONS3 public partial struct FeatureDataD3D12Options3 @@ -7669,7 +7636,6 @@ public partial struct FeatureDataD3D12Options3 /// public Bool32 BarycentricsSupported; } - /// /// D3D12_FEATURE_DATA_EXISTING_HEAPS public partial struct FeatureDataExistingHeaps @@ -7677,7 +7643,6 @@ public partial struct FeatureDataExistingHeaps /// public Bool32 Supported; } - /// /// D3D12_FEATURE_DATA_DISPLAYABLE public partial struct FeatureDataDisplayable @@ -7688,7 +7653,6 @@ public partial struct FeatureDataDisplayable /// public SharedResourceCompatibilityTier SharedResourceCompatibilityTier; } - /// /// D3D12_FEATURE_DATA_D3D12_OPTIONS4 public partial struct FeatureDataD3D12Options4 @@ -7702,7 +7666,6 @@ public partial struct FeatureDataD3D12Options4 /// public Bool32 Native16BitShaderOpsSupported; } - /// /// D3D12_FEATURE_DATA_SERIALIZATION public partial struct FeatureDataSerialization @@ -7713,7 +7676,6 @@ public partial struct FeatureDataSerialization /// public HeapSerializationTier HeapSerializationTier; } - /// /// D3D12_FEATURE_DATA_CROSS_NODE public partial struct FeatureDataCrossNode @@ -7724,7 +7686,6 @@ public partial struct FeatureDataCrossNode /// public Bool32 AtomicShaderInstructions; } - /// /// D3D12_FEATURE_DATA_D3D12_OPTIONS5 public partial struct FeatureDataD3D12Options5 @@ -7738,7 +7699,6 @@ public partial struct FeatureDataD3D12Options5 /// public RaytracingTier RaytracingTier; } - /// /// D3D12_FEATURE_DATA_D3D12_OPTIONS6 public partial struct FeatureDataD3D12Options6 @@ -7758,7 +7718,6 @@ public partial struct FeatureDataD3D12Options6 /// public Bool32 BackgroundProcessingSupported; } - /// /// D3D12_FEATURE_DATA_D3D12_OPTIONS7 public partial struct FeatureDataD3D12Options7 @@ -7769,7 +7728,6 @@ public partial struct FeatureDataD3D12Options7 /// public SamplerFeedbackTier SamplerFeedbackTier; } - /// /// D3D12_FEATURE_DATA_QUERY_META_COMMAND public partial struct FeatureDataQueryMetaCommand @@ -7792,7 +7750,6 @@ public partial struct FeatureDataQueryMetaCommand /// public nuint QueryOutputDataSizeInBytes; } - /// /// D3D12_FEATURE_DATA_D3D12_OPTIONS8 public partial struct FeatureDataD3D12Options8 @@ -7800,7 +7757,6 @@ public partial struct FeatureDataD3D12Options8 /// public Bool32 UnalignedBlockTexturesSupported; } - /// /// D3D12_FEATURE_DATA_D3D12_OPTIONS9 public partial struct FeatureDataD3D12Options9 @@ -7823,7 +7779,6 @@ public partial struct FeatureDataD3D12Options9 /// public WaveMmaTier WaveMMATier; } - /// /// D3D12_FEATURE_DATA_D3D12_OPTIONS10 public partial struct FeatureDataD3D12Options10 @@ -7834,7 +7789,6 @@ public partial struct FeatureDataD3D12Options10 /// public Bool32 MeshShaderPerPrimitiveShadingRateSupported; } - /// /// D3D12_FEATURE_DATA_D3D12_OPTIONS11 public partial struct FeatureDataD3D12Options11 @@ -7842,7 +7796,6 @@ public partial struct FeatureDataD3D12Options11 /// public Bool32 AtomicInt64OnDescriptorHeapResourceSupported; } - /// /// D3D12_RESOURCE_ALLOCATION_INFO public partial struct ResourceAllocationInfo @@ -7853,7 +7806,6 @@ public partial struct ResourceAllocationInfo /// public ulong Alignment; } - /// /// D3D12_RESOURCE_ALLOCATION_INFO1 public partial struct ResourceAllocationInfo1 @@ -7867,7 +7819,6 @@ public partial struct ResourceAllocationInfo1 /// public ulong SizeInBytes; } - /// /// D3D12_HEAP_PROPERTIES public partial struct HeapProperties @@ -7887,7 +7838,6 @@ public partial struct HeapProperties /// public uint VisibleNodeMask; } - /// /// D3D12_HEAP_DESC public partial struct HeapDescription @@ -7904,7 +7854,6 @@ public partial struct HeapDescription /// public HeapFlags Flags; } - /// /// D3D12_MIP_REGION public partial struct MipRegion @@ -7918,7 +7867,6 @@ public partial struct MipRegion /// public uint Depth; } - /// /// D3D12_RESOURCE_DESC public partial struct ResourceDescription @@ -7953,7 +7901,6 @@ public partial struct ResourceDescription /// public ResourceFlags Flags; } - /// /// D3D12_RESOURCE_DESC1 public partial struct ResourceDescription1 @@ -7991,7 +7938,6 @@ public partial struct ResourceDescription1 /// public MipRegion SamplerFeedbackMipRegion; } - /// /// D3D12_DEPTH_STENCIL_VALUE public partial struct DepthStencilValue @@ -8002,7 +7948,6 @@ public partial struct DepthStencilValue /// public byte Stencil; } - /// /// D3D12_CLEAR_VALUE public partial struct ClearValue @@ -8044,9 +7989,7 @@ public partial struct ClearValue [FieldOffset(0)] public DepthStencilValue DepthStencil; } - } - /// /// D3D12_RANGE public partial struct Range @@ -8057,7 +8000,6 @@ public partial struct Range /// public nuint End; } - /// /// D3D12_RANGE_UINT64 public partial struct RangeUInt64 @@ -8068,7 +8010,6 @@ public partial struct RangeUInt64 /// public ulong End; } - /// /// D3D12_SUBRESOURCE_RANGE_UINT64 public partial struct SubresourceRangeUInt64 @@ -8079,7 +8020,6 @@ public partial struct SubresourceRangeUInt64 /// public RangeUInt64 Range; } - /// /// D3D12_SUBRESOURCE_INFO public partial struct SubresourceInfo @@ -8093,7 +8033,6 @@ public partial struct SubresourceInfo /// public uint DepthPitch; } - /// /// D3D12_TILED_RESOURCE_COORDINATE public partial struct TiledResourceCoordinate @@ -8110,7 +8049,6 @@ public partial struct TiledResourceCoordinate /// public uint Subresource; } - /// /// D3D12_TILE_REGION_SIZE public partial struct TileRegionSize @@ -8130,7 +8068,6 @@ public partial struct TileRegionSize /// public ushort Depth; } - /// /// D3D12_SUBRESOURCE_TILING public partial struct SubresourceTiling @@ -8147,7 +8084,6 @@ public partial struct SubresourceTiling /// public uint StartTileIndexInOverallResource; } - /// /// D3D12_TILE_SHAPE public partial struct TileShape @@ -8161,7 +8097,6 @@ public partial struct TileShape /// public uint DepthInTexels; } - /// /// D3D12_PACKED_MIP_INFO public partial struct PackedMipInfo @@ -8178,7 +8113,6 @@ public partial struct PackedMipInfo /// public uint StartTileIndexInOverallResource; } - /// /// D3D12_RESOURCE_TRANSITION_BARRIER public partial struct ResourceTransitionBarrier @@ -8195,7 +8129,6 @@ public partial struct ResourceTransitionBarrier /// public ResourceStates StateAfter; } - /// /// D3D12_RESOURCE_ALIASING_BARRIER public partial struct ResourceAliasingBarrier @@ -8206,7 +8139,6 @@ public partial struct ResourceAliasingBarrier /// public unsafe ID3D12Resource* pResourceAfter; } - /// /// D3D12_RESOURCE_UAV_BARRIER public partial struct ResourceUavBarrier @@ -8214,7 +8146,6 @@ public partial struct ResourceUavBarrier /// public unsafe ID3D12Resource* pResource; } - /// /// D3D12_RESOURCE_BARRIER public partial struct ResourceBarrier @@ -8273,9 +8204,7 @@ public partial struct ResourceBarrier [FieldOffset(0)] public ResourceUavBarrier UAV; } - } - /// /// D3D12_SUBRESOURCE_FOOTPRINT public partial struct SubresourceFootprint @@ -8295,7 +8224,6 @@ public partial struct SubresourceFootprint /// public uint RowPitch; } - /// /// D3D12_PLACED_SUBRESOURCE_FOOTPRINT public partial struct PlacedSubresourceFootprint @@ -8306,7 +8234,6 @@ public partial struct PlacedSubresourceFootprint /// public SubresourceFootprint Footprint; } - /// /// D3D12_TEXTURE_COPY_LOCATION public partial struct TextureCopyLocation @@ -8351,9 +8278,7 @@ public partial struct TextureCopyLocation [FieldOffset(0)] public uint SubresourceIndex; } - } - /// /// D3D12_SAMPLE_POSITION public partial struct SamplePosition @@ -8364,7 +8289,6 @@ public partial struct SamplePosition /// public sbyte Y; } - /// /// D3D12_VIEW_INSTANCE_LOCATION public partial struct ViewInstanceLocation @@ -8375,7 +8299,6 @@ public partial struct ViewInstanceLocation /// public uint RenderTargetArrayIndex; } - /// /// D3D12_VIEW_INSTANCING_DESC public partial struct ViewInstancingDescription @@ -8389,7 +8312,6 @@ public partial struct ViewInstancingDescription /// public ViewInstancingFlags Flags; } - /// /// D3D12_BUFFER_SRV public partial struct BufferSrv @@ -8406,7 +8328,6 @@ public partial struct BufferSrv /// public BufferSrvFlags Flags; } - /// /// D3D12_TEX1D_SRV public partial struct Texture1DSrv @@ -8420,7 +8341,6 @@ public partial struct Texture1DSrv /// public float ResourceMinLODClamp; } - /// /// D3D12_TEX1D_ARRAY_SRV public partial struct Texture1DArraySrv @@ -8440,7 +8360,6 @@ public partial struct Texture1DArraySrv /// public float ResourceMinLODClamp; } - /// /// D3D12_TEX2D_SRV public partial struct Texture2DSrv @@ -8457,7 +8376,6 @@ public partial struct Texture2DSrv /// public float ResourceMinLODClamp; } - /// /// D3D12_TEX2D_ARRAY_SRV public partial struct Texture2DArraySrv @@ -8480,7 +8398,6 @@ public partial struct Texture2DArraySrv /// public float ResourceMinLODClamp; } - /// /// D3D12_TEX3D_SRV public partial struct Texture3DSrv @@ -8494,7 +8411,6 @@ public partial struct Texture3DSrv /// public float ResourceMinLODClamp; } - /// /// D3D12_TEXCUBE_SRV public partial struct TexureCubeSrv @@ -8508,7 +8424,6 @@ public partial struct TexureCubeSrv /// public float ResourceMinLODClamp; } - /// /// D3D12_TEXCUBE_ARRAY_SRV public partial struct TexureCubeArraySrv @@ -8528,7 +8443,6 @@ public partial struct TexureCubeArraySrv /// public float ResourceMinLODClamp; } - /// /// D3D12_TEX2DMS_SRV public partial struct Texture2DMsSrv @@ -8536,7 +8450,6 @@ public partial struct Texture2DMsSrv /// public uint UnusedField_NothingToDefine; } - /// /// D3D12_TEX2DMS_ARRAY_SRV public partial struct Texture2DMsArraySrv @@ -8547,7 +8460,6 @@ public partial struct Texture2DMsArraySrv /// public uint ArraySize; } - /// /// D3D12_RAYTRACING_ACCELERATION_STRUCTURE_SRV public partial struct RaytracingAccelerationStructureSrv @@ -8555,7 +8467,6 @@ public partial struct RaytracingAccelerationStructureSrv /// public ulong Location; } - /// /// D3D12_SHADER_RESOURCE_VIEW_DESC public partial struct ShaderResourceViewDescription @@ -8729,9 +8640,7 @@ public partial struct ShaderResourceViewDescription [FieldOffset(0)] public RaytracingAccelerationStructureSrv RaytracingAccelerationStructure; } - } - /// /// D3D12_CONSTANT_BUFFER_VIEW_DESC public partial struct ConstantBufferViewDescription @@ -8742,7 +8651,6 @@ public partial struct ConstantBufferViewDescription /// public uint SizeInBytes; } - /// /// D3D12_SAMPLER_DESC public partial struct SamplerDescription @@ -8777,7 +8685,6 @@ public partial struct SamplerDescription /// public float MaxLOD; } - /// /// D3D12_BUFFER_UAV public partial struct BufferUav @@ -8797,7 +8704,6 @@ public partial struct BufferUav /// public BufferUavFlags Flags; } - /// /// D3D12_TEX1D_UAV public partial struct Texture1DUav @@ -8805,7 +8711,6 @@ public partial struct Texture1DUav /// public uint MipSlice; } - /// /// D3D12_TEX1D_ARRAY_UAV public partial struct Texture1DArrayUav @@ -8819,7 +8724,6 @@ public partial struct Texture1DArrayUav /// public uint ArraySize; } - /// /// D3D12_TEX2D_UAV public partial struct Texture2DUav @@ -8830,7 +8734,6 @@ public partial struct Texture2DUav /// public uint PlaneSlice; } - /// /// D3D12_TEX2D_ARRAY_UAV public partial struct Texture2DArrayUav @@ -8847,7 +8750,6 @@ public partial struct Texture2DArrayUav /// public uint PlaneSlice; } - /// /// D3D12_TEX3D_UAV public partial struct Texture3DUav @@ -8861,7 +8763,6 @@ public partial struct Texture3DUav /// public uint WSize; } - /// /// D3D12_UNORDERED_ACCESS_VIEW_DESC public partial struct UnorderedAccessViewDescription @@ -8962,9 +8863,7 @@ public partial struct UnorderedAccessViewDescription [FieldOffset(0)] public Texture3DUav Texture3D; } - } - /// /// D3D12_BUFFER_RTV public partial struct BufferRtv @@ -8975,7 +8874,6 @@ public partial struct BufferRtv /// public uint NumElements; } - /// /// D3D12_TEX1D_RTV public partial struct Texture1DRtv @@ -8983,7 +8881,6 @@ public partial struct Texture1DRtv /// public uint MipSlice; } - /// /// D3D12_TEX1D_ARRAY_RTV public partial struct Texture1DArrayRtv @@ -8997,7 +8894,6 @@ public partial struct Texture1DArrayRtv /// public uint ArraySize; } - /// /// D3D12_TEX2D_RTV public partial struct Texture2DRtv @@ -9008,7 +8904,6 @@ public partial struct Texture2DRtv /// public uint PlaneSlice; } - /// /// D3D12_TEX2DMS_RTV public partial struct Texture2DMsRtv @@ -9016,7 +8911,6 @@ public partial struct Texture2DMsRtv /// public uint UnusedField_NothingToDefine; } - /// /// D3D12_TEX2D_ARRAY_RTV public partial struct Texture2DArrayRtv @@ -9033,7 +8927,6 @@ public partial struct Texture2DArrayRtv /// public uint PlaneSlice; } - /// /// D3D12_TEX2DMS_ARRAY_RTV public partial struct Texture2DMsArrayRtv @@ -9044,7 +8937,6 @@ public partial struct Texture2DMsArrayRtv /// public uint ArraySize; } - /// /// D3D12_TEX3D_RTV public partial struct Texture3DRtv @@ -9058,7 +8950,6 @@ public partial struct Texture3DRtv /// public uint WSize; } - /// /// D3D12_RENDER_TARGET_VIEW_DESC public partial struct RenderTargetViewDescription @@ -9187,9 +9078,7 @@ public partial struct RenderTargetViewDescription [FieldOffset(0)] public Texture3DRtv Texture3D; } - } - /// /// D3D12_TEX1D_DSV public partial struct Texture1DDsv @@ -9197,7 +9086,6 @@ public partial struct Texture1DDsv /// public uint MipSlice; } - /// /// D3D12_TEX1D_ARRAY_DSV public partial struct Texture1DArrayDsv @@ -9211,7 +9099,6 @@ public partial struct Texture1DArrayDsv /// public uint ArraySize; } - /// /// D3D12_TEX2D_DSV public partial struct Texture2DDsv @@ -9219,7 +9106,6 @@ public partial struct Texture2DDsv /// public uint MipSlice; } - /// /// D3D12_TEX2D_ARRAY_DSV public partial struct Texture2DArrayDsv @@ -9233,7 +9119,6 @@ public partial struct Texture2DArrayDsv /// public uint ArraySize; } - /// /// D3D12_TEX2DMS_DSV public partial struct Texture2DMsDsv @@ -9241,7 +9126,6 @@ public partial struct Texture2DMsDsv /// public uint UnusedField_NothingToDefine; } - /// /// D3D12_TEX2DMS_ARRAY_DSV public partial struct Texture2DMsArrayDsv @@ -9252,7 +9136,6 @@ public partial struct Texture2DMsArrayDsv /// public uint ArraySize; } - /// /// D3D12_DEPTH_STENCIL_VIEW_DESC public partial struct DepthStencilViewDescription @@ -9356,9 +9239,7 @@ public partial struct DepthStencilViewDescription [FieldOffset(0)] public Texture2DMsArrayDsv Texture2DMSArray; } - } - /// /// D3D12_DESCRIPTOR_HEAP_DESC public partial struct DescriptorHeapDescription @@ -9375,7 +9256,6 @@ public partial struct DescriptorHeapDescription /// public uint NodeMask; } - /// /// D3D12_DESCRIPTOR_RANGE public partial struct DescriptorRange @@ -9395,7 +9275,6 @@ public partial struct DescriptorRange /// public uint OffsetInDescriptorsFromTableStart; } - /// /// D3D12_ROOT_DESCRIPTOR_TABLE public partial struct RootDescriptorTable @@ -9406,7 +9285,6 @@ public partial struct RootDescriptorTable /// public unsafe DescriptorRange* pDescriptorRanges; } - /// /// D3D12_ROOT_CONSTANTS public partial struct RootConstants @@ -9420,7 +9298,6 @@ public partial struct RootConstants /// public uint Num32BitValues; } - /// /// D3D12_ROOT_DESCRIPTOR public partial struct RootDescriptor @@ -9431,7 +9308,6 @@ public partial struct RootDescriptor /// public uint RegisterSpace; } - /// /// D3D12_ROOT_PARAMETER public partial struct RootParameter @@ -9490,9 +9366,7 @@ public partial struct RootParameter [FieldOffset(0)] public RootDescriptor Descriptor; } - } - /// /// D3D12_STATIC_SAMPLER_DESC public partial struct StaticSamplerDescription @@ -9536,7 +9410,6 @@ public partial struct StaticSamplerDescription /// public ShaderVisibility ShaderVisibility; } - /// /// D3D12_ROOT_SIGNATURE_DESC public partial struct RootSignatureDescription @@ -9556,7 +9429,6 @@ public partial struct RootSignatureDescription /// public RootSignatureFlags Flags; } - /// /// D3D12_DESCRIPTOR_RANGE1 public partial struct DescriptorRange1 @@ -9579,7 +9451,6 @@ public partial struct DescriptorRange1 /// public uint OffsetInDescriptorsFromTableStart; } - /// /// D3D12_ROOT_DESCRIPTOR_TABLE1 public partial struct RootDescriptorTable1 @@ -9590,7 +9461,6 @@ public partial struct RootDescriptorTable1 /// public unsafe DescriptorRange1* pDescriptorRanges; } - /// /// D3D12_ROOT_DESCRIPTOR1 public partial struct RootDescriptor1 @@ -9604,7 +9474,6 @@ public partial struct RootDescriptor1 /// public RootDescriptorFlags Flags; } - /// /// D3D12_ROOT_PARAMETER1 public partial struct RootParameter1 @@ -9663,9 +9532,7 @@ public partial struct RootParameter1 [FieldOffset(0)] public RootDescriptor1 Descriptor; } - } - /// /// D3D12_ROOT_SIGNATURE_DESC1 public partial struct RootSignatureDescription1 @@ -9685,7 +9552,6 @@ public partial struct RootSignatureDescription1 /// public RootSignatureFlags Flags; } - /// /// D3D12_VERSIONED_ROOT_SIGNATURE_DESC public partial struct VersionedRootSignatureDescription @@ -9727,9 +9593,7 @@ public partial struct VersionedRootSignatureDescription [FieldOffset(0)] public RootSignatureDescription1 Desc_1_1; } - } - /// /// D3D12_CPU_DESCRIPTOR_HANDLE public partial struct CpuDescriptorHandle @@ -9737,7 +9601,6 @@ public partial struct CpuDescriptorHandle /// public nuint ptr; } - /// /// D3D12_GPU_DESCRIPTOR_HANDLE public partial struct GpuDescriptorHandle @@ -9745,7 +9608,6 @@ public partial struct GpuDescriptorHandle /// public ulong ptr; } - /// /// D3D12_DISCARD_REGION public partial struct DiscardRegion @@ -9762,7 +9624,6 @@ public partial struct DiscardRegion /// public uint NumSubresources; } - /// /// D3D12_QUERY_HEAP_DESC public partial struct QueryHeapDescription @@ -9776,7 +9637,6 @@ public partial struct QueryHeapDescription /// public uint NodeMask; } - /// /// D3D12_QUERY_DATA_PIPELINE_STATISTICS public partial struct QueryDataPipelineStatistics @@ -9814,7 +9674,6 @@ public partial struct QueryDataPipelineStatistics /// public ulong CSInvocations; } - /// /// D3D12_QUERY_DATA_PIPELINE_STATISTICS1 public partial struct QueryDataPipelineStatistics1 @@ -9861,7 +9720,6 @@ public partial struct QueryDataPipelineStatistics1 /// public ulong MSPrimitives; } - /// /// D3D12_QUERY_DATA_SO_STATISTICS public partial struct QueryDataSOStatistics @@ -9872,7 +9730,6 @@ public partial struct QueryDataSOStatistics /// public ulong PrimitivesStorageNeeded; } - /// /// D3D12_STREAM_OUTPUT_BUFFER_VIEW public partial struct StreamOutputBufferView @@ -9886,7 +9743,6 @@ public partial struct StreamOutputBufferView /// public ulong BufferFilledSizeLocation; } - /// /// D3D12_DRAW_ARGUMENTS public partial struct DrawArguments @@ -9903,7 +9759,6 @@ public partial struct DrawArguments /// public uint StartInstanceLocation; } - /// /// D3D12_DRAW_INDEXED_ARGUMENTS public partial struct DrawIndexedArguments @@ -9923,7 +9778,6 @@ public partial struct DrawIndexedArguments /// public uint StartInstanceLocation; } - /// /// D3D12_DISPATCH_ARGUMENTS public partial struct DispatchArguments @@ -9937,7 +9791,6 @@ public partial struct DispatchArguments /// public uint ThreadGroupCountZ; } - /// /// D3D12_VERTEX_BUFFER_VIEW public partial struct VertexBufferView @@ -9951,7 +9804,6 @@ public partial struct VertexBufferView /// public uint StrideInBytes; } - /// /// D3D12_INDEX_BUFFER_VIEW public partial struct IndexBufferView @@ -9965,7 +9817,6 @@ public partial struct IndexBufferView /// public Graphics.Dxgi.Common.Format Format; } - /// /// D3D12_INDIRECT_ARGUMENT_DESC public partial struct IndirectArgumentDescription @@ -10054,7 +9905,6 @@ public partial struct IndirectArgumentDescription /// public uint RootParameterIndex; } - public partial struct _Constant_e__Struct { /// @@ -10066,29 +9916,23 @@ public partial struct IndirectArgumentDescription /// public uint Num32BitValuesToSet; } - public partial struct _UnorderedAccessView_e__Struct { /// public uint RootParameterIndex; } - public partial struct _VertexBuffer_e__Struct { /// public uint Slot; } - public partial struct _ConstantBufferView_e__Struct { /// public uint RootParameterIndex; } - } - } - /// /// D3D12_COMMAND_SIGNATURE_DESC public partial struct CommandSignatureDescription @@ -10105,7 +9949,6 @@ public partial struct CommandSignatureDescription /// public uint NodeMask; } - /// /// D3D12_WRITEBUFFERIMMEDIATE_PARAMETER public partial struct WriteBufferImmediateParameter @@ -10116,7 +9959,6 @@ public partial struct WriteBufferImmediateParameter /// public uint Value; } - /// /// D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_SUPPORT public partial struct FeatureDataProtectedResourceSessionSupport @@ -10127,7 +9969,6 @@ public partial struct FeatureDataProtectedResourceSessionSupport /// public ProtectedResourceSessionSupportFlags Support; } - /// /// D3D12_PROTECTED_RESOURCE_SESSION_DESC public partial struct ProtectedResourceSessionDescription @@ -10138,7 +9979,6 @@ public partial struct ProtectedResourceSessionDescription /// public ProtectedResourceSessionFlags Flags; } - /// /// D3D12_META_COMMAND_PARAMETER_DESC public partial struct MetaCommandParameterDescription @@ -10158,7 +9998,6 @@ public partial struct MetaCommandParameterDescription /// public uint StructureOffset; } - /// /// D3D12_META_COMMAND_DESC public partial struct MetaCommandDescription @@ -10175,7 +10014,6 @@ public partial struct MetaCommandDescription /// public GraphicsStates ExecutionDirtyState; } - /// /// D3D12_STATE_SUBOBJECT public partial struct StateSubObject @@ -10186,7 +10024,6 @@ public partial struct StateSubObject /// public unsafe void* pDesc; } - /// /// D3D12_STATE_OBJECT_CONFIG public partial struct StateObjectConfig @@ -10194,7 +10031,6 @@ public partial struct StateObjectConfig /// public StateObjectFlags Flags; } - /// /// D3D12_GLOBAL_ROOT_SIGNATURE public partial struct GlobalRootSignature @@ -10202,7 +10038,6 @@ public partial struct GlobalRootSignature /// public unsafe ID3D12RootSignature* pGlobalRootSignature; } - /// /// D3D12_LOCAL_ROOT_SIGNATURE public partial struct LocalRootSignature @@ -10210,7 +10045,6 @@ public partial struct LocalRootSignature /// public unsafe ID3D12RootSignature* pLocalRootSignature; } - /// /// D3D12_NODE_MASK public partial struct NodeMask @@ -10218,7 +10052,6 @@ public partial struct NodeMask /// public uint Mask; } - /// /// D3D12_EXPORT_DESC public partial struct ExportDescription @@ -10232,7 +10065,6 @@ public partial struct ExportDescription /// public ExportFlags Flags; } - /// /// D3D12_DXIL_LIBRARY_DESC public partial struct DxilLibraryDescription @@ -10246,7 +10078,6 @@ public partial struct DxilLibraryDescription /// public unsafe ExportDescription* pExports; } - /// /// D3D12_EXISTING_COLLECTION_DESC public partial struct ExistingCollectionDescription @@ -10260,7 +10091,6 @@ public partial struct ExistingCollectionDescription /// public unsafe ExportDescription* pExports; } - /// /// D3D12_SUBOBJECT_TO_EXPORTS_ASSOCIATION public partial struct SubObjectToExportsAssociation @@ -10274,7 +10104,6 @@ public partial struct SubObjectToExportsAssociation /// public unsafe ushort** pExports; } - /// /// D3D12_DXIL_SUBOBJECT_TO_EXPORTS_ASSOCIATION public partial struct DxilSubObjectToExportsAssociation @@ -10288,7 +10117,6 @@ public partial struct DxilSubObjectToExportsAssociation /// public unsafe ushort** pExports; } - /// /// D3D12_HIT_GROUP_DESC public partial struct HitGroupDescription @@ -10308,7 +10136,6 @@ public partial struct HitGroupDescription /// public unsafe ushort* IntersectionShaderImport; } - /// /// D3D12_RAYTRACING_SHADER_CONFIG public partial struct RaytracingShaderConfig @@ -10319,7 +10146,6 @@ public partial struct RaytracingShaderConfig /// public uint MaxAttributeSizeInBytes; } - /// /// D3D12_RAYTRACING_PIPELINE_CONFIG public partial struct RaytracingPipelineConfig @@ -10327,7 +10153,6 @@ public partial struct RaytracingPipelineConfig /// public uint MaxTraceRecursionDepth; } - /// /// D3D12_RAYTRACING_PIPELINE_CONFIG1 public partial struct RaytracingPipelineConfig1 @@ -10338,7 +10163,6 @@ public partial struct RaytracingPipelineConfig1 /// public RaytracingPipelineFlags Flags; } - /// /// D3D12_STATE_OBJECT_DESC public partial struct StateObjectDescription @@ -10352,7 +10176,6 @@ public partial struct StateObjectDescription /// public unsafe StateSubObject* pSubobjects; } - /// /// D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE public partial struct GpuVirtualAddressAndStride @@ -10363,7 +10186,6 @@ public partial struct GpuVirtualAddressAndStride /// public ulong StrideInBytes; } - /// /// D3D12_GPU_VIRTUAL_ADDRESS_RANGE public partial struct GpuVirtualAddressRange @@ -10374,7 +10196,6 @@ public partial struct GpuVirtualAddressRange /// public ulong SizeInBytes; } - /// /// D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE public partial struct GpuVirtualAddressRangeAndStride @@ -10388,7 +10209,6 @@ public partial struct GpuVirtualAddressRangeAndStride /// public ulong StrideInBytes; } - /// /// D3D12_RAYTRACING_GEOMETRY_TRIANGLES_DESC public partial struct RaytracingGeometryTrianglesDescription @@ -10414,7 +10234,6 @@ public partial struct RaytracingGeometryTrianglesDescription /// public GpuVirtualAddressAndStride VertexBuffer; } - /// /// D3D12_RAYTRACING_AABB public partial struct RaytracingAabb @@ -10437,7 +10256,6 @@ public partial struct RaytracingAabb /// public float MaxZ; } - /// /// D3D12_RAYTRACING_GEOMETRY_AABBS_DESC public partial struct RaytracingGeometryAabbsDescription @@ -10448,7 +10266,6 @@ public partial struct RaytracingGeometryAabbsDescription /// public GpuVirtualAddressAndStride AABBs; } - /// /// D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC public partial struct RaytracingAccelerationStructurePostbuildInfoDescription @@ -10459,7 +10276,6 @@ public partial struct RaytracingAccelerationStructurePostbuildInfoDescription /// public RaytracingAccelerationStructurePostbuildInfoType InfoType; } - /// /// D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_COMPACTED_SIZE_DESC public partial struct RaytracingAccelerationStructurePostbuildInfoCompactedSizeDescription @@ -10467,7 +10283,6 @@ public partial struct RaytracingAccelerationStructurePostbuildInfoCompactedSizeD /// public ulong CompactedSizeInBytes; } - /// /// D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TOOLS_VISUALIZATION_DESC public partial struct RaytracingAccelerationStructurePostbuildInfoToolsVisualizationDescription @@ -10475,7 +10290,6 @@ public partial struct RaytracingAccelerationStructurePostbuildInfoToolsVisualiza /// public ulong DecodedSizeInBytes; } - /// /// D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_TOOLS_VISUALIZATION_HEADER public partial struct BuildRaytracingAccelerationStructureToolsVisualizationHeader @@ -10486,7 +10300,6 @@ public partial struct BuildRaytracingAccelerationStructureToolsVisualizationHead /// public uint NumDescs; } - /// /// D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_SERIALIZATION_DESC public partial struct RaytracingAccelerationStructurePostbuildInfoSerializationDescription @@ -10497,7 +10310,6 @@ public partial struct RaytracingAccelerationStructurePostbuildInfoSerializationD /// public ulong NumBottomLevelAccelerationStructurePointers; } - /// /// D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER public partial struct SerializedDataDriverMatchingIdentifier @@ -10508,7 +10320,6 @@ public partial struct SerializedDataDriverMatchingIdentifier /// public unsafe fixed byte DriverOpaqueVersioningData[16]; } - /// /// D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER public partial struct SerializedRaytracingAccelerationStructureHeader @@ -10525,7 +10336,6 @@ public partial struct SerializedRaytracingAccelerationStructureHeader /// public ulong NumBottomLevelAccelerationStructurePointersAfterHeader; } - /// /// D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_CURRENT_SIZE_DESC public partial struct RaytracingAccelerationStructurePostbuildInfoCurrentSizeDescription @@ -10533,7 +10343,6 @@ public partial struct RaytracingAccelerationStructurePostbuildInfoCurrentSizeDes /// public ulong CurrentSizeInBytes; } - /// /// D3D12_RAYTRACING_INSTANCE_DESC public partial struct RaytracingInstanceDescription @@ -10550,7 +10359,6 @@ public partial struct RaytracingInstanceDescription /// public ulong AccelerationStructure; } - /// /// D3D12_RAYTRACING_GEOMETRY_DESC public partial struct RaytracingGeometryDescription @@ -10595,9 +10403,7 @@ public partial struct RaytracingGeometryDescription [FieldOffset(0)] public RaytracingGeometryAabbsDescription AABBs; } - } - /// /// D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS public partial struct BuildRaytracingAccelerationStructureInputs @@ -10662,9 +10468,7 @@ public partial struct BuildRaytracingAccelerationStructureInputs [FieldOffset(0)] public unsafe RaytracingGeometryDescription** ppGeometryDescs; } - } - /// /// D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC public partial struct BuildRaytracingAccelerationStructureDescription @@ -10681,7 +10485,6 @@ public partial struct BuildRaytracingAccelerationStructureDescription /// public ulong ScratchAccelerationStructureData; } - /// /// D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO public partial struct RaytracingAccelerationStructurePrebuildInfo @@ -10695,7 +10498,6 @@ public partial struct RaytracingAccelerationStructurePrebuildInfo /// public ulong UpdateScratchDataSizeInBytes; } - /// /// D3D12_AUTO_BREADCRUMB_NODE public partial struct AutoBreadcrumbNode @@ -10730,7 +10532,6 @@ public partial struct AutoBreadcrumbNode /// public unsafe AutoBreadcrumbNode* pNext; } - /// /// D3D12_DRED_BREADCRUMB_CONTEXT public partial struct DredBreadcrumbContext @@ -10741,7 +10542,6 @@ public partial struct DredBreadcrumbContext /// public unsafe ushort* pContextString; } - /// /// D3D12_AUTO_BREADCRUMB_NODE1 public partial struct AutoBreadcrumbNode1 @@ -10782,7 +10582,6 @@ public partial struct AutoBreadcrumbNode1 /// public unsafe DredBreadcrumbContext* pBreadcrumbContexts; } - /// /// D3D12_DEVICE_REMOVED_EXTENDED_DATA public partial struct DeviceRemovedExtendedData @@ -10793,7 +10592,6 @@ public partial struct DeviceRemovedExtendedData /// public unsafe AutoBreadcrumbNode* pHeadAutoBreadcrumbNode; } - /// /// D3D12_DRED_ALLOCATION_NODE public partial struct DredAllocationNode @@ -10810,7 +10608,6 @@ public partial struct DredAllocationNode /// public unsafe DredAllocationNode* pNext; } - /// /// D3D12_DRED_ALLOCATION_NODE1 public partial struct DredAllocationNode1 @@ -10830,7 +10627,6 @@ public partial struct DredAllocationNode1 /// public IUnknown pObject; } - /// /// D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT public partial struct DredAutoBreadcrumbsOutput @@ -10838,7 +10634,6 @@ public partial struct DredAutoBreadcrumbsOutput /// public unsafe AutoBreadcrumbNode* pHeadAutoBreadcrumbNode; } - /// /// D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1 public partial struct DredAutoBreadcrumbsOutput1 @@ -10846,7 +10641,6 @@ public partial struct DredAutoBreadcrumbsOutput1 /// public unsafe AutoBreadcrumbNode1* pHeadAutoBreadcrumbNode; } - /// /// D3D12_DRED_PAGE_FAULT_OUTPUT public partial struct DredPageFaultOutput @@ -10860,7 +10654,6 @@ public partial struct DredPageFaultOutput /// public unsafe DredAllocationNode* pHeadRecentFreedAllocationNode; } - /// /// D3D12_DRED_PAGE_FAULT_OUTPUT1 public partial struct DredPageFaultOutput1 @@ -10874,7 +10667,6 @@ public partial struct DredPageFaultOutput1 /// public unsafe DredAllocationNode1* pHeadRecentFreedAllocationNode; } - /// /// D3D12_DRED_PAGE_FAULT_OUTPUT2 public partial struct DredPageFaultOutput2 @@ -10891,7 +10683,6 @@ public partial struct DredPageFaultOutput2 /// public DredPageFaultFlags PageFaultFlags; } - /// /// D3D12_DEVICE_REMOVED_EXTENDED_DATA1 public partial struct DeviceRemovedExtendedData1 @@ -10905,7 +10696,6 @@ public partial struct DeviceRemovedExtendedData1 /// public DredPageFaultOutput PageFaultOutput; } - /// /// D3D12_DEVICE_REMOVED_EXTENDED_DATA2 public partial struct DeviceRemovedExtendedData2 @@ -10919,7 +10709,6 @@ public partial struct DeviceRemovedExtendedData2 /// public DredPageFaultOutput1 PageFaultOutput; } - /// /// D3D12_DEVICE_REMOVED_EXTENDED_DATA3 public partial struct DeviceRemovedExtendedData3 @@ -10936,7 +10725,6 @@ public partial struct DeviceRemovedExtendedData3 /// public DredDeviceState DeviceState; } - /// /// D3D12_VERSIONED_DEVICE_REMOVED_EXTENDED_DATA public partial struct VersionedDeviceRemovedExtendedData @@ -11006,9 +10794,7 @@ public partial struct VersionedDeviceRemovedExtendedData [FieldOffset(0)] public DeviceRemovedExtendedData3 Dred_1_3; } - } - /// /// D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPE_COUNT public partial struct FeatureDataProtectedResourceSessionTypeCount @@ -11019,7 +10805,6 @@ public partial struct FeatureDataProtectedResourceSessionTypeCount /// public uint Count; } - /// /// D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPES public partial struct FeatureDataProtectedResourceSessionTypes @@ -11033,7 +10818,6 @@ public partial struct FeatureDataProtectedResourceSessionTypes /// public unsafe Guid* pTypes; } - /// /// D3D12_PROTECTED_RESOURCE_SESSION_DESC1 public partial struct ProtectedResourceSessionDescription1 @@ -11047,7 +10831,6 @@ public partial struct ProtectedResourceSessionDescription1 /// public Guid ProtectionType; } - /// /// D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERS public partial struct RenderPassBeginningAccessClearParameters @@ -11055,7 +10838,6 @@ public partial struct RenderPassBeginningAccessClearParameters /// public ClearValue ClearValue; } - /// /// D3D12_RENDER_PASS_BEGINNING_ACCESS public partial struct RenderPassBeginningAccess @@ -11083,9 +10865,7 @@ public partial struct RenderPassBeginningAccess [FieldOffset(0)] public RenderPassBeginningAccessClearParameters Clear; } - } - /// /// D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_SUBRESOURCE_PARAMETERS public partial struct RenderPassEndingAccessResolveSubresourceParameters @@ -11105,7 +10885,6 @@ public partial struct RenderPassEndingAccessResolveSubresourceParameters /// public RawRect SrcRect; } - /// /// D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS public partial struct RenderPassEndingAccessResolveParameters @@ -11131,7 +10910,6 @@ public partial struct RenderPassEndingAccessResolveParameters /// public Bool32 PreserveResolveSource; } - /// /// D3D12_RENDER_PASS_ENDING_ACCESS public partial struct RenderPassEndingAccess @@ -11159,9 +10937,7 @@ public partial struct RenderPassEndingAccess [FieldOffset(0)] public RenderPassEndingAccessResolveParameters Resolve; } - } - /// /// D3D12_RENDER_PASS_RENDER_TARGET_DESC public partial struct RenderPassRenderTargetDescription @@ -11175,7 +10951,6 @@ public partial struct RenderPassRenderTargetDescription /// public RenderPassEndingAccess EndingAccess; } - /// /// D3D12_RENDER_PASS_DEPTH_STENCIL_DESC public partial struct RenderPassDepthStencilDescription @@ -11195,7 +10970,6 @@ public partial struct RenderPassDepthStencilDescription /// public RenderPassEndingAccess StencilEndingAccess; } - /// /// D3D12_DISPATCH_RAYS_DESC public partial struct DispatchRaysDescription @@ -11221,7 +10995,6 @@ public partial struct DispatchRaysDescription /// public uint Depth; } - /// /// D3D12_SHADER_CACHE_SESSION_DESC public partial struct ShaderCacheSessionDescription @@ -11247,7 +11020,6 @@ public partial struct ShaderCacheSessionDescription /// public ulong Version; } - /// /// D3D12_SUBRESOURCE_DATA public partial struct SubresourceData @@ -11261,7 +11033,6 @@ public partial struct SubresourceData /// public nint SlicePitch; } - /// /// D3D12_MEMCPY_DEST public partial struct MemcpyDest @@ -11275,7 +11046,6 @@ public partial struct MemcpyDest /// public nuint SlicePitch; } - /// /// D3D12_DEBUG_DEVICE_GPU_BASED_VALIDATION_SETTINGS public partial struct DebugDeviceGpuBasedValidationSettings @@ -11289,7 +11059,6 @@ public partial struct DebugDeviceGpuBasedValidationSettings /// public GpuBasedValidationPipelineStateCreateFlags PipelineStateCreateFlags; } - /// /// D3D12_DEBUG_DEVICE_GPU_SLOWDOWN_PERFORMANCE_FACTOR public partial struct DebugDeviceGpuSlowdownPerformanceFactor @@ -11297,7 +11066,6 @@ public partial struct DebugDeviceGpuSlowdownPerformanceFactor /// public float SlowdownFactor; } - /// /// D3D12_DEBUG_COMMAND_LIST_GPU_BASED_VALIDATION_SETTINGS public partial struct DebugCommandListGpuBasedValidationSettings @@ -11305,7 +11073,6 @@ public partial struct DebugCommandListGpuBasedValidationSettings /// public GpuBasedValidationShaderPatchMode ShaderPatchMode; } - /// /// D3D12_MESSAGE public partial struct Message @@ -11325,7 +11092,6 @@ public partial struct Message /// public nuint DescriptionByteLength; } - /// /// D3D12_INFO_QUEUE_FILTER_DESC public partial struct InfoQueueFilterDescription @@ -11348,7 +11114,6 @@ public partial struct InfoQueueFilterDescription /// public unsafe MessageId* pIDList; } - /// /// D3D12_INFO_QUEUE_FILTER public partial struct InfoQueueFilter @@ -11359,7 +11124,6 @@ public partial struct InfoQueueFilter /// public InfoQueueFilterDescription DenyList; } - /// /// D3D12_DISPATCH_MESH_ARGUMENTS public partial struct DispatchMeshArguments @@ -11373,7 +11137,6 @@ public partial struct DispatchMeshArguments /// public uint ThreadGroupCountZ; } - /// /// D3D12_SIGNATURE_PARAMETER_DESC public partial struct SignatureParameterDescription @@ -11405,7 +11168,6 @@ public partial struct SignatureParameterDescription /// public Graphics.Direct3D.MinPrecision MinPrecision; } - /// /// D3D12_SHADER_BUFFER_DESC public partial struct ShaderBufferDescription @@ -11425,7 +11187,6 @@ public partial struct ShaderBufferDescription /// public uint uFlags; } - /// /// D3D12_SHADER_VARIABLE_DESC public partial struct ShaderVariableDescription @@ -11457,7 +11218,6 @@ public partial struct ShaderVariableDescription /// public uint SamplerSize; } - /// /// D3D12_SHADER_TYPE_DESC public partial struct ShaderTypeDescription @@ -11486,7 +11246,6 @@ public partial struct ShaderTypeDescription /// public unsafe sbyte* Name; } - /// /// D3D12_SHADER_DESC public partial struct ShaderDescription @@ -11605,7 +11364,6 @@ public partial struct ShaderDescription /// public uint cTextureStoreInstructions; } - /// /// D3D12_SHADER_INPUT_BIND_DESC public partial struct ShaderInputBindDescription @@ -11640,7 +11398,6 @@ public partial struct ShaderInputBindDescription /// public uint uID; } - /// /// D3D12_LIBRARY_DESC public partial struct LibraryDescription @@ -11654,7 +11411,6 @@ public partial struct LibraryDescription /// public uint FunctionCount; } - /// /// D3D12_FUNCTION_DESC public partial struct FunctionDescription @@ -11758,7 +11514,6 @@ public partial struct FunctionDescription /// public Bool32 Has10Level9PixelShader; } - /// /// D3D12_PARAMETER_DESC public partial struct ParameterDescription @@ -11799,7 +11554,6 @@ public partial struct ParameterDescription /// public uint FirstOutComponent; } - #endregion Structs #region COM Types @@ -11831,6 +11585,5 @@ public static unsafe partial class Apis [DllImport("d3d12", ExactSpelling = true)] public static extern HResult D3D12GetInterface(Guid* rclsid, Guid* riid, void** ppvDebug); - } #endregion Functions diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite.cs index 29ed11b..2212748 100644 --- a/src/Vortice.Win32/Generated/Graphics/DirectWrite.cs +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite.cs @@ -2183,10 +2183,10 @@ public enum FontSourceType : int /// DWRITE_FONT_SOURCE_TYPE_REMOTE_FONT_PROVIDER RemoteFontProvider = 4, } - #endregion Enums #region Unions + /// /// DWRITE_PANOSE [StructLayout(LayoutKind.Explicit)] @@ -2248,7 +2248,6 @@ public partial struct Panose /// public byte characterRange; } - public partial struct _text_e__Struct { /// @@ -2281,7 +2280,6 @@ public partial struct Panose /// public byte xHeight; } - public partial struct _symbol_e__Struct { /// @@ -2314,7 +2312,6 @@ public partial struct Panose /// public byte aspectRatio211; } - public partial struct _script_e__Struct { /// @@ -2347,9 +2344,7 @@ public partial struct Panose /// public byte xAscent; } - } - #endregion Unions #region Structs @@ -2387,7 +2382,6 @@ public partial struct FontMetrics /// public ushort strikethroughThickness; } - /// /// DWRITE_GLYPH_METRICS public partial struct GlyphMetrics @@ -2413,7 +2407,6 @@ public partial struct GlyphMetrics /// public int verticalOriginY; } - /// /// DWRITE_GLYPH_OFFSET public partial struct GlyphOffset @@ -2424,7 +2417,6 @@ public partial struct GlyphOffset /// public float ascenderOffset; } - /// /// DWRITE_TEXT_RANGE public partial struct TextRange @@ -2435,7 +2427,6 @@ public partial struct TextRange /// public uint length; } - /// /// DWRITE_FONT_FEATURE public partial struct FontFeature @@ -2446,7 +2437,6 @@ public partial struct FontFeature /// public uint parameter; } - /// /// DWRITE_TYPOGRAPHIC_FEATURES public partial struct TypographicFeatures @@ -2457,7 +2447,6 @@ public partial struct TypographicFeatures /// public uint featureCount; } - /// /// DWRITE_TRIMMING public partial struct Trimming @@ -2471,7 +2460,6 @@ public partial struct Trimming /// public uint delimiterCount; } - /// /// DWRITE_SCRIPT_ANALYSIS public partial struct ScriptAnalysis @@ -2482,7 +2470,6 @@ public partial struct ScriptAnalysis /// public ScriptShapes shapes; } - /// /// DWRITE_LINE_BREAKPOINT public partial struct LineBreakpoint @@ -2490,7 +2477,6 @@ public partial struct LineBreakpoint /// public byte _bitfield; } - /// /// DWRITE_SHAPING_TEXT_PROPERTIES public partial struct ShapingTextProperties @@ -2498,7 +2484,6 @@ public partial struct ShapingTextProperties /// public ushort _bitfield; } - /// /// DWRITE_SHAPING_GLYPH_PROPERTIES public partial struct ShapingGlyphProperties @@ -2506,7 +2491,6 @@ public partial struct ShapingGlyphProperties /// public ushort _bitfield; } - /// /// DWRITE_GLYPH_RUN public partial struct GlyphRun @@ -2535,7 +2519,6 @@ public partial struct GlyphRun /// public uint bidiLevel; } - /// /// DWRITE_GLYPH_RUN_DESCRIPTION public partial struct GlyphRunDescription @@ -2555,7 +2538,6 @@ public partial struct GlyphRunDescription /// public uint textPosition; } - /// /// DWRITE_UNDERLINE public partial struct Underline @@ -2584,7 +2566,6 @@ public partial struct Underline /// public MeasuringMode measuringMode; } - /// /// DWRITE_STRIKETHROUGH public partial struct Strikethrough @@ -2610,7 +2591,6 @@ public partial struct Strikethrough /// public MeasuringMode measuringMode; } - /// /// DWRITE_LINE_METRICS public partial struct LineMetrics @@ -2633,7 +2613,6 @@ public partial struct LineMetrics /// public Bool32 isTrimmed; } - /// /// DWRITE_CLUSTER_METRICS public partial struct ClusterMetrics @@ -2647,7 +2626,6 @@ public partial struct ClusterMetrics /// public ushort _bitfield; } - /// /// DWRITE_TEXT_METRICS public partial struct TextMetrics @@ -2679,7 +2657,6 @@ public partial struct TextMetrics /// public uint lineCount; } - /// /// DWRITE_INLINE_OBJECT_METRICS public partial struct InlineObjectMetrics @@ -2696,7 +2673,6 @@ public partial struct InlineObjectMetrics /// public Bool32 supportsSideways; } - /// /// DWRITE_OVERHANG_METRICS public partial struct OverhangMetrics @@ -2713,7 +2689,6 @@ public partial struct OverhangMetrics /// public float bottom; } - /// /// DWRITE_HIT_TEST_METRICS public partial struct HitTestMetrics @@ -2745,7 +2720,6 @@ public partial struct HitTestMetrics /// public Bool32 isTrimmed; } - /// /// DWRITE_FONT_METRICS1 public partial struct FontMetrics1 @@ -2792,7 +2766,6 @@ public partial struct FontMetrics1 /// public Bool32 hasTypographicMetrics; } - /// /// DWRITE_CARET_METRICS public partial struct CaretMetrics @@ -2806,7 +2779,6 @@ public partial struct CaretMetrics /// public short offset; } - /// /// DWRITE_UNICODE_RANGE public partial struct UnicodeRange @@ -2817,7 +2789,6 @@ public partial struct UnicodeRange /// public uint last; } - /// /// DWRITE_SCRIPT_PROPERTIES public partial struct ScriptProperties @@ -2837,7 +2808,6 @@ public partial struct ScriptProperties /// public uint _bitfield; } - /// /// DWRITE_JUSTIFICATION_OPPORTUNITY public partial struct JustificationOpportunity @@ -2854,7 +2824,6 @@ public partial struct JustificationOpportunity /// public uint _bitfield; } - /// /// DWRITE_TEXT_METRICS1 public partial struct TextMetrics1 @@ -2865,7 +2834,6 @@ public partial struct TextMetrics1 /// public float heightIncludingTrailingWhitespace; } - /// /// DWRITE_COLOR_GLYPH_RUN public partial struct ColorGlyphRun @@ -2888,7 +2856,6 @@ public partial struct ColorGlyphRun /// public ushort paletteIndex; } - /// /// DWRITE_FONT_PROPERTY public partial struct FontProperty @@ -2902,7 +2869,6 @@ public partial struct FontProperty /// public unsafe ushort* localeName; } - /// /// DWRITE_LINE_METRICS1 public partial struct LineMetrics1 @@ -2916,7 +2882,6 @@ public partial struct LineMetrics1 /// public float leadingAfter; } - /// /// DWRITE_LINE_SPACING public partial struct LineSpacing @@ -2936,7 +2901,6 @@ public partial struct LineSpacing /// public FontLineGapUsage fontLineGapUsage; } - /// /// DWRITE_COLOR_GLYPH_RUN1 public partial struct ColorGlyphRun1 @@ -2950,7 +2914,6 @@ public partial struct ColorGlyphRun1 /// public MeasuringMode measuringMode; } - /// /// DWRITE_GLYPH_IMAGE_DATA public partial struct GlyphImageData @@ -2982,7 +2945,6 @@ public partial struct GlyphImageData /// public System.Drawing.Point verticalBottomOrigin; } - /// /// DWRITE_FILE_FRAGMENT public partial struct FileFragment @@ -2993,7 +2955,6 @@ public partial struct FileFragment /// public ulong fragmentSize; } - /// /// DWRITE_FONT_AXIS_VALUE public partial struct FontAxisValue @@ -3004,7 +2965,6 @@ public partial struct FontAxisValue /// public float value; } - /// /// DWRITE_FONT_AXIS_RANGE public partial struct FontAxisRange @@ -3018,7 +2978,6 @@ public partial struct FontAxisRange /// public float maxValue; } - #endregion Structs #region COM Types @@ -3029,6 +2988,5 @@ public static unsafe partial class Apis { [DllImport("DWrite", ExactSpelling = true)] public static extern HResult DWriteCreateFactory(FactoryType factoryType, Guid* iid, IUnknown** factory); - } #endregion Functions diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi.Common.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi.Common.cs index 9349059..f49ffb2 100644 --- a/src/Vortice.Win32/Generated/Graphics/Dxgi.Common.cs +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi.Common.cs @@ -540,7 +540,6 @@ public enum AlphaMode : uint /// DXGI_ALPHA_MODE_IGNORE Ignore = 3, } - #endregion Enums #region Generated Enums @@ -558,7 +557,6 @@ public enum CpuAccess : uint /// DXGI_CPU_ACCESS_FIELD Field = 15, } - #endregion Generated Enums #region Structs @@ -572,7 +570,6 @@ public partial struct Rational /// public uint Denominator; } - /// /// DXGI_SAMPLE_DESC public partial struct SampleDescription @@ -583,7 +580,6 @@ public partial struct SampleDescription /// public uint Quality; } - /// /// DXGI_RGB public partial struct Rgb @@ -597,7 +593,6 @@ public partial struct Rgb /// public float Blue; } - /// /// DXGI_GAMMA_CONTROL public partial struct GammaControl @@ -1657,7 +1652,6 @@ public partial struct GammaControl } } } - /// /// DXGI_GAMMA_CONTROL_CAPABILITIES public partial struct GammaControlCapabilities @@ -1677,7 +1671,6 @@ public partial struct GammaControlCapabilities /// public unsafe fixed float ControlPointPositions[1025]; } - /// /// DXGI_MODE_DESC public partial struct ModeDescription @@ -1700,7 +1693,6 @@ public partial struct ModeDescription /// public ModeScaling Scaling; } - /// /// DXGI_JPEG_DC_HUFFMAN_TABLE public partial struct JpegDCHuffmanTable @@ -1711,7 +1703,6 @@ public partial struct JpegDCHuffmanTable /// public unsafe fixed byte CodeValues[12]; } - /// /// DXGI_JPEG_AC_HUFFMAN_TABLE public partial struct JpegAcHuffmanTable @@ -1722,7 +1713,6 @@ public partial struct JpegAcHuffmanTable /// public unsafe fixed byte CodeValues[162]; } - /// /// DXGI_JPEG_QUANTIZATION_TABLE public partial struct JpegQuantizationTable @@ -1730,6 +1720,5 @@ public partial struct JpegQuantizationTable /// public unsafe fixed byte Elements[64]; } - #endregion Structs diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi.cs index 884a926..ede399f 100644 --- a/src/Vortice.Win32/Generated/Graphics/Dxgi.cs +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi.cs @@ -1638,7 +1638,6 @@ public enum MessageId : int /// DXGI_MSG_Phone_IDXGISwapChain_GetBackgroundColor_FlipSequentialRequired Phone_IDXGISwapChain_GetBackgroundColor_FlipSequentialRequired = 1031, } - #endregion Enums #region Generated Enums @@ -1730,7 +1729,6 @@ public enum WindowAssociationFlags : uint /// DXGI_MWA_VALID Valid = 7, } - #endregion Generated Enums #region Structs @@ -1753,7 +1751,6 @@ public partial struct FrameStatistics /// public LargeInteger SyncGPUTime; } - /// /// DXGI_MAPPED_RECT public partial struct MappedRect @@ -1764,7 +1761,6 @@ public partial struct MappedRect /// public unsafe byte* pBits; } - /// /// DXGI_ADAPTER_DESC public partial struct AdapterDescription @@ -1796,7 +1792,6 @@ public partial struct AdapterDescription /// public Luid AdapterLuid; } - /// /// DXGI_OUTPUT_DESC public partial struct OutputDescription @@ -1816,7 +1811,6 @@ public partial struct OutputDescription /// public IntPtr Monitor; } - /// /// DXGI_SHARED_RESOURCE public partial struct SharedResource @@ -1824,7 +1818,6 @@ public partial struct SharedResource /// public Handle Handle; } - /// /// DXGI_SURFACE_DESC public partial struct SurfaceDescription @@ -1841,7 +1834,6 @@ public partial struct SurfaceDescription /// public Common.SampleDescription SampleDesc; } - /// /// DXGI_SWAP_CHAIN_DESC public partial struct SwapChainDescription @@ -1870,7 +1862,6 @@ public partial struct SwapChainDescription /// public SwapChainFlags Flags; } - /// /// DXGI_ADAPTER_DESC1 public partial struct AdapterDescription1 @@ -1905,7 +1896,6 @@ public partial struct AdapterDescription1 /// public AdapterFlags Flags; } - /// /// DXGI_DISPLAY_COLOR_SPACE public partial struct DisplayColorSpace @@ -1916,7 +1906,6 @@ public partial struct DisplayColorSpace /// public unsafe fixed float WhitePoints[32]; } - /// /// DXGI_OUTDUPL_MOVE_RECT public partial struct OutduplMoveRect @@ -1927,7 +1916,6 @@ public partial struct OutduplMoveRect /// public RawRect DestinationRect; } - /// /// DXGI_OUTDUPL_DESC public partial struct OutduplDescription @@ -1941,7 +1929,6 @@ public partial struct OutduplDescription /// public Bool32 DesktopImageInSystemMemory; } - /// /// DXGI_OUTDUPL_POINTER_POSITION public partial struct OutduplPointerPosition @@ -1952,7 +1939,6 @@ public partial struct OutduplPointerPosition /// public Bool32 Visible; } - /// /// DXGI_OUTDUPL_POINTER_SHAPE_INFO public partial struct OutduplPointerShapeInfo @@ -1972,7 +1958,6 @@ public partial struct OutduplPointerShapeInfo /// public System.Drawing.Point HotSpot; } - /// /// DXGI_OUTDUPL_FRAME_INFO public partial struct OutduplFrameInfo @@ -2001,7 +1986,6 @@ public partial struct OutduplFrameInfo /// public uint PointerShapeBufferSize; } - /// /// DXGI_MODE_DESC1 public partial struct ModeDescription1 @@ -2027,7 +2011,6 @@ public partial struct ModeDescription1 /// public Bool32 Stereo; } - /// /// DXGI_SWAP_CHAIN_DESC1 public partial struct SwapChainDescription1 @@ -2065,7 +2048,6 @@ public partial struct SwapChainDescription1 /// public SwapChainFlags Flags; } - /// /// DXGI_SWAP_CHAIN_FULLSCREEN_DESC public partial struct SwapChainFullscreenDescription @@ -2082,7 +2064,6 @@ public partial struct SwapChainFullscreenDescription /// public Bool32 Windowed; } - /// /// DXGI_PRESENT_PARAMETERS public partial struct PresentParameters @@ -2099,7 +2080,6 @@ public partial struct PresentParameters /// public unsafe System.Drawing.Point* pScrollOffset; } - /// /// DXGI_ADAPTER_DESC2 public partial struct AdapterDescription2 @@ -2140,7 +2120,6 @@ public partial struct AdapterDescription2 /// public ComputePreemptionGranularity ComputePreemptionGranularity; } - /// /// DXGI_DECODE_SWAP_CHAIN_DESC public partial struct DecodeSwapChainDescription @@ -2148,7 +2127,6 @@ public partial struct DecodeSwapChainDescription /// public SwapChainFlags Flags; } - /// /// DXGI_FRAME_STATISTICS_MEDIA public partial struct FrameStatisticsMedia @@ -2174,7 +2152,6 @@ public partial struct FrameStatisticsMedia /// public uint ApprovedPresentDuration; } - /// /// DXGI_QUERY_VIDEO_MEMORY_INFO public partial struct QueryVideoMemoryInfo @@ -2191,7 +2168,6 @@ public partial struct QueryVideoMemoryInfo /// public ulong CurrentReservation; } - /// /// DXGI_HDR_METADATA_HDR10 public partial struct HDRMetadataHdr10 @@ -2220,7 +2196,6 @@ public partial struct HDRMetadataHdr10 /// public ushort MaxFrameAverageLightLevel; } - /// /// DXGI_HDR_METADATA_HDR10PLUS public partial struct HDRMetadataHdr10plus @@ -2228,7 +2203,6 @@ public partial struct HDRMetadataHdr10plus /// public unsafe fixed byte Data[72]; } - /// /// DXGI_ADAPTER_DESC3 public partial struct AdapterDescription3 @@ -2269,7 +2243,6 @@ public partial struct AdapterDescription3 /// public ComputePreemptionGranularity ComputePreemptionGranularity; } - /// /// DXGI_OUTPUT_DESC1 public partial struct OutputDescription1 @@ -2316,7 +2289,6 @@ public partial struct OutputDescription1 /// public float MaxFullFrameLuminance; } - /// /// DXGI_INFO_QUEUE_MESSAGE public partial struct InfoQueueMessage @@ -2339,7 +2311,6 @@ public partial struct InfoQueueMessage /// public nuint DescriptionByteLength; } - /// /// DXGI_INFO_QUEUE_FILTER_DESC public partial struct InfoQueueFilterDescription @@ -2362,7 +2333,6 @@ public partial struct InfoQueueFilterDescription /// public unsafe int* pIDList; } - /// /// DXGI_INFO_QUEUE_FILTER public partial struct InfoQueueFilter @@ -2373,7 +2343,6 @@ public partial struct InfoQueueFilter /// public InfoQueueFilterDescription DenyList; } - #endregion Structs #region COM Types @@ -2396,6 +2365,5 @@ public static unsafe partial class Apis [DllImport("dxgi", ExactSpelling = true)] public static extern HResult DXGIDeclareAdapterRemovalSupport(); - } #endregion Functions diff --git a/src/Vortice.Win32/Generated/Graphics/Graphics.cs b/src/Vortice.Win32/Generated/Graphics/Graphics.cs index 706cf5d..007a6e2 100644 --- a/src/Vortice.Win32/Generated/Graphics/Graphics.cs +++ b/src/Vortice.Win32/Generated/Graphics/Graphics.cs @@ -37,6 +37,5 @@ public enum AffineTransform2DInterpolationMode : uint /// D2D1_2DAFFINETRANSFORM_INTERPOLATION_MODE_HIGH_QUALITY_CUBIC HighQualityCubic = 5, } - #endregion Enums diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging.cs b/src/Vortice.Win32/Generated/Graphics/Imaging.cs index 607da98..22add0c 100644 --- a/src/Vortice.Win32/Generated/Graphics/Imaging.cs +++ b/src/Vortice.Win32/Generated/Graphics/Imaging.cs @@ -7449,7 +7449,6 @@ public enum WICPersistOptions : int /// WICPersistOptionMask WICPersistOptionMask = 65535, } - #endregion Enums #region Structs @@ -7472,7 +7471,6 @@ public partial struct WICBitmapPattern /// public Bool32 EndOfStream; } - /// /// WICImageParameters public partial struct WICImageParameters @@ -7498,7 +7496,6 @@ public partial struct WICImageParameters /// public uint PixelHeight; } - /// /// WICBitmapPlaneDescription public partial struct WICBitmapPlaneDescription @@ -7512,7 +7509,6 @@ public partial struct WICBitmapPlaneDescription /// public uint Height; } - /// /// WICBitmapPlane public partial struct WICBitmapPlane @@ -7529,7 +7525,6 @@ public partial struct WICBitmapPlane /// public uint cbBufferSize; } - /// /// WICJpegFrameHeader public partial struct WICJpegFrameHeader @@ -7558,7 +7553,6 @@ public partial struct WICJpegFrameHeader /// public uint QuantizationTableIndices; } - /// /// WICJpegScanHeader public partial struct WICJpegScanHeader @@ -7587,7 +7581,6 @@ public partial struct WICJpegScanHeader /// public byte SuccessiveApproximationLow; } - /// /// WICRawCapabilitiesInfo public partial struct WICRawCapabilitiesInfo @@ -7646,7 +7639,6 @@ public partial struct WICRawCapabilitiesInfo /// public WICRawCapabilities RenderModeSupport; } - /// /// WICRawToneCurvePoint public partial struct WICRawToneCurvePoint @@ -7657,7 +7649,6 @@ public partial struct WICRawToneCurvePoint /// public double Output; } - /// /// WICRawToneCurve public partial struct WICRawToneCurve @@ -7690,7 +7681,6 @@ public partial struct WICRawToneCurve } } } - /// /// WICDdsParameters public partial struct WICDdsParameters @@ -7719,7 +7709,6 @@ public partial struct WICDdsParameters /// public WICDdsAlphaMode AlphaMode; } - /// /// WICDdsFormatInfo public partial struct WICDdsFormatInfo @@ -7736,7 +7725,6 @@ public partial struct WICDdsFormatInfo /// public uint BlockHeight; } - /// /// WICMetadataPattern public partial struct WICMetadataPattern @@ -7756,7 +7744,6 @@ public partial struct WICMetadataPattern /// public ULargeInteger DataOffset; } - /// /// WICMetadataHeader public partial struct WICMetadataHeader @@ -7773,7 +7760,6 @@ public partial struct WICMetadataHeader /// public ULargeInteger DataOffset; } - #endregion Structs #region COM Types @@ -7808,6 +7794,5 @@ public static unsafe partial class Apis [DllImport("WindowsCodecs", ExactSpelling = true)] public static extern HResult WICGetMetadataContentSize(Guid* guidContainerFormat, IWICMetadataWriter* pIWriter, ULargeInteger* pcbSize); - } #endregion Functions diff --git a/src/Vortice.Win32/Graphics/Fxc/Apis.cs b/src/Vortice.Win32/Graphics/Fxc/Apis.cs new file mode 100644 index 0000000..40fd272 --- /dev/null +++ b/src/Vortice.Win32/Graphics/Fxc/Apis.cs @@ -0,0 +1,147 @@ +// Copyright © Amer Koleci and Contributors. +// Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. + +using System.Buffers; +using System.Text; +using System.Text.RegularExpressions; +using static Win32.Apis; + +namespace Win32.Graphics.Direct3D.Fxc; + +public static unsafe partial class Apis +{ + public static ID3DInclude* D3D_COMPILE_STANDARD_FILE_INCLUDE => (ID3DInclude*)(nuint)1; + + public static ComPtr D3DCompile( + ReadOnlySpan source, + ReadOnlySpan entryPoint, + ReadOnlySpan target, + CompileFlags flags = CompileFlags.None) + { + int maxLength = Encoding.ASCII.GetMaxByteCount(source.Length); + byte[] sourceBuffer = ArrayPool.Shared.Rent(maxLength); + int writtenBytes = Encoding.ASCII.GetBytes(source, sourceBuffer); + + maxLength = Encoding.ASCII.GetMaxByteCount(entryPoint.Length); + byte[] entryPointBuffer = ArrayPool.Shared.Rent(maxLength); + int entryPointWrittenBytes = Encoding.ASCII.GetBytes(entryPoint, entryPointBuffer); + + maxLength = Encoding.ASCII.GetMaxByteCount(target.Length); + byte[] targetBuffer = ArrayPool.Shared.Rent(maxLength); + int targetWrittenBytes = Encoding.ASCII.GetBytes(target, targetBuffer); + + try + { + using ComPtr d3dBlobBytecode = default; + using ComPtr d3dBlobErrors = default; + + HResult hr = D3DCompile( + sourceBuffer.AsSpan(0, writtenBytes), + entryPointBuffer.AsSpan(0, entryPointWrittenBytes), + targetBuffer.AsSpan(0, targetWrittenBytes), + flags, + d3dBlobBytecode.GetAddressOf(), + d3dBlobErrors.GetAddressOf()); + + if (hr.Failure) + { + // Throw if an error was retrieved, then also double check the HRESULT + if (d3dBlobErrors.Get() is not null) + { + ThrowHslsCompilationException(d3dBlobErrors.Get()); + } + } + + hr.ThrowIfFailed(); + + return d3dBlobBytecode.Move(); + } + finally + { + + ArrayPool.Shared.Return(sourceBuffer); + ArrayPool.Shared.Return(entryPointBuffer); + ArrayPool.Shared.Return(targetBuffer); + } + } + + public static HResult D3DCompile( + ReadOnlySpan source, + ReadOnlySpan entryPoint, + ReadOnlySpan target, + CompileFlags flags, + ID3DBlob** byteCode, + ID3DBlob** errorMessage) + { + fixed (byte* sourcePtr = source) + fixed (byte* entryPointPtr = entryPoint) + fixed (byte* targetPtr = target) + { + HResult hr = D3DCompile( + pSrcData: sourcePtr, + SrcDataSize: (nuint)source.Length, + pSourceName: null, + pDefines: null, + pInclude: D3D_COMPILE_STANDARD_FILE_INCLUDE, + pEntrypoint: (sbyte*)entryPointPtr, + pTarget: (sbyte*)targetPtr, + Flags1: flags, + Flags2: 0u, + ppCode: byteCode, + ppErrorMsgs: errorMessage); + return hr; + } + } + + public static HResult D3DCompile( + ReadOnlySpan source, + ReadOnlySpan entryPoint, + ReadOnlySpan target, + ID3DInclude* includeHandler, + CompileFlags flags, + ID3DBlob** byteCode, + ID3DBlob** errorMessage) + { + fixed (byte* sourcePtr = source) + fixed (byte* entryPointPtr = entryPoint) + fixed (byte* targetPtr = target) + { + HResult hr = D3DCompile( + pSrcData: sourcePtr, + SrcDataSize: (nuint)source.Length, + pSourceName: null, + pDefines: null, + pInclude: includeHandler, + pEntrypoint: (sbyte*)entryPointPtr, + pTarget: (sbyte*)targetPtr, + Flags1: flags, + Flags2: 0u, + ppCode: byteCode, + ppErrorMsgs: errorMessage); + return hr; + } + } + +#if NET6_0_OR_GREATER + [DoesNotReturn] +#endif + [MethodImpl(MethodImplOptions.NoInlining)] + private static void ThrowHslsCompilationException(ID3DBlob* d3DOperationResult) + { + string message = new((sbyte*)d3DOperationResult->GetBufferPointer()); + + // The error message will be in a format like this: + // "C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\Roslyn\Shader@0x0000019AD1B4BA70(22,32-35): error X3004: undeclared identifier 'this'" + // This regex tries to match the unnecessary header and remove it, if present. This doesn't need to be bulletproof, and this regex should match all cases anyway. + message = Regex.Replace(message, @"^[A-Z]:\\[^:]+: (\w+ \w+:)", static m => m.Groups[1].Value, RegexOptions.Multiline).Trim(); + + // Add a trailing '.' if not present + if (message is { Length: > 0 } && + message[message.Length - 1] != '.') + { + message += '.'; + } + + throw new FxcCompilationException(message); + } +} diff --git a/src/Vortice.Win32/Graphics/Fxc/FxcCompilationException.cs b/src/Vortice.Win32/Graphics/Fxc/FxcCompilationException.cs new file mode 100644 index 0000000..da36e19 --- /dev/null +++ b/src/Vortice.Win32/Graphics/Fxc/FxcCompilationException.cs @@ -0,0 +1,40 @@ +// Copyright © Amer Koleci and Contributors. +// Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. + +using System.Text; + +namespace Win32.Graphics.Direct3D.Fxc; + +/// +/// A custom type that indicates when a shader compilation with the FXC compiler has failed. +/// +public sealed class FxcCompilationException : Exception +{ + /// + /// Creates a new instance. + /// + /// The error message produced by the DXC compiler. + internal FxcCompilationException(string error) + : base(GetExceptionMessage(error)) + { + } + + /// + /// Gets a formatted exception message for a given compilation error. + /// + /// The input compilatin error message from the FXC compiler. + /// A formatted error message for a new instance. + private static string GetExceptionMessage(string error) + { + StringBuilder builder = new(512); + + builder.AppendLine("The FXC compiler encountered one or more errors while trying to compile the shader:"); + builder.AppendLine(); + builder.AppendLine(error.Trim()); + builder.AppendLine(); + builder.AppendLine("Make sure to only be using supported features by checking the README file in the ComputeSharp repository: https://github.com/Sergio0694/ComputeSharp."); + builder.Append("If you're sure that your C# shader code is valid, please open an issue an include a working repro and this error message."); + + return builder.ToString(); + } +} diff --git a/src/Vortice.Win32/NetStandard.cs b/src/Vortice.Win32/NetStandard.cs index 0f857c0..167cfec 100644 --- a/src/Vortice.Win32/NetStandard.cs +++ b/src/Vortice.Win32/NetStandard.cs @@ -3,6 +3,8 @@ #if !NET6_0_OR_GREATER +using System.Text; + namespace Win32; internal static unsafe class Extensions @@ -56,7 +58,6 @@ internal static unsafe class Extensions } } - internal static class MemoryMarshal { /// @@ -98,4 +99,40 @@ internal static class MemoryMarshal } } +/// +/// A polyfill type that mirrors some methods from on .NET 5. +/// +internal static class EncodingExtensions +{ + /// + /// Encodes into a span of bytes a set of characters from the specified read-only span. + /// + /// The input instance to use. + /// The span containing the set of characters to encode. + /// The byte span to hold the encoded bytes. + /// The number of encoded bytes. + public static unsafe int GetBytes(this Encoding encoding, ReadOnlySpan chars, Span bytes) + { + fixed (char* charsPtr = &MemoryMarshal.GetReference(chars)) + fixed (byte* bytesPtr = &MemoryMarshal.GetReference(bytes)) + { + return encoding.GetBytes(charsPtr, chars.Length, bytesPtr, bytes.Length); + } + } + + /// + /// Decodes a text from a sequence of bytes. + /// + /// The input instance to use. + /// The byte span that holds the encoded bytes. + /// The resulting text. + public static unsafe string GetString(this Encoding encoding, ReadOnlySpan bytes) + { + fixed (byte* bytesPtr = &MemoryMarshal.GetReference(bytes)) + { + return encoding.GetString(bytesPtr, bytes.Length); + } + } +} + #endif diff --git a/src/Vortice.Win32/StringUtilities.cs b/src/Vortice.Win32/StringUtilities.cs index 9a1ac1a..f30434b 100644 --- a/src/Vortice.Win32/StringUtilities.cs +++ b/src/Vortice.Win32/StringUtilities.cs @@ -34,19 +34,9 @@ public static unsafe class StringUtilities if (source is not null) { int maxLength = Encoding.UTF8.GetMaxByteCount(source.Length); -#if NET6_0_OR_GREATER - var bytes = new byte[maxLength + 1]; - var length = Encoding.UTF8.GetBytes(source, bytes); + byte[] bytes = new byte[maxLength + 1]; + var length = Encoding.UTF8.GetBytes(source.AsSpan(), bytes); result = bytes.AsSpan(0, length); -#else - byte* bytes = stackalloc byte[maxLength + 1]; - fixed (char* namePtr = source) - { - Encoding.UTF8.GetBytes(namePtr, source.Length, bytes, maxLength); - } - bytes[maxLength] = 0; - result = new(bytes, source.Length); -#endif } else { @@ -167,10 +157,6 @@ public static unsafe class StringUtilities if (span.GetPointer() == null) return null; -#if NET6_0_OR_GREATER return Encoding.UTF8.GetString(span.As()); -#else - return Encoding.UTF8.GetString(span.As().GetPointer(), span.Length); -#endif } } diff --git a/src/Vortice.Win32/Vortice.Win32.csproj b/src/Vortice.Win32/Vortice.Win32.csproj index de9564d..79df5d6 100644 --- a/src/Vortice.Win32/Vortice.Win32.csproj +++ b/src/Vortice.Win32/Vortice.Win32.csproj @@ -3,7 +3,7 @@ netstandard2.0;net6.0;net7.0 Windows API low level bindings. - 1.6.1 + 1.6.2 true True