From 22a12e0e5d77a7b1dfa6262284543d2af3e5bca8 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Tue, 16 Nov 2021 10:05:43 +0100 Subject: [PATCH] Add missing TerraFX API to make ComputeSharp compile --- .../ShaderCompiler.LibraryLoading.cs | 6 +- src/TerraFX.Interop.Windows/ComPtr`1.cs | 322 ++ .../DirectX/shared/dxgi1_3/DXGI.cs | 13 + .../DirectX/shared/dxgi1_3/DirectX.cs | 23 + .../DirectX/um/d3d11/D3D11.cs | 2714 +++++++++++++++++ .../DirectX/um/d3d12/DirectX.cs | 115 + .../DirectX/um/dxcapi/CLSID.cs | 268 ++ .../DirectX/um/dxcapi/DirectX.cs | 20 + .../Windows/shared/minwindef/Windows.cs | 19 + .../Windows/shared/uuids/Windows.Manual.cs | 85 + .../Windows/shared/winerror/DXGI.cs | 147 + .../Windows/um/combaseapi/Windows.cs | 16 + .../Windows/um/wincodec/CLSID.cs | 765 +++++ .../Windows/um/wincodec/GUID.cs | 2618 ++++++++++++++++ .../Windows/um/winnt/Windows.cs | 758 +++++ 15 files changed, 7888 insertions(+), 1 deletion(-) create mode 100644 src/TerraFX.Interop.Windows/ComPtr`1.cs create mode 100644 src/TerraFX.Interop.Windows/DirectX/shared/dxgi1_3/DXGI.cs create mode 100644 src/TerraFX.Interop.Windows/DirectX/shared/dxgi1_3/DirectX.cs create mode 100644 src/TerraFX.Interop.Windows/DirectX/um/d3d11/D3D11.cs create mode 100644 src/TerraFX.Interop.Windows/DirectX/um/d3d12/DirectX.cs create mode 100644 src/TerraFX.Interop.Windows/DirectX/um/dxcapi/CLSID.cs create mode 100644 src/TerraFX.Interop.Windows/DirectX/um/dxcapi/DirectX.cs create mode 100644 src/TerraFX.Interop.Windows/Windows/shared/minwindef/Windows.cs create mode 100644 src/TerraFX.Interop.Windows/Windows/shared/uuids/Windows.Manual.cs create mode 100644 src/TerraFX.Interop.Windows/Windows/shared/winerror/DXGI.cs create mode 100644 src/TerraFX.Interop.Windows/Windows/um/combaseapi/Windows.cs create mode 100644 src/TerraFX.Interop.Windows/Windows/um/wincodec/CLSID.cs create mode 100644 src/TerraFX.Interop.Windows/Windows/um/wincodec/GUID.cs create mode 100644 src/TerraFX.Interop.Windows/Windows/um/winnt/Windows.cs diff --git a/src/ComputeSharp/Shaders/Translation/ShaderCompiler.LibraryLoading.cs b/src/ComputeSharp/Shaders/Translation/ShaderCompiler.LibraryLoading.cs index 64e4bd3a..2bdaf5bb 100644 --- a/src/ComputeSharp/Shaders/Translation/ShaderCompiler.LibraryLoading.cs +++ b/src/ComputeSharp/Shaders/Translation/ShaderCompiler.LibraryLoading.cs @@ -1,4 +1,6 @@ -using System; +#if false + +using System; using System.IO; using System.Runtime.InteropServices; using Microsoft.Toolkit.Diagnostics; @@ -67,3 +69,5 @@ internal sealed unsafe partial class ShaderCompiler }; } } + +#endif diff --git a/src/TerraFX.Interop.Windows/ComPtr`1.cs b/src/TerraFX.Interop.Windows/ComPtr`1.cs new file mode 100644 index 00000000..2d732e92 --- /dev/null +++ b/src/TerraFX.Interop.Windows/ComPtr`1.cs @@ -0,0 +1,322 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from winrt/wrl/client.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; +using System.ComponentModel; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using static TerraFX.Interop.Windows.S; +using static TerraFX.Interop.Windows.Windows; + +namespace TerraFX.Interop.Windows +{ + /// A type that allows working with pointers to COM objects more securely. + /// The type to wrap in the current instance. + /// While this type is not marked as so that it can also be used in fields, make sure to keep the reference counts properly tracked if you do store instances on the heap. + public unsafe struct ComPtr : IDisposable + where T : unmanaged, IUnknown.Interface + { + /// The raw pointer to a COM object, if existing. + private T* ptr_; + + /// Creates a new instance from a raw pointer and increments the ref count. + /// The raw pointer to wrap. + public ComPtr(T* other) + { + ptr_ = other; + InternalAddRef(); + } + + /// Creates a new instance from a second one and increments the ref count. + /// The other instance to copy. + public ComPtr(ComPtr other) + { + ptr_ = other.ptr_; + InternalAddRef(); + } + + /// Converts a raw pointer to a new instance and increments the ref count. + /// The raw pointer to wrap. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static implicit operator ComPtr(T* other) + => new ComPtr(other); + + /// Unwraps a instance and returns the internal raw pointer. + /// The instance to unwrap. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static implicit operator T*(ComPtr other) + => other.Get(); + + /// Converts the current object reference to type and assigns that to a target value. + /// The interface type to use to try casting the current COM object. + /// A raw pointer to the target value to write to. + /// The result of for the target type . + /// This method will automatically release the target COM object pointed to by , if any. + public readonly HRESULT As(ComPtr* p) + where U : unmanaged, IUnknown.Interface + { + return ptr_->QueryInterface(__uuidof(), (void**)p->ReleaseAndGetAddressOf()); + } + + /// Converts the current object reference to type and assigns that to a target value. + /// The interface type to use to try casting the current COM object. + /// A reference to the target value to write to. + /// The result of for the target type . + /// This method will automatically release the target COM object pointed to by , if any. + public readonly HRESULT As(ref ComPtr other) + where U : unmanaged, IUnknown.Interface + { + U* ptr; + HRESULT result = ptr_->QueryInterface(__uuidof(), (void**)&ptr); + + other.Attach(ptr); + return result; + } + + /// Converts the current object reference to a type indicated by the given IID and assigns that to a target value. + /// The IID indicating the interface type to convert the COM object reference to. + /// A raw pointer to the target value to write to. + /// The result of for the target IID. + /// This method will automatically release the target COM object pointed to by , if any. + public readonly HRESULT AsIID(Guid* riid, ComPtr* other) + { + return ptr_->QueryInterface(riid, (void**)other->ReleaseAndGetAddressOf()); + } + + /// Converts the current object reference to a type indicated by the given IID and assigns that to a target value. + /// The IID indicating the interface type to convert the COM object reference to. + /// A reference to the target value to write to. + /// The result of for the target IID. + /// This method will automatically release the target COM object pointed to by , if any. + public readonly HRESULT AsIID(Guid* riid, ref ComPtr other) + { + IUnknown* ptr; + HRESULT result = ptr_->QueryInterface(riid, (void**)&ptr); + + other.Attach(ptr); + return result; + } + + /// Releases the current COM object, if any, and replaces the internal pointer with an input raw pointer. + /// The input raw pointer to wrap. + /// This method will release the current raw pointer, if any, but it will not increment the references for . + public void Attach(T* other) + { + if (ptr_ != null) + { + var @ref = ptr_->Release(); + Debug.Assert((@ref != 0) || (ptr_ != other)); + } + ptr_ = other; + } + + /// Returns the raw pointer wrapped by the current instance, and resets the current value. + /// The raw pointer wrapped by the current value. + /// This method will not change the reference count for the COM object in use. + public T* Detach() + { + T* ptr = ptr_; + ptr_ = null; + return ptr; + } + + /// Increments the reference count for the current COM object, if any, and copies its address to a target raw pointer. + /// The target raw pointer to copy the address of the current COM object to. + /// This method always returns . + public readonly HRESULT CopyTo(T** ptr) + { + InternalAddRef(); + *ptr = ptr_; + return S_OK; + } + + /// Increments the reference count for the current COM object, if any, and copies its address to a target . + /// The target raw pointer to copy the address of the current COM object to. + /// This method always returns . + public readonly HRESULT CopyTo(ComPtr* p) + { + InternalAddRef(); + *p->ReleaseAndGetAddressOf() = ptr_; + return S_OK; + } + + /// Increments the reference count for the current COM object, if any, and copies its address to a target . + /// The target reference to copy the address of the current COM object to. + /// This method always returns . + public readonly HRESULT CopyTo(ref ComPtr other) + { + InternalAddRef(); + other.Attach(ptr_); + return S_OK; + } + + /// Converts the current COM object reference to a given interface type and assigns that to a target raw pointer. + /// The target raw pointer to copy the address of the current COM object to. + /// The result of for the target type . + public readonly HRESULT CopyTo(U** ptr) + where U : unmanaged, IUnknown.Interface + { + return ptr_->QueryInterface(__uuidof(), (void**)ptr); + } + + /// Converts the current COM object reference to a given interface type and assigns that to a target . + /// The target raw pointer to copy the address of the current COM object to. + /// The result of for the target type . + public readonly HRESULT CopyTo(ComPtr* p) + where U : unmanaged, IUnknown.Interface + { + return ptr_->QueryInterface(__uuidof(), (void**)p->ReleaseAndGetAddressOf()); + } + + /// Converts the current COM object reference to a given interface type and assigns that to a target . + /// The target reference to copy the address of the current COM object to. + /// The result of for the target type . + public readonly HRESULT CopyTo(ref ComPtr other) + where U : unmanaged, IUnknown.Interface + { + U* ptr; + HRESULT result = ptr_->QueryInterface(__uuidof(), (void**)&ptr); + + other.Attach(ptr); + return result; + } + + /// Converts the current object reference to a type indicated by the given IID and assigns that to a target address. + /// The IID indicating the interface type to convert the COM object reference to. + /// The target raw pointer to copy the address of the current COM object to. + /// The result of for the target IID. + public readonly HRESULT CopyTo(Guid* riid, void** ptr) + { + return ptr_->QueryInterface(riid, ptr); + } + + /// Converts the current object reference to a type indicated by the given IID and assigns that to a target value. + /// The IID indicating the interface type to convert the COM object reference to. + /// The target raw pointer to copy the address of the current COM object to. + /// The result of for the target IID. + public readonly HRESULT CopyTo(Guid* riid, ComPtr* p) + { + return ptr_->QueryInterface(riid, (void**)p->ReleaseAndGetAddressOf()); + } + + /// Converts the current object reference to a type indicated by the given IID and assigns that to a target value. + /// The IID indicating the interface type to convert the COM object reference to. + /// The target reference to copy the address of the current COM object to. + /// The result of for the target IID. + public readonly HRESULT CopyTo(Guid* riid, ref ComPtr other) + { + IUnknown* ptr; + HRESULT result = ptr_->QueryInterface(riid, (void**)&ptr); + + other.Attach(ptr); + return result; + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public void Dispose() + { + T* pointer = ptr_; + + if (pointer != null) + { + ptr_ = null; + _ = pointer->Release(); + } + } + + /// Gets the currently wrapped raw pointer to a COM object. + /// The raw pointer wrapped by the current instance. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public readonly T* Get() + { + return ptr_; + } + + /// Gets the address of the current instance as a raw double pointer. This method is only valid when the current instance is on the stack or pinned. + /// + /// The raw pointer to the current instance. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public readonly T** GetAddressOf() + { + return (T**)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + } + + /// Gets the address of the current instance as a raw double pointer. + /// The raw pointer to the current instance. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [EditorBrowsable(EditorBrowsableState.Never)] + public readonly ref T* GetPinnableReference() + { + fixed (T** ptr = &ptr_) + { + return ref *ptr; + } + } + + /// Releases the current COM object in use and gets the address of the instance as a raw double pointer. This method is only valid when the current instance is on the stack or pinned. + /// The raw pointer to the current instance. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public T** ReleaseAndGetAddressOf() + { + _ = InternalRelease(); + return GetAddressOf(); + } + + /// Resets the current instance by decrementing the reference count for the target COM object and setting the internal raw pointer to . + /// The updated reference count for the COM object that was in use, if any. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public uint Reset() + { + return InternalRelease(); + } + + /// Swaps the current COM object reference with that of a given instance. + /// The target instance to swap with the current one. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public void Swap(ComPtr* r) + { + T* tmp = ptr_; + ptr_ = r->ptr_; + r->ptr_ = tmp; + } + + /// Swaps the current COM object reference with that of a given instance. + /// The target instance to swap with the current one. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public void Swap(ref ComPtr other) + { + T* tmp = ptr_; + ptr_ = other.ptr_; + other.ptr_ = tmp; + } + + // Increments the reference count for the current COM object, if any + private readonly void InternalAddRef() + { + T* temp = ptr_; + + if (temp != null) + { + _ = temp->AddRef(); + } + } + + // Decrements the reference count for the current COM object, if any + private uint InternalRelease() + { + uint @ref = 0; + T* temp = ptr_; + + if (temp != null) + { + ptr_ = null; + @ref = temp->Release(); + } + + return @ref; + } + } +} diff --git a/src/TerraFX.Interop.Windows/DirectX/shared/dxgi1_3/DXGI.cs b/src/TerraFX.Interop.Windows/DirectX/shared/dxgi1_3/DXGI.cs new file mode 100644 index 00000000..3a40cb25 --- /dev/null +++ b/src/TerraFX.Interop.Windows/DirectX/shared/dxgi1_3/DXGI.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/dxgi1_3.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.DirectX +{ + public static partial class DXGI + { + [NativeTypeName("#define DXGI_CREATE_FACTORY_DEBUG 0x1")] + public const int DXGI_CREATE_FACTORY_DEBUG = 0x1; + } +} diff --git a/src/TerraFX.Interop.Windows/DirectX/shared/dxgi1_3/DirectX.cs b/src/TerraFX.Interop.Windows/DirectX/shared/dxgi1_3/DirectX.cs new file mode 100644 index 00000000..5991bd36 --- /dev/null +++ b/src/TerraFX.Interop.Windows/DirectX/shared/dxgi1_3/DirectX.cs @@ -0,0 +1,23 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/dxgi1_3.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; +using System.Runtime.InteropServices; +using System.Runtime.Versioning; +using TerraFX.Interop.Windows; + +namespace TerraFX.Interop.DirectX +{ + public static unsafe partial class DirectX + { + [SupportedOSPlatform("windows8.1")] + [DllImport("dxgi", ExactSpelling = true)] + public static extern HRESULT CreateDXGIFactory2(uint Flags, [NativeTypeName("const IID &")] Guid* riid, void** ppFactory); + + [SupportedOSPlatform("windows8.1")] + [DllImport("dxgi", ExactSpelling = true)] + public static extern HRESULT DXGIGetDebugInterface1(uint Flags, [NativeTypeName("const IID &")] Guid* riid, void** pDebug); + } +} diff --git a/src/TerraFX.Interop.Windows/DirectX/um/d3d11/D3D11.cs b/src/TerraFX.Interop.Windows/DirectX/um/d3d11/D3D11.cs new file mode 100644 index 00000000..873441b6 --- /dev/null +++ b/src/TerraFX.Interop.Windows/DirectX/um/d3d11/D3D11.cs @@ -0,0 +1,2714 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/d3d11.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace TerraFX.Interop.DirectX +{ + public static partial class D3D11 + { + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_MPEG2_MOCOMP + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x4B, 0xF4, 0xA9, 0xE6, + 0xB0, 0x61, + 0x63, 0x45, + 0x9E, + 0xA4, + 0x63, + 0xD2, + 0xA3, + 0xC6, + 0xFE, + 0x66 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_MPEG2_IDCT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x00, 0xAD, 0x22, 0xBF, + 0xEA, 0x03, + 0x90, 0x46, + 0x80, + 0x77, + 0x47, + 0x33, + 0x46, + 0x20, + 0x9B, + 0x7E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_MPEG2_VLD + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x7F, 0x41, 0x27, 0xEE, + 0x28, 0x5E, + 0x65, 0x4E, + 0xBE, + 0xEA, + 0x1D, + 0x26, + 0xB5, + 0x08, + 0xAD, + 0xC9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_MPEG1_VLD + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x19, 0xC7, 0x3E, 0x6F, + 0x35, 0x37, + 0xCC, 0x42, + 0x80, + 0x63, + 0x65, + 0xCC, + 0x3C, + 0xB3, + 0x66, + 0x16 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_MPEG2and1_VLD + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x12, 0x5F, 0x69, 0x86, + 0x0E, 0x34, + 0x04, 0x4F, + 0x9F, + 0xD3, + 0x92, + 0x53, + 0xDD, + 0x32, + 0x74, + 0x60 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_H264_MOCOMP_NOFGT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x64, 0xBE, 0x81, 0x1B, + 0xC7, 0xA0, + 0xD3, 0x11, + 0xB9, + 0x84, + 0x00, + 0xC0, + 0x4F, + 0x2E, + 0x73, + 0xC5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_H264_MOCOMP_FGT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x65, 0xBE, 0x81, 0x1B, + 0xC7, 0xA0, + 0xD3, 0x11, + 0xB9, + 0x84, + 0x00, + 0xC0, + 0x4F, + 0x2E, + 0x73, + 0xC5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_H264_IDCT_NOFGT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x66, 0xBE, 0x81, 0x1B, + 0xC7, 0xA0, + 0xD3, 0x11, + 0xB9, + 0x84, + 0x00, + 0xC0, + 0x4F, + 0x2E, + 0x73, + 0xC5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_H264_IDCT_FGT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x67, 0xBE, 0x81, 0x1B, + 0xC7, 0xA0, + 0xD3, 0x11, + 0xB9, + 0x84, + 0x00, + 0xC0, + 0x4F, + 0x2E, + 0x73, + 0xC5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_H264_VLD_NOFGT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x68, 0xBE, 0x81, 0x1B, + 0xC7, 0xA0, + 0xD3, 0x11, + 0xB9, + 0x84, + 0x00, + 0xC0, + 0x4F, + 0x2E, + 0x73, + 0xC5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_H264_VLD_FGT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x69, 0xBE, 0x81, 0x1B, + 0xC7, 0xA0, + 0xD3, 0x11, + 0xB9, + 0x84, + 0x00, + 0xC0, + 0x4F, + 0x2E, + 0x73, + 0xC5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_H264_VLD_WITHFMOASO_NOFGT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF9, 0x4F, 0xF0, 0xD5, + 0x18, 0x34, + 0xD8, 0x45, + 0x95, + 0x61, + 0x32, + 0xA7, + 0x6A, + 0xAE, + 0x2D, + 0xDD + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_H264_VLD_STEREO_PROGRESSIVE_NOFGT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xDA, 0xE8, 0x9B, 0xD7, + 0xF1, 0x0C, + 0x81, 0x4C, + 0xB8, + 0x2A, + 0x69, + 0xA4, + 0xE2, + 0x36, + 0xF4, + 0x3D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_H264_VLD_STEREO_NOFGT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xBB, 0xCC, 0xAA, 0xF9, + 0xB6, 0xC2, + 0xFC, 0x4C, + 0x87, + 0x79, + 0x57, + 0x07, + 0xB1, + 0x76, + 0x05, + 0x52 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_H264_VLD_MULTIVIEW_NOFGT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x82, 0x9D, 0x5B, 0x70, + 0xCF, 0x76, + 0xD6, 0x49, + 0xB7, + 0xE6, + 0xAC, + 0x88, + 0x72, + 0xDB, + 0x01, + 0x3C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_WMV8_POSTPROC + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x80, 0xBE, 0x81, 0x1B, + 0xC7, 0xA0, + 0xD3, 0x11, + 0xB9, + 0x84, + 0x00, + 0xC0, + 0x4F, + 0x2E, + 0x73, + 0xC5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_WMV8_MOCOMP + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x81, 0xBE, 0x81, 0x1B, + 0xC7, 0xA0, + 0xD3, 0x11, + 0xB9, + 0x84, + 0x00, + 0xC0, + 0x4F, + 0x2E, + 0x73, + 0xC5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_WMV9_POSTPROC + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x90, 0xBE, 0x81, 0x1B, + 0xC7, 0xA0, + 0xD3, 0x11, + 0xB9, + 0x84, + 0x00, + 0xC0, + 0x4F, + 0x2E, + 0x73, + 0xC5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_WMV9_MOCOMP + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x91, 0xBE, 0x81, 0x1B, + 0xC7, 0xA0, + 0xD3, 0x11, + 0xB9, + 0x84, + 0x00, + 0xC0, + 0x4F, + 0x2E, + 0x73, + 0xC5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_WMV9_IDCT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x94, 0xBE, 0x81, 0x1B, + 0xC7, 0xA0, + 0xD3, 0x11, + 0xB9, + 0x84, + 0x00, + 0xC0, + 0x4F, + 0x2E, + 0x73, + 0xC5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_VC1_POSTPROC + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA0, 0xBE, 0x81, 0x1B, + 0xC7, 0xA0, + 0xD3, 0x11, + 0xB9, + 0x84, + 0x00, + 0xC0, + 0x4F, + 0x2E, + 0x73, + 0xC5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_VC1_MOCOMP + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA1, 0xBE, 0x81, 0x1B, + 0xC7, 0xA0, + 0xD3, 0x11, + 0xB9, + 0x84, + 0x00, + 0xC0, + 0x4F, + 0x2E, + 0x73, + 0xC5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_VC1_IDCT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA2, 0xBE, 0x81, 0x1B, + 0xC7, 0xA0, + 0xD3, 0x11, + 0xB9, + 0x84, + 0x00, + 0xC0, + 0x4F, + 0x2E, + 0x73, + 0xC5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_VC1_VLD + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA3, 0xBE, 0x81, 0x1B, + 0xC7, 0xA0, + 0xD3, 0x11, + 0xB9, + 0x84, + 0x00, + 0xC0, + 0x4F, + 0x2E, + 0x73, + 0xC5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_VC1_D2010 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA4, 0xBE, 0x81, 0x1B, + 0xC7, 0xA0, + 0xD3, 0x11, + 0xB9, + 0x84, + 0x00, + 0xC0, + 0x4F, + 0x2E, + 0x73, + 0xC5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_MPEG4PT2_VLD_SIMPLE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x74, 0x4D, 0xD6, 0xEF, + 0xE8, 0xC9, + 0xD7, 0x41, + 0xA5, + 0xE9, + 0xE9, + 0xB0, + 0xE3, + 0x9F, + 0xA3, + 0x19 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_MPEG4PT2_VLD_ADVSIMPLE_NOGMC + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x9F, 0x8A, 0x41, 0xED, + 0x0D, 0x01, + 0xDA, 0x4E, + 0x9A, + 0xE3, + 0x9A, + 0x65, + 0x35, + 0x8D, + 0x8D, + 0x2E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_MPEG4PT2_VLD_ADVSIMPLE_GMC + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x5B, 0x8B, 0x99, 0xAB, + 0x58, 0x42, + 0xA9, 0x44, + 0x9F, + 0xEB, + 0x94, + 0xE5, + 0x97, + 0xA6, + 0xBA, + 0xAE + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_HEVC_VLD_MAIN + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x1B, 0xD5, 0x11, 0x5B, + 0x4C, 0x2F, + 0x52, 0x44, + 0xBC, + 0xC3, + 0x09, + 0xF2, + 0xA1, + 0x16, + 0x0C, + 0xC0 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_HEVC_VLD_MAIN10 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE0, 0xF0, 0x7A, 0x10, + 0x1A, 0xEF, + 0x19, 0x4D, + 0xAB, + 0xA8, + 0x67, + 0xA1, + 0x63, + 0x07, + 0x3D, + 0x13 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_VP9_VLD_PROFILE0 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF8, 0x07, 0x37, 0x46, + 0xD0, 0xA1, + 0x85, 0x45, + 0x87, + 0x6D, + 0x83, + 0xAA, + 0x6D, + 0x60, + 0xB8, + 0x9E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_VP9_VLD_10BIT_PROFILE2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xEF, 0x49, 0xC7, 0xA4, + 0xCF, 0x6E, + 0xAA, 0x48, + 0x84, + 0x48, + 0x50, + 0xA7, + 0xA1, + 0x16, + 0x5F, + 0xF7 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_VP8_VLD + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xEA, 0x99, 0xB8, 0x90, + 0x62, 0x3A, + 0x05, 0x47, + 0x88, + 0xB3, + 0x8D, + 0xF0, + 0x4B, + 0x27, + 0x44, + 0xE7 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_AV1_VLD_PROFILE0 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xCB, 0x4C, 0xBE, 0xB8, + 0x53, 0xCF, + 0xBA, 0x46, + 0x8D, + 0x59, + 0xD6, + 0xB8, + 0xA6, + 0xDA, + 0x5D, + 0x2A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_AV1_VLD_PROFILE1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x0F, 0xFF, 0x36, 0x69, + 0xB1, 0x45, + 0x63, 0x41, + 0x9C, + 0xC1, + 0x64, + 0x6E, + 0xF6, + 0x94, + 0x61, + 0x08 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_AV1_VLD_PROFILE2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA1, 0x2A, 0x5F, 0x0C, + 0x41, 0xE5, + 0x89, 0x40, + 0xBB, + 0x7B, + 0x98, + 0x11, + 0x0A, + 0x19, + 0xD7, + 0xC8 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_AV1_VLD_12BIT_PROFILE2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x09, 0x70, 0x12, 0x17, + 0x0F, 0xA0, + 0xE1, 0x4C, + 0x99, + 0x4E, + 0xBF, + 0x40, + 0x81, + 0xF6, + 0xF3, + 0xF0 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_AV1_VLD_12BIT_PROFILE2_420 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xD6, 0xBE, 0x80, 0x2D, + 0xAC, 0x9C, + 0x35, 0x48, + 0x9E, + 0x91, + 0x32, + 0x7B, + 0xBC, + 0x4F, + 0x9E, + 0xE8 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_CRYPTO_TYPE_AES128_CTR + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x11, 0xD7, 0x6B, 0x9B, + 0x74, 0x4F, + 0xC9, 0x41, + 0x9E, + 0x7B, + 0x0B, + 0xE2, + 0xD7, + 0xD9, + 0x3B, + 0x4F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_ENCRYPTION_HW_CENC + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x4F, 0xAC, 0xD6, 0x89, + 0xF2, 0x09, + 0x29, 0x42, + 0xB2, + 0xCD, + 0x37, + 0x74, + 0x0A, + 0x6D, + 0xFD, + 0x81 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_BITSTREAM_ENCRYPTION_TYPE_CENC + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x35, 0x52, 0x40, 0xB0, + 0x3D, 0xC1, + 0xF2, 0x44, + 0x9A, + 0xE5, + 0xDD, + 0x48, + 0xE0, + 0x8E, + 0x5B, + 0x67 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_BITSTREAM_ENCRYPTION_TYPE_CBCS + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x19, 0x93, 0x2D, 0x42, + 0x21, 0x9D, + 0xB7, 0x4B, + 0x93, + 0x71, + 0xFA, + 0xF5, + 0xA8, + 0x2C, + 0x3E, + 0x04 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_KEY_EXCHANGE_HW_PROTECTION + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x8A, 0x0D, 0x17, 0xB1, + 0x8D, 0x62, + 0xA3, 0x4D, + 0xAD, + 0x3B, + 0x82, + 0xDD, + 0xB0, + 0x8B, + 0x49, + 0x70 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_AUTHENTICATED_QUERY_PROTECTION + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x84, 0xB5, 0x4E, 0xA8, + 0x95, 0xC4, + 0xAA, 0x48, + 0xB9, + 0x4D, + 0x8B, + 0xD2, + 0xD6, + 0xFB, + 0xCE, + 0x05 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_AUTHENTICATED_QUERY_CHANNEL_TYPE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA5, 0x18, 0x1B, 0xBC, + 0xFB, 0xB1, + 0xAB, 0x42, + 0xBD, + 0x94, + 0xB5, + 0x82, + 0x8B, + 0x4B, + 0xF7, + 0xBE + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_AUTHENTICATED_QUERY_DEVICE_HANDLE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x9D, 0x53, 0x1C, 0xEC, + 0xFF, 0x8C, + 0x2A, 0x4E, + 0xBC, + 0xC4, + 0xF5, + 0x69, + 0x2F, + 0x99, + 0xF4, + 0x80 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x9E, 0x49, 0x34, 0x26, + 0x18, 0xD0, + 0x74, 0x4D, + 0xAC, + 0x17, + 0x7F, + 0x72, + 0x40, + 0x59, + 0x52, + 0x8D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_COUNT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xB3, 0x07, 0xB2, 0x0D, + 0x50, 0x94, + 0xA6, 0x46, + 0x82, + 0xDE, + 0x1B, + 0x96, + 0xD4, + 0x4F, + 0x9C, + 0xF2 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xDB, 0xBA, 0x9B, 0x64, + 0xF4, 0xF0, + 0x39, 0x46, + 0xA1, + 0x5B, + 0x24, + 0x39, + 0x3F, + 0xC3, + 0xAB, + 0xAC + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_AUTHENTICATED_QUERY_UNRESTRICTED_PROTECTED_SHARED_RESOURCE_COUNT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xD6, 0x0B, 0x2F, 0x01, + 0x62, 0xE6, + 0x74, 0x44, + 0xBE, + 0xFD, + 0xAA, + 0x53, + 0xE5, + 0x14, + 0x3C, + 0x6D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x5E, 0x2B, 0x04, 0x2C, + 0x07, 0x8C, + 0xD5, 0x46, + 0xAA, + 0xBE, + 0x8F, + 0x75, + 0xCB, + 0xAD, + 0x4C, + 0x31 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_AUTHENTICATED_QUERY_OUTPUT_ID + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA3, 0xDC, 0x9D, 0x83, + 0x4E, 0x9B, + 0xE4, 0x41, + 0xB0, + 0x53, + 0x89, + 0x2B, + 0xD2, + 0xA1, + 0x1E, + 0xE7 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ATTRIBUTES + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xD2, 0xD9, 0x14, 0x62, + 0x2C, 0x43, + 0xBB, 0x4A, + 0x9F, + 0xCE, + 0x21, + 0x6E, + 0xEA, + 0x26, + 0x9E, + 0x3B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_AUTHENTICATED_QUERY_ENCRYPTION_WHEN_ACCESSIBLE_GUID_COUNT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x66, 0x70, 0x0F, 0xB3, + 0x3C, 0x20, + 0x07, 0x4B, + 0x93, + 0xFC, + 0xCE, + 0xAA, + 0xFD, + 0x61, + 0x24, + 0x1E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_AUTHENTICATED_QUERY_ENCRYPTION_WHEN_ACCESSIBLE_GUID + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x58, 0x59, 0x3A, 0xF8, + 0x86, 0xE9, + 0xDA, 0x4B, + 0xBE, + 0xB0, + 0x41, + 0x1F, + 0x6A, + 0x7A, + 0x01, + 0xB7 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_AUTHENTICATED_QUERY_CURRENT_ENCRYPTION_WHEN_ACCESSIBLE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC7, 0x91, 0x17, 0xEC, + 0xD3, 0xDA, + 0x15, 0x4F, + 0x9E, + 0xC3, + 0xFA, + 0xA9, + 0x3D, + 0x60, + 0xD4, + 0xF0 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_AUTHENTICATED_CONFIGURE_INITIALIZE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xDB, 0x4B, 0x11, 0x06, + 0x23, 0x35, + 0x0A, 0x47, + 0x8D, + 0xCA, + 0xFB, + 0xC2, + 0x84, + 0x51, + 0x54, + 0xF0 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_AUTHENTICATED_CONFIGURE_PROTECTION + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x58, 0x56, 0x45, 0x50, + 0x47, 0x3F, + 0x62, 0x43, + 0xBF, + 0x99, + 0xBF, + 0xDF, + 0xCD, + 0xE9, + 0xED, + 0x29 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_AUTHENTICATED_CONFIGURE_CRYPTO_SESSION + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x54, 0xCC, 0x46, 0x63, + 0xFC, 0x2C, + 0xD4, 0x4A, + 0x82, + 0x24, + 0xD1, + 0x58, + 0x37, + 0xDE, + 0x77, + 0x00 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_AUTHENTICATED_CONFIGURE_SHARED_RESOURCE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x47, 0xD0, 0x72, 0x07, + 0x40, 0x1B, + 0xE8, 0x48, + 0x9C, + 0xA6, + 0xB5, + 0xF5, + 0x10, + 0xDE, + 0x9F, + 0x01 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_AUTHENTICATED_CONFIGURE_ENCRYPTION_WHEN_ACCESSIBLE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x86, 0xF2, 0xFF, 0x41, + 0xE0, 0x6A, + 0x43, 0x4D, + 0x9D, + 0x55, + 0xA4, + 0x6E, + 0x9E, + 0xFD, + 0x15, + 0x8A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_KEY_EXCHANGE_RSAES_OAEP + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x95, 0x98, 0x94, 0xC1, + 0x2A, 0xD7, + 0x1D, 0x4A, + 0x8E, + 0x5D, + 0xED, + 0x85, + 0x7D, + 0x17, + 0x15, + 0x20 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("#define D3D11_16BIT_INDEX_STRIP_CUT_VALUE ( 0xffff )")] + public const int D3D11_16BIT_INDEX_STRIP_CUT_VALUE = (0xffff); + + [NativeTypeName("#define D3D11_32BIT_INDEX_STRIP_CUT_VALUE ( 0xffffffff )")] + public const uint D3D11_32BIT_INDEX_STRIP_CUT_VALUE = (0xffffffff); + + [NativeTypeName("#define D3D11_8BIT_INDEX_STRIP_CUT_VALUE ( 0xff )")] + public const int D3D11_8BIT_INDEX_STRIP_CUT_VALUE = (0xff); + + [NativeTypeName("#define D3D11_ARRAY_AXIS_ADDRESS_RANGE_BIT_COUNT ( 9 )")] + public const int D3D11_ARRAY_AXIS_ADDRESS_RANGE_BIT_COUNT = (9); + + [NativeTypeName("#define D3D11_CLIP_OR_CULL_DISTANCE_COUNT ( 8 )")] + public const int D3D11_CLIP_OR_CULL_DISTANCE_COUNT = (8); + + [NativeTypeName("#define D3D11_CLIP_OR_CULL_DISTANCE_ELEMENT_COUNT ( 2 )")] + public const int D3D11_CLIP_OR_CULL_DISTANCE_ELEMENT_COUNT = (2); + + [NativeTypeName("#define D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT ( 14 )")] + public const int D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT = (14); + + [NativeTypeName("#define D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENTS ( 4 )")] + public const int D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENTS = (4); + + [NativeTypeName("#define D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_COMMONSHADER_CONSTANT_BUFFER_HW_SLOT_COUNT ( 15 )")] + public const int D3D11_COMMONSHADER_CONSTANT_BUFFER_HW_SLOT_COUNT = (15); + + [NativeTypeName("#define D3D11_COMMONSHADER_CONSTANT_BUFFER_PARTIAL_UPDATE_EXTENTS_BYTE_ALIGNMENT ( 16 )")] + public const int D3D11_COMMONSHADER_CONSTANT_BUFFER_PARTIAL_UPDATE_EXTENTS_BYTE_ALIGNMENT = (16); + + [NativeTypeName("#define D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COMPONENTS ( 4 )")] + public const int D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COUNT ( 15 )")] + public const int D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COUNT = (15); + + [NativeTypeName("#define D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READS_PER_INST ( 1 )")] + public const int D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READS_PER_INST = (1); + + [NativeTypeName("#define D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READ_PORTS ( 1 )")] + public const int D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D11_COMMONSHADER_FLOWCONTROL_NESTING_LIMIT ( 64 )")] + public const int D3D11_COMMONSHADER_FLOWCONTROL_NESTING_LIMIT = (64); + + [NativeTypeName("#define D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COMPONENTS ( 4 )")] + public const int D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COUNT ( 1 )")] + public const int D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READS_PER_INST ( 1 )")] + public const int D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READS_PER_INST = (1); + + [NativeTypeName("#define D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READ_PORTS ( 1 )")] + public const int D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D11_COMMONSHADER_IMMEDIATE_VALUE_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_COMMONSHADER_IMMEDIATE_VALUE_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COMPONENTS ( 1 )")] + public const int D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COUNT ( 128 )")] + public const int D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COUNT = (128); + + [NativeTypeName("#define D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READS_PER_INST ( 1 )")] + public const int D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READS_PER_INST = (1); + + [NativeTypeName("#define D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READ_PORTS ( 1 )")] + public const int D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT ( 128 )")] + public const int D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT = (128); + + [NativeTypeName("#define D3D11_COMMONSHADER_SAMPLER_REGISTER_COMPONENTS ( 1 )")] + public const int D3D11_COMMONSHADER_SAMPLER_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D11_COMMONSHADER_SAMPLER_REGISTER_COUNT ( 16 )")] + public const int D3D11_COMMONSHADER_SAMPLER_REGISTER_COUNT = (16); + + [NativeTypeName("#define D3D11_COMMONSHADER_SAMPLER_REGISTER_READS_PER_INST ( 1 )")] + public const int D3D11_COMMONSHADER_SAMPLER_REGISTER_READS_PER_INST = (1); + + [NativeTypeName("#define D3D11_COMMONSHADER_SAMPLER_REGISTER_READ_PORTS ( 1 )")] + public const int D3D11_COMMONSHADER_SAMPLER_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT ( 16 )")] + public const int D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT = (16); + + [NativeTypeName("#define D3D11_COMMONSHADER_SUBROUTINE_NESTING_LIMIT ( 32 )")] + public const int D3D11_COMMONSHADER_SUBROUTINE_NESTING_LIMIT = (32); + + [NativeTypeName("#define D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENTS ( 4 )")] + public const int D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_COMMONSHADER_TEMP_REGISTER_COUNT ( 4096 )")] + public const int D3D11_COMMONSHADER_TEMP_REGISTER_COUNT = (4096); + + [NativeTypeName("#define D3D11_COMMONSHADER_TEMP_REGISTER_READS_PER_INST ( 3 )")] + public const int D3D11_COMMONSHADER_TEMP_REGISTER_READS_PER_INST = (3); + + [NativeTypeName("#define D3D11_COMMONSHADER_TEMP_REGISTER_READ_PORTS ( 3 )")] + public const int D3D11_COMMONSHADER_TEMP_REGISTER_READ_PORTS = (3); + + [NativeTypeName("#define D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MAX ( 10 )")] + public const int D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MAX = (10); + + [NativeTypeName("#define D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MIN ( -10 )")] + public const int D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MIN = (-10); + + [NativeTypeName("#define D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_NEGATIVE ( -8 )")] + public const int D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_NEGATIVE = (-8); + + [NativeTypeName("#define D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_POSITIVE ( 7 )")] + public const int D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_POSITIVE = (7); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET00_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 256 )")] + public const int D3D11_CS_4_X_BUCKET00_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (256); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET00_MAX_NUM_THREADS_PER_GROUP ( 64 )")] + public const int D3D11_CS_4_X_BUCKET00_MAX_NUM_THREADS_PER_GROUP = (64); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET01_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 240 )")] + public const int D3D11_CS_4_X_BUCKET01_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (240); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET01_MAX_NUM_THREADS_PER_GROUP ( 68 )")] + public const int D3D11_CS_4_X_BUCKET01_MAX_NUM_THREADS_PER_GROUP = (68); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET02_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 224 )")] + public const int D3D11_CS_4_X_BUCKET02_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (224); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET02_MAX_NUM_THREADS_PER_GROUP ( 72 )")] + public const int D3D11_CS_4_X_BUCKET02_MAX_NUM_THREADS_PER_GROUP = (72); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET03_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 208 )")] + public const int D3D11_CS_4_X_BUCKET03_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (208); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET03_MAX_NUM_THREADS_PER_GROUP ( 76 )")] + public const int D3D11_CS_4_X_BUCKET03_MAX_NUM_THREADS_PER_GROUP = (76); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET04_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 192 )")] + public const int D3D11_CS_4_X_BUCKET04_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (192); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET04_MAX_NUM_THREADS_PER_GROUP ( 84 )")] + public const int D3D11_CS_4_X_BUCKET04_MAX_NUM_THREADS_PER_GROUP = (84); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET05_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 176 )")] + public const int D3D11_CS_4_X_BUCKET05_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (176); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET05_MAX_NUM_THREADS_PER_GROUP ( 92 )")] + public const int D3D11_CS_4_X_BUCKET05_MAX_NUM_THREADS_PER_GROUP = (92); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET06_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 160 )")] + public const int D3D11_CS_4_X_BUCKET06_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (160); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET06_MAX_NUM_THREADS_PER_GROUP ( 100 )")] + public const int D3D11_CS_4_X_BUCKET06_MAX_NUM_THREADS_PER_GROUP = (100); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET07_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 144 )")] + public const int D3D11_CS_4_X_BUCKET07_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (144); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET07_MAX_NUM_THREADS_PER_GROUP ( 112 )")] + public const int D3D11_CS_4_X_BUCKET07_MAX_NUM_THREADS_PER_GROUP = (112); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET08_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 128 )")] + public const int D3D11_CS_4_X_BUCKET08_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (128); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET08_MAX_NUM_THREADS_PER_GROUP ( 128 )")] + public const int D3D11_CS_4_X_BUCKET08_MAX_NUM_THREADS_PER_GROUP = (128); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET09_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 112 )")] + public const int D3D11_CS_4_X_BUCKET09_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (112); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET09_MAX_NUM_THREADS_PER_GROUP ( 144 )")] + public const int D3D11_CS_4_X_BUCKET09_MAX_NUM_THREADS_PER_GROUP = (144); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET10_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 96 )")] + public const int D3D11_CS_4_X_BUCKET10_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (96); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET10_MAX_NUM_THREADS_PER_GROUP ( 168 )")] + public const int D3D11_CS_4_X_BUCKET10_MAX_NUM_THREADS_PER_GROUP = (168); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET11_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 80 )")] + public const int D3D11_CS_4_X_BUCKET11_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (80); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET11_MAX_NUM_THREADS_PER_GROUP ( 204 )")] + public const int D3D11_CS_4_X_BUCKET11_MAX_NUM_THREADS_PER_GROUP = (204); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET12_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 64 )")] + public const int D3D11_CS_4_X_BUCKET12_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (64); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET12_MAX_NUM_THREADS_PER_GROUP ( 256 )")] + public const int D3D11_CS_4_X_BUCKET12_MAX_NUM_THREADS_PER_GROUP = (256); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET13_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 48 )")] + public const int D3D11_CS_4_X_BUCKET13_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (48); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET13_MAX_NUM_THREADS_PER_GROUP ( 340 )")] + public const int D3D11_CS_4_X_BUCKET13_MAX_NUM_THREADS_PER_GROUP = (340); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET14_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 32 )")] + public const int D3D11_CS_4_X_BUCKET14_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (32); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET14_MAX_NUM_THREADS_PER_GROUP ( 512 )")] + public const int D3D11_CS_4_X_BUCKET14_MAX_NUM_THREADS_PER_GROUP = (512); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET15_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 16 )")] + public const int D3D11_CS_4_X_BUCKET15_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (16); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET15_MAX_NUM_THREADS_PER_GROUP ( 768 )")] + public const int D3D11_CS_4_X_BUCKET15_MAX_NUM_THREADS_PER_GROUP = (768); + + [NativeTypeName("#define D3D11_CS_4_X_DISPATCH_MAX_THREAD_GROUPS_IN_Z_DIMENSION ( 1 )")] + public const int D3D11_CS_4_X_DISPATCH_MAX_THREAD_GROUPS_IN_Z_DIMENSION = (1); + + [NativeTypeName("#define D3D11_CS_4_X_RAW_UAV_BYTE_ALIGNMENT ( 256 )")] + public const int D3D11_CS_4_X_RAW_UAV_BYTE_ALIGNMENT = (256); + + [NativeTypeName("#define D3D11_CS_4_X_THREAD_GROUP_MAX_THREADS_PER_GROUP ( 768 )")] + public const int D3D11_CS_4_X_THREAD_GROUP_MAX_THREADS_PER_GROUP = (768); + + [NativeTypeName("#define D3D11_CS_4_X_THREAD_GROUP_MAX_X ( 768 )")] + public const int D3D11_CS_4_X_THREAD_GROUP_MAX_X = (768); + + [NativeTypeName("#define D3D11_CS_4_X_THREAD_GROUP_MAX_Y ( 768 )")] + public const int D3D11_CS_4_X_THREAD_GROUP_MAX_Y = (768); + + [NativeTypeName("#define D3D11_CS_4_X_UAV_REGISTER_COUNT ( 1 )")] + public const int D3D11_CS_4_X_UAV_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D11_CS_DISPATCH_MAX_THREAD_GROUPS_PER_DIMENSION ( 65535 )")] + public const int D3D11_CS_DISPATCH_MAX_THREAD_GROUPS_PER_DIMENSION = (65535); + + [NativeTypeName("#define D3D11_CS_TGSM_REGISTER_COUNT ( 8192 )")] + public const int D3D11_CS_TGSM_REGISTER_COUNT = (8192); + + [NativeTypeName("#define D3D11_CS_TGSM_REGISTER_READS_PER_INST ( 1 )")] + public const int D3D11_CS_TGSM_REGISTER_READS_PER_INST = (1); + + [NativeTypeName("#define D3D11_CS_TGSM_RESOURCE_REGISTER_COMPONENTS ( 1 )")] + public const int D3D11_CS_TGSM_RESOURCE_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D11_CS_TGSM_RESOURCE_REGISTER_READ_PORTS ( 1 )")] + public const int D3D11_CS_TGSM_RESOURCE_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D11_CS_THREADGROUPID_REGISTER_COMPONENTS ( 3 )")] + public const int D3D11_CS_THREADGROUPID_REGISTER_COMPONENTS = (3); + + [NativeTypeName("#define D3D11_CS_THREADGROUPID_REGISTER_COUNT ( 1 )")] + public const int D3D11_CS_THREADGROUPID_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D11_CS_THREADIDINGROUPFLATTENED_REGISTER_COMPONENTS ( 1 )")] + public const int D3D11_CS_THREADIDINGROUPFLATTENED_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D11_CS_THREADIDINGROUPFLATTENED_REGISTER_COUNT ( 1 )")] + public const int D3D11_CS_THREADIDINGROUPFLATTENED_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D11_CS_THREADIDINGROUP_REGISTER_COMPONENTS ( 3 )")] + public const int D3D11_CS_THREADIDINGROUP_REGISTER_COMPONENTS = (3); + + [NativeTypeName("#define D3D11_CS_THREADIDINGROUP_REGISTER_COUNT ( 1 )")] + public const int D3D11_CS_THREADIDINGROUP_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D11_CS_THREADID_REGISTER_COMPONENTS ( 3 )")] + public const int D3D11_CS_THREADID_REGISTER_COMPONENTS = (3); + + [NativeTypeName("#define D3D11_CS_THREADID_REGISTER_COUNT ( 1 )")] + public const int D3D11_CS_THREADID_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D11_CS_THREAD_GROUP_MAX_THREADS_PER_GROUP ( 1024 )")] + public const int D3D11_CS_THREAD_GROUP_MAX_THREADS_PER_GROUP = (1024); + + [NativeTypeName("#define D3D11_CS_THREAD_GROUP_MAX_X ( 1024 )")] + public const int D3D11_CS_THREAD_GROUP_MAX_X = (1024); + + [NativeTypeName("#define D3D11_CS_THREAD_GROUP_MAX_Y ( 1024 )")] + public const int D3D11_CS_THREAD_GROUP_MAX_Y = (1024); + + [NativeTypeName("#define D3D11_CS_THREAD_GROUP_MAX_Z ( 64 )")] + public const int D3D11_CS_THREAD_GROUP_MAX_Z = (64); + + [NativeTypeName("#define D3D11_CS_THREAD_GROUP_MIN_X ( 1 )")] + public const int D3D11_CS_THREAD_GROUP_MIN_X = (1); + + [NativeTypeName("#define D3D11_CS_THREAD_GROUP_MIN_Y ( 1 )")] + public const int D3D11_CS_THREAD_GROUP_MIN_Y = (1); + + [NativeTypeName("#define D3D11_CS_THREAD_GROUP_MIN_Z ( 1 )")] + public const int D3D11_CS_THREAD_GROUP_MIN_Z = (1); + + [NativeTypeName("#define D3D11_CS_THREAD_LOCAL_TEMP_REGISTER_POOL ( 16384 )")] + public const int D3D11_CS_THREAD_LOCAL_TEMP_REGISTER_POOL = (16384); + + [NativeTypeName("#define D3D11_DEFAULT_BLEND_FACTOR_ALPHA ( 1.0f )")] + public const float D3D11_DEFAULT_BLEND_FACTOR_ALPHA = (1.0f); + + [NativeTypeName("#define D3D11_DEFAULT_BLEND_FACTOR_BLUE ( 1.0f )")] + public const float D3D11_DEFAULT_BLEND_FACTOR_BLUE = (1.0f); + + [NativeTypeName("#define D3D11_DEFAULT_BLEND_FACTOR_GREEN ( 1.0f )")] + public const float D3D11_DEFAULT_BLEND_FACTOR_GREEN = (1.0f); + + [NativeTypeName("#define D3D11_DEFAULT_BLEND_FACTOR_RED ( 1.0f )")] + public const float D3D11_DEFAULT_BLEND_FACTOR_RED = (1.0f); + + [NativeTypeName("#define D3D11_DEFAULT_BORDER_COLOR_COMPONENT ( 0.0f )")] + public const float D3D11_DEFAULT_BORDER_COLOR_COMPONENT = (0.0f); + + [NativeTypeName("#define D3D11_DEFAULT_DEPTH_BIAS ( 0 )")] + public const int D3D11_DEFAULT_DEPTH_BIAS = (0); + + [NativeTypeName("#define D3D11_DEFAULT_DEPTH_BIAS_CLAMP ( 0.0f )")] + public const float D3D11_DEFAULT_DEPTH_BIAS_CLAMP = (0.0f); + + [NativeTypeName("#define D3D11_DEFAULT_MAX_ANISOTROPY ( 16 )")] + public const int D3D11_DEFAULT_MAX_ANISOTROPY = (16); + + [NativeTypeName("#define D3D11_DEFAULT_MIP_LOD_BIAS ( 0.0f )")] + public const float D3D11_DEFAULT_MIP_LOD_BIAS = (0.0f); + + [NativeTypeName("#define D3D11_DEFAULT_RENDER_TARGET_ARRAY_INDEX ( 0 )")] + public const int D3D11_DEFAULT_RENDER_TARGET_ARRAY_INDEX = (0); + + [NativeTypeName("#define D3D11_DEFAULT_SAMPLE_MASK ( 0xffffffff )")] + public const uint D3D11_DEFAULT_SAMPLE_MASK = (0xffffffff); + + [NativeTypeName("#define D3D11_DEFAULT_SCISSOR_ENDX ( 0 )")] + public const int D3D11_DEFAULT_SCISSOR_ENDX = (0); + + [NativeTypeName("#define D3D11_DEFAULT_SCISSOR_ENDY ( 0 )")] + public const int D3D11_DEFAULT_SCISSOR_ENDY = (0); + + [NativeTypeName("#define D3D11_DEFAULT_SCISSOR_STARTX ( 0 )")] + public const int D3D11_DEFAULT_SCISSOR_STARTX = (0); + + [NativeTypeName("#define D3D11_DEFAULT_SCISSOR_STARTY ( 0 )")] + public const int D3D11_DEFAULT_SCISSOR_STARTY = (0); + + [NativeTypeName("#define D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS ( 0.0f )")] + public const float D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS = (0.0f); + + [NativeTypeName("#define D3D11_DEFAULT_STENCIL_READ_MASK ( 0xff )")] + public const int D3D11_DEFAULT_STENCIL_READ_MASK = (0xff); + + [NativeTypeName("#define D3D11_DEFAULT_STENCIL_REFERENCE ( 0 )")] + public const int D3D11_DEFAULT_STENCIL_REFERENCE = (0); + + [NativeTypeName("#define D3D11_DEFAULT_STENCIL_WRITE_MASK ( 0xff )")] + public const int D3D11_DEFAULT_STENCIL_WRITE_MASK = (0xff); + + [NativeTypeName("#define D3D11_DEFAULT_VIEWPORT_AND_SCISSORRECT_INDEX ( 0 )")] + public const int D3D11_DEFAULT_VIEWPORT_AND_SCISSORRECT_INDEX = (0); + + [NativeTypeName("#define D3D11_DEFAULT_VIEWPORT_HEIGHT ( 0 )")] + public const int D3D11_DEFAULT_VIEWPORT_HEIGHT = (0); + + [NativeTypeName("#define D3D11_DEFAULT_VIEWPORT_MAX_DEPTH ( 0.0f )")] + public const float D3D11_DEFAULT_VIEWPORT_MAX_DEPTH = (0.0f); + + [NativeTypeName("#define D3D11_DEFAULT_VIEWPORT_MIN_DEPTH ( 0.0f )")] + public const float D3D11_DEFAULT_VIEWPORT_MIN_DEPTH = (0.0f); + + [NativeTypeName("#define D3D11_DEFAULT_VIEWPORT_TOPLEFTX ( 0 )")] + public const int D3D11_DEFAULT_VIEWPORT_TOPLEFTX = (0); + + [NativeTypeName("#define D3D11_DEFAULT_VIEWPORT_TOPLEFTY ( 0 )")] + public const int D3D11_DEFAULT_VIEWPORT_TOPLEFTY = (0); + + [NativeTypeName("#define D3D11_DEFAULT_VIEWPORT_WIDTH ( 0 )")] + public const int D3D11_DEFAULT_VIEWPORT_WIDTH = (0); + + [NativeTypeName("#define D3D11_DS_INPUT_CONTROL_POINTS_MAX_TOTAL_SCALARS ( 3968 )")] + public const int D3D11_DS_INPUT_CONTROL_POINTS_MAX_TOTAL_SCALARS = (3968); + + [NativeTypeName("#define D3D11_DS_INPUT_CONTROL_POINT_REGISTER_COMPONENTS ( 4 )")] + public const int D3D11_DS_INPUT_CONTROL_POINT_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D11_DS_INPUT_CONTROL_POINT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_DS_INPUT_CONTROL_POINT_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_DS_INPUT_CONTROL_POINT_REGISTER_COUNT ( 32 )")] + public const int D3D11_DS_INPUT_CONTROL_POINT_REGISTER_COUNT = (32); + + [NativeTypeName("#define D3D11_DS_INPUT_CONTROL_POINT_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D11_DS_INPUT_CONTROL_POINT_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D11_DS_INPUT_CONTROL_POINT_REGISTER_READ_PORTS ( 1 )")] + public const int D3D11_DS_INPUT_CONTROL_POINT_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D11_DS_INPUT_DOMAIN_POINT_REGISTER_COMPONENTS ( 3 )")] + public const int D3D11_DS_INPUT_DOMAIN_POINT_REGISTER_COMPONENTS = (3); + + [NativeTypeName("#define D3D11_DS_INPUT_DOMAIN_POINT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_DS_INPUT_DOMAIN_POINT_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_DS_INPUT_DOMAIN_POINT_REGISTER_COUNT ( 1 )")] + public const int D3D11_DS_INPUT_DOMAIN_POINT_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D11_DS_INPUT_DOMAIN_POINT_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D11_DS_INPUT_DOMAIN_POINT_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D11_DS_INPUT_DOMAIN_POINT_REGISTER_READ_PORTS ( 1 )")] + public const int D3D11_DS_INPUT_DOMAIN_POINT_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D11_DS_INPUT_PATCH_CONSTANT_REGISTER_COMPONENTS ( 4 )")] + public const int D3D11_DS_INPUT_PATCH_CONSTANT_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D11_DS_INPUT_PATCH_CONSTANT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_DS_INPUT_PATCH_CONSTANT_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_DS_INPUT_PATCH_CONSTANT_REGISTER_COUNT ( 32 )")] + public const int D3D11_DS_INPUT_PATCH_CONSTANT_REGISTER_COUNT = (32); + + [NativeTypeName("#define D3D11_DS_INPUT_PATCH_CONSTANT_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D11_DS_INPUT_PATCH_CONSTANT_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D11_DS_INPUT_PATCH_CONSTANT_REGISTER_READ_PORTS ( 1 )")] + public const int D3D11_DS_INPUT_PATCH_CONSTANT_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D11_DS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENTS ( 1 )")] + public const int D3D11_DS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D11_DS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_DS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_DS_INPUT_PRIMITIVE_ID_REGISTER_COUNT ( 1 )")] + public const int D3D11_DS_INPUT_PRIMITIVE_ID_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D11_DS_INPUT_PRIMITIVE_ID_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D11_DS_INPUT_PRIMITIVE_ID_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D11_DS_INPUT_PRIMITIVE_ID_REGISTER_READ_PORTS ( 1 )")] + public const int D3D11_DS_INPUT_PRIMITIVE_ID_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D11_DS_OUTPUT_REGISTER_COMPONENTS ( 4 )")] + public const int D3D11_DS_OUTPUT_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D11_DS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_DS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_DS_OUTPUT_REGISTER_COUNT ( 32 )")] + public const int D3D11_DS_OUTPUT_REGISTER_COUNT = (32); + + [NativeTypeName("#define D3D11_FLOAT16_FUSED_TOLERANCE_IN_ULP ( 0.6 )")] + public const double D3D11_FLOAT16_FUSED_TOLERANCE_IN_ULP = (0.6); + + [NativeTypeName("#define D3D11_FLOAT32_MAX ( 3.402823466e+38f )")] + public const float D3D11_FLOAT32_MAX = (3.402823466e+38f); + + [NativeTypeName("#define D3D11_FLOAT32_TO_INTEGER_TOLERANCE_IN_ULP ( 0.6f )")] + public const float D3D11_FLOAT32_TO_INTEGER_TOLERANCE_IN_ULP = (0.6f); + + [NativeTypeName("#define D3D11_FLOAT_TO_SRGB_EXPONENT_DENOMINATOR ( 2.4f )")] + public const float D3D11_FLOAT_TO_SRGB_EXPONENT_DENOMINATOR = (2.4f); + + [NativeTypeName("#define D3D11_FLOAT_TO_SRGB_EXPONENT_NUMERATOR ( 1.0f )")] + public const float D3D11_FLOAT_TO_SRGB_EXPONENT_NUMERATOR = (1.0f); + + [NativeTypeName("#define D3D11_FLOAT_TO_SRGB_OFFSET ( 0.055f )")] + public const float D3D11_FLOAT_TO_SRGB_OFFSET = (0.055f); + + [NativeTypeName("#define D3D11_FLOAT_TO_SRGB_SCALE_1 ( 12.92f )")] + public const float D3D11_FLOAT_TO_SRGB_SCALE_1 = (12.92f); + + [NativeTypeName("#define D3D11_FLOAT_TO_SRGB_SCALE_2 ( 1.055f )")] + public const float D3D11_FLOAT_TO_SRGB_SCALE_2 = (1.055f); + + [NativeTypeName("#define D3D11_FLOAT_TO_SRGB_THRESHOLD ( 0.0031308f )")] + public const float D3D11_FLOAT_TO_SRGB_THRESHOLD = (0.0031308f); + + [NativeTypeName("#define D3D11_FTOI_INSTRUCTION_MAX_INPUT ( 2147483647.999f )")] + public const float D3D11_FTOI_INSTRUCTION_MAX_INPUT = (2147483647.999f); + + [NativeTypeName("#define D3D11_FTOI_INSTRUCTION_MIN_INPUT ( -2147483648.999f )")] + public const float D3D11_FTOI_INSTRUCTION_MIN_INPUT = (-2147483648.999f); + + [NativeTypeName("#define D3D11_FTOU_INSTRUCTION_MAX_INPUT ( 4294967295.999f )")] + public const float D3D11_FTOU_INSTRUCTION_MAX_INPUT = (4294967295.999f); + + [NativeTypeName("#define D3D11_FTOU_INSTRUCTION_MIN_INPUT ( 0.0f )")] + public const float D3D11_FTOU_INSTRUCTION_MIN_INPUT = (0.0f); + + [NativeTypeName("#define D3D11_GS_INPUT_INSTANCE_ID_READS_PER_INST ( 2 )")] + public const int D3D11_GS_INPUT_INSTANCE_ID_READS_PER_INST = (2); + + [NativeTypeName("#define D3D11_GS_INPUT_INSTANCE_ID_READ_PORTS ( 1 )")] + public const int D3D11_GS_INPUT_INSTANCE_ID_READ_PORTS = (1); + + [NativeTypeName("#define D3D11_GS_INPUT_INSTANCE_ID_REGISTER_COMPONENTS ( 1 )")] + public const int D3D11_GS_INPUT_INSTANCE_ID_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D11_GS_INPUT_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_GS_INPUT_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_GS_INPUT_INSTANCE_ID_REGISTER_COUNT ( 1 )")] + public const int D3D11_GS_INPUT_INSTANCE_ID_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D11_GS_INPUT_PRIM_CONST_REGISTER_COMPONENTS ( 1 )")] + public const int D3D11_GS_INPUT_PRIM_CONST_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D11_GS_INPUT_PRIM_CONST_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_GS_INPUT_PRIM_CONST_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_GS_INPUT_PRIM_CONST_REGISTER_COUNT ( 1 )")] + public const int D3D11_GS_INPUT_PRIM_CONST_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D11_GS_INPUT_PRIM_CONST_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D11_GS_INPUT_PRIM_CONST_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D11_GS_INPUT_PRIM_CONST_REGISTER_READ_PORTS ( 1 )")] + public const int D3D11_GS_INPUT_PRIM_CONST_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D11_GS_INPUT_REGISTER_COMPONENTS ( 4 )")] + public const int D3D11_GS_INPUT_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D11_GS_INPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_GS_INPUT_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_GS_INPUT_REGISTER_COUNT ( 32 )")] + public const int D3D11_GS_INPUT_REGISTER_COUNT = (32); + + [NativeTypeName("#define D3D11_GS_INPUT_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D11_GS_INPUT_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D11_GS_INPUT_REGISTER_READ_PORTS ( 1 )")] + public const int D3D11_GS_INPUT_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D11_GS_INPUT_REGISTER_VERTICES ( 32 )")] + public const int D3D11_GS_INPUT_REGISTER_VERTICES = (32); + + [NativeTypeName("#define D3D11_GS_MAX_INSTANCE_COUNT ( 32 )")] + public const int D3D11_GS_MAX_INSTANCE_COUNT = (32); + + [NativeTypeName("#define D3D11_GS_MAX_OUTPUT_VERTEX_COUNT_ACROSS_INSTANCES ( 1024 )")] + public const int D3D11_GS_MAX_OUTPUT_VERTEX_COUNT_ACROSS_INSTANCES = (1024); + + [NativeTypeName("#define D3D11_GS_OUTPUT_ELEMENTS ( 32 )")] + public const int D3D11_GS_OUTPUT_ELEMENTS = (32); + + [NativeTypeName("#define D3D11_GS_OUTPUT_REGISTER_COMPONENTS ( 4 )")] + public const int D3D11_GS_OUTPUT_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D11_GS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_GS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_GS_OUTPUT_REGISTER_COUNT ( 32 )")] + public const int D3D11_GS_OUTPUT_REGISTER_COUNT = (32); + + [NativeTypeName("#define D3D11_HS_CONTROL_POINT_PHASE_INPUT_REGISTER_COUNT ( 32 )")] + public const int D3D11_HS_CONTROL_POINT_PHASE_INPUT_REGISTER_COUNT = (32); + + [NativeTypeName("#define D3D11_HS_CONTROL_POINT_PHASE_OUTPUT_REGISTER_COUNT ( 32 )")] + public const int D3D11_HS_CONTROL_POINT_PHASE_OUTPUT_REGISTER_COUNT = (32); + + [NativeTypeName("#define D3D11_HS_CONTROL_POINT_REGISTER_COMPONENTS ( 4 )")] + public const int D3D11_HS_CONTROL_POINT_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D11_HS_CONTROL_POINT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_HS_CONTROL_POINT_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_HS_CONTROL_POINT_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D11_HS_CONTROL_POINT_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D11_HS_CONTROL_POINT_REGISTER_READ_PORTS ( 1 )")] + public const int D3D11_HS_CONTROL_POINT_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D11_HS_FORK_PHASE_INSTANCE_COUNT_UPPER_BOUND ( 0xffffffff )")] + public const uint D3D11_HS_FORK_PHASE_INSTANCE_COUNT_UPPER_BOUND = (0xffffffff); + + [NativeTypeName("#define D3D11_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COMPONENTS ( 1 )")] + public const int D3D11_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D11_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COUNT ( 1 )")] + public const int D3D11_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D11_HS_INPUT_FORK_INSTANCE_ID_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D11_HS_INPUT_FORK_INSTANCE_ID_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D11_HS_INPUT_FORK_INSTANCE_ID_REGISTER_READ_PORTS ( 1 )")] + public const int D3D11_HS_INPUT_FORK_INSTANCE_ID_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D11_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COMPONENTS ( 1 )")] + public const int D3D11_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D11_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COUNT ( 1 )")] + public const int D3D11_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D11_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D11_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D11_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_READ_PORTS ( 1 )")] + public const int D3D11_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D11_HS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENTS ( 1 )")] + public const int D3D11_HS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D11_HS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_HS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_HS_INPUT_PRIMITIVE_ID_REGISTER_COUNT ( 1 )")] + public const int D3D11_HS_INPUT_PRIMITIVE_ID_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D11_HS_INPUT_PRIMITIVE_ID_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D11_HS_INPUT_PRIMITIVE_ID_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D11_HS_INPUT_PRIMITIVE_ID_REGISTER_READ_PORTS ( 1 )")] + public const int D3D11_HS_INPUT_PRIMITIVE_ID_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D11_HS_JOIN_PHASE_INSTANCE_COUNT_UPPER_BOUND ( 0xffffffff )")] + public const uint D3D11_HS_JOIN_PHASE_INSTANCE_COUNT_UPPER_BOUND = (0xffffffff); + + [NativeTypeName("#define D3D11_HS_MAXTESSFACTOR_LOWER_BOUND ( 1.0f )")] + public const float D3D11_HS_MAXTESSFACTOR_LOWER_BOUND = (1.0f); + + [NativeTypeName("#define D3D11_HS_MAXTESSFACTOR_UPPER_BOUND ( 64.0f )")] + public const float D3D11_HS_MAXTESSFACTOR_UPPER_BOUND = (64.0f); + + [NativeTypeName("#define D3D11_HS_OUTPUT_CONTROL_POINTS_MAX_TOTAL_SCALARS ( 3968 )")] + public const int D3D11_HS_OUTPUT_CONTROL_POINTS_MAX_TOTAL_SCALARS = (3968); + + [NativeTypeName("#define D3D11_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COMPONENTS ( 1 )")] + public const int D3D11_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D11_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COUNT ( 1 )")] + public const int D3D11_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D11_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D11_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D11_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_READ_PORTS ( 1 )")] + public const int D3D11_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COMPONENTS ( 4 )")] + public const int D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COUNT ( 32 )")] + public const int D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COUNT = (32); + + [NativeTypeName("#define D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_READ_PORTS ( 1 )")] + public const int D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_SCALAR_COMPONENTS ( 128 )")] + public const int D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_SCALAR_COMPONENTS = (128); + + [NativeTypeName("#define D3D11_IA_DEFAULT_INDEX_BUFFER_OFFSET_IN_BYTES ( 0 )")] + public const int D3D11_IA_DEFAULT_INDEX_BUFFER_OFFSET_IN_BYTES = (0); + + [NativeTypeName("#define D3D11_IA_DEFAULT_PRIMITIVE_TOPOLOGY ( 0 )")] + public const int D3D11_IA_DEFAULT_PRIMITIVE_TOPOLOGY = (0); + + [NativeTypeName("#define D3D11_IA_DEFAULT_VERTEX_BUFFER_OFFSET_IN_BYTES ( 0 )")] + public const int D3D11_IA_DEFAULT_VERTEX_BUFFER_OFFSET_IN_BYTES = (0); + + [NativeTypeName("#define D3D11_IA_INDEX_INPUT_RESOURCE_SLOT_COUNT ( 1 )")] + public const int D3D11_IA_INDEX_INPUT_RESOURCE_SLOT_COUNT = (1); + + [NativeTypeName("#define D3D11_IA_INSTANCE_ID_BIT_COUNT ( 32 )")] + public const int D3D11_IA_INSTANCE_ID_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_IA_INTEGER_ARITHMETIC_BIT_COUNT ( 32 )")] + public const int D3D11_IA_INTEGER_ARITHMETIC_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_IA_PATCH_MAX_CONTROL_POINT_COUNT ( 32 )")] + public const int D3D11_IA_PATCH_MAX_CONTROL_POINT_COUNT = (32); + + [NativeTypeName("#define D3D11_IA_PRIMITIVE_ID_BIT_COUNT ( 32 )")] + public const int D3D11_IA_PRIMITIVE_ID_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_IA_VERTEX_ID_BIT_COUNT ( 32 )")] + public const int D3D11_IA_VERTEX_ID_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT ( 32 )")] + public const int D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT = (32); + + [NativeTypeName("#define D3D11_IA_VERTEX_INPUT_STRUCTURE_ELEMENTS_COMPONENTS ( 128 )")] + public const int D3D11_IA_VERTEX_INPUT_STRUCTURE_ELEMENTS_COMPONENTS = (128); + + [NativeTypeName("#define D3D11_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT ( 32 )")] + public const int D3D11_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT = (32); + + [NativeTypeName("#define D3D11_INTEGER_DIVIDE_BY_ZERO_QUOTIENT ( 0xffffffff )")] + public const uint D3D11_INTEGER_DIVIDE_BY_ZERO_QUOTIENT = (0xffffffff); + + [NativeTypeName("#define D3D11_INTEGER_DIVIDE_BY_ZERO_REMAINDER ( 0xffffffff )")] + public const uint D3D11_INTEGER_DIVIDE_BY_ZERO_REMAINDER = (0xffffffff); + + [NativeTypeName("#define D3D11_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL ( 0xffffffff )")] + public const uint D3D11_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL = (0xffffffff); + + [NativeTypeName("#define D3D11_KEEP_UNORDERED_ACCESS_VIEWS ( 0xffffffff )")] + public const uint D3D11_KEEP_UNORDERED_ACCESS_VIEWS = (0xffffffff); + + [NativeTypeName("#define D3D11_LINEAR_GAMMA ( 1.0f )")] + public const float D3D11_LINEAR_GAMMA = (1.0f); + + [NativeTypeName("#define D3D11_MAJOR_VERSION ( 11 )")] + public const int D3D11_MAJOR_VERSION = (11); + + [NativeTypeName("#define D3D11_MAX_BORDER_COLOR_COMPONENT ( 1.0f )")] + public const float D3D11_MAX_BORDER_COLOR_COMPONENT = (1.0f); + + [NativeTypeName("#define D3D11_MAX_DEPTH ( 1.0f )")] + public const float D3D11_MAX_DEPTH = (1.0f); + + [NativeTypeName("#define D3D11_MAX_MAXANISOTROPY ( 16 )")] + public const int D3D11_MAX_MAXANISOTROPY = (16); + + [NativeTypeName("#define D3D11_MAX_MULTISAMPLE_SAMPLE_COUNT ( 32 )")] + public const int D3D11_MAX_MULTISAMPLE_SAMPLE_COUNT = (32); + + [NativeTypeName("#define D3D11_MAX_POSITION_VALUE ( 3.402823466e+34f )")] + public const float D3D11_MAX_POSITION_VALUE = (3.402823466e+34f); + + [NativeTypeName("#define D3D11_MAX_TEXTURE_DIMENSION_2_TO_EXP ( 17 )")] + public const int D3D11_MAX_TEXTURE_DIMENSION_2_TO_EXP = (17); + + [NativeTypeName("#define D3D11_MINOR_VERSION ( 0 )")] + public const int D3D11_MINOR_VERSION = (0); + + [NativeTypeName("#define D3D11_MIN_BORDER_COLOR_COMPONENT ( 0.0f )")] + public const float D3D11_MIN_BORDER_COLOR_COMPONENT = (0.0f); + + [NativeTypeName("#define D3D11_MIN_DEPTH ( 0.0f )")] + public const float D3D11_MIN_DEPTH = (0.0f); + + [NativeTypeName("#define D3D11_MIN_MAXANISOTROPY ( 0 )")] + public const int D3D11_MIN_MAXANISOTROPY = (0); + + [NativeTypeName("#define D3D11_MIP_LOD_BIAS_MAX ( 15.99f )")] + public const float D3D11_MIP_LOD_BIAS_MAX = (15.99f); + + [NativeTypeName("#define D3D11_MIP_LOD_BIAS_MIN ( -16.0f )")] + public const float D3D11_MIP_LOD_BIAS_MIN = (-16.0f); + + [NativeTypeName("#define D3D11_MIP_LOD_FRACTIONAL_BIT_COUNT ( 8 )")] + public const int D3D11_MIP_LOD_FRACTIONAL_BIT_COUNT = (8); + + [NativeTypeName("#define D3D11_MIP_LOD_RANGE_BIT_COUNT ( 8 )")] + public const int D3D11_MIP_LOD_RANGE_BIT_COUNT = (8); + + [NativeTypeName("#define D3D11_MULTISAMPLE_ANTIALIAS_LINE_WIDTH ( 1.4f )")] + public const float D3D11_MULTISAMPLE_ANTIALIAS_LINE_WIDTH = (1.4f); + + [NativeTypeName("#define D3D11_NONSAMPLE_FETCH_OUT_OF_RANGE_ACCESS_RESULT ( 0 )")] + public const int D3D11_NONSAMPLE_FETCH_OUT_OF_RANGE_ACCESS_RESULT = (0); + + [NativeTypeName("#define D3D11_PIXEL_ADDRESS_RANGE_BIT_COUNT ( 15 )")] + public const int D3D11_PIXEL_ADDRESS_RANGE_BIT_COUNT = (15); + + [NativeTypeName("#define D3D11_PRE_SCISSOR_PIXEL_ADDRESS_RANGE_BIT_COUNT ( 16 )")] + public const int D3D11_PRE_SCISSOR_PIXEL_ADDRESS_RANGE_BIT_COUNT = (16); + + [NativeTypeName("#define D3D11_PS_CS_UAV_REGISTER_COMPONENTS ( 1 )")] + public const int D3D11_PS_CS_UAV_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D11_PS_CS_UAV_REGISTER_COUNT ( 8 )")] + public const int D3D11_PS_CS_UAV_REGISTER_COUNT = (8); + + [NativeTypeName("#define D3D11_PS_CS_UAV_REGISTER_READS_PER_INST ( 1 )")] + public const int D3D11_PS_CS_UAV_REGISTER_READS_PER_INST = (1); + + [NativeTypeName("#define D3D11_PS_CS_UAV_REGISTER_READ_PORTS ( 1 )")] + public const int D3D11_PS_CS_UAV_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D11_PS_FRONTFACING_DEFAULT_VALUE ( 0xffffffff )")] + public const uint D3D11_PS_FRONTFACING_DEFAULT_VALUE = (0xffffffff); + + [NativeTypeName("#define D3D11_PS_FRONTFACING_FALSE_VALUE ( 0 )")] + public const int D3D11_PS_FRONTFACING_FALSE_VALUE = (0); + + [NativeTypeName("#define D3D11_PS_FRONTFACING_TRUE_VALUE ( 0xffffffff )")] + public const uint D3D11_PS_FRONTFACING_TRUE_VALUE = (0xffffffff); + + [NativeTypeName("#define D3D11_PS_INPUT_REGISTER_COMPONENTS ( 4 )")] + public const int D3D11_PS_INPUT_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D11_PS_INPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_PS_INPUT_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_PS_INPUT_REGISTER_COUNT ( 32 )")] + public const int D3D11_PS_INPUT_REGISTER_COUNT = (32); + + [NativeTypeName("#define D3D11_PS_INPUT_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D11_PS_INPUT_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D11_PS_INPUT_REGISTER_READ_PORTS ( 1 )")] + public const int D3D11_PS_INPUT_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D11_PS_LEGACY_PIXEL_CENTER_FRACTIONAL_COMPONENT ( 0.0f )")] + public const float D3D11_PS_LEGACY_PIXEL_CENTER_FRACTIONAL_COMPONENT = (0.0f); + + [NativeTypeName("#define D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENTS ( 1 )")] + public const int D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_PS_OUTPUT_DEPTH_REGISTER_COUNT ( 1 )")] + public const int D3D11_PS_OUTPUT_DEPTH_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENTS ( 1 )")] + public const int D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_PS_OUTPUT_MASK_REGISTER_COUNT ( 1 )")] + public const int D3D11_PS_OUTPUT_MASK_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D11_PS_OUTPUT_REGISTER_COMPONENTS ( 4 )")] + public const int D3D11_PS_OUTPUT_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D11_PS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_PS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_PS_OUTPUT_REGISTER_COUNT ( 8 )")] + public const int D3D11_PS_OUTPUT_REGISTER_COUNT = (8); + + [NativeTypeName("#define D3D11_PS_PIXEL_CENTER_FRACTIONAL_COMPONENT ( 0.5f )")] + public const float D3D11_PS_PIXEL_CENTER_FRACTIONAL_COMPONENT = (0.5f); + + [NativeTypeName("#define D3D11_RAW_UAV_SRV_BYTE_ALIGNMENT ( 16 )")] + public const int D3D11_RAW_UAV_SRV_BYTE_ALIGNMENT = (16); + + [NativeTypeName("#define D3D11_REQ_BLEND_OBJECT_COUNT_PER_DEVICE ( 4096 )")] + public const int D3D11_REQ_BLEND_OBJECT_COUNT_PER_DEVICE = (4096); + + [NativeTypeName("#define D3D11_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP ( 27 )")] + public const int D3D11_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP = (27); + + [NativeTypeName("#define D3D11_REQ_CONSTANT_BUFFER_ELEMENT_COUNT ( 4096 )")] + public const int D3D11_REQ_CONSTANT_BUFFER_ELEMENT_COUNT = (4096); + + [NativeTypeName("#define D3D11_REQ_DEPTH_STENCIL_OBJECT_COUNT_PER_DEVICE ( 4096 )")] + public const int D3D11_REQ_DEPTH_STENCIL_OBJECT_COUNT_PER_DEVICE = (4096); + + [NativeTypeName("#define D3D11_REQ_DRAWINDEXED_INDEX_COUNT_2_TO_EXP ( 32 )")] + public const int D3D11_REQ_DRAWINDEXED_INDEX_COUNT_2_TO_EXP = (32); + + [NativeTypeName("#define D3D11_REQ_DRAW_VERTEX_COUNT_2_TO_EXP ( 32 )")] + public const int D3D11_REQ_DRAW_VERTEX_COUNT_2_TO_EXP = (32); + + [NativeTypeName("#define D3D11_REQ_FILTERING_HW_ADDRESSABLE_RESOURCE_DIMENSION ( 16384 )")] + public const int D3D11_REQ_FILTERING_HW_ADDRESSABLE_RESOURCE_DIMENSION = (16384); + + [NativeTypeName("#define D3D11_REQ_GS_INVOCATION_32BIT_OUTPUT_COMPONENT_LIMIT ( 1024 )")] + public const int D3D11_REQ_GS_INVOCATION_32BIT_OUTPUT_COMPONENT_LIMIT = (1024); + + [NativeTypeName("#define D3D11_REQ_IMMEDIATE_CONSTANT_BUFFER_ELEMENT_COUNT ( 4096 )")] + public const int D3D11_REQ_IMMEDIATE_CONSTANT_BUFFER_ELEMENT_COUNT = (4096); + + [NativeTypeName("#define D3D11_REQ_MAXANISOTROPY ( 16 )")] + public const int D3D11_REQ_MAXANISOTROPY = (16); + + [NativeTypeName("#define D3D11_REQ_MIP_LEVELS ( 15 )")] + public const int D3D11_REQ_MIP_LEVELS = (15); + + [NativeTypeName("#define D3D11_REQ_MULTI_ELEMENT_STRUCTURE_SIZE_IN_BYTES ( 2048 )")] + public const int D3D11_REQ_MULTI_ELEMENT_STRUCTURE_SIZE_IN_BYTES = (2048); + + [NativeTypeName("#define D3D11_REQ_RASTERIZER_OBJECT_COUNT_PER_DEVICE ( 4096 )")] + public const int D3D11_REQ_RASTERIZER_OBJECT_COUNT_PER_DEVICE = (4096); + + [NativeTypeName("#define D3D11_REQ_RENDER_TO_BUFFER_WINDOW_WIDTH ( 16384 )")] + public const int D3D11_REQ_RENDER_TO_BUFFER_WINDOW_WIDTH = (16384); + + [NativeTypeName("#define D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_A_TERM ( 128 )")] + public const int D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_A_TERM = (128); + + [NativeTypeName("#define D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_B_TERM ( 0.25f )")] + public const float D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_B_TERM = (0.25f); + + [NativeTypeName("#define D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_C_TERM ( 2048 )")] + public const int D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_C_TERM = (2048); + + [NativeTypeName("#define D3D11_REQ_RESOURCE_VIEW_COUNT_PER_DEVICE_2_TO_EXP ( 20 )")] + public const int D3D11_REQ_RESOURCE_VIEW_COUNT_PER_DEVICE_2_TO_EXP = (20); + + [NativeTypeName("#define D3D11_REQ_SAMPLER_OBJECT_COUNT_PER_DEVICE ( 4096 )")] + public const int D3D11_REQ_SAMPLER_OBJECT_COUNT_PER_DEVICE = (4096); + + [NativeTypeName("#define D3D11_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION ( 2048 )")] + public const int D3D11_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION = (2048); + + [NativeTypeName("#define D3D11_REQ_TEXTURE1D_U_DIMENSION ( 16384 )")] + public const int D3D11_REQ_TEXTURE1D_U_DIMENSION = (16384); + + [NativeTypeName("#define D3D11_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION ( 2048 )")] + public const int D3D11_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION = (2048); + + [NativeTypeName("#define D3D11_REQ_TEXTURE2D_U_OR_V_DIMENSION ( 16384 )")] + public const int D3D11_REQ_TEXTURE2D_U_OR_V_DIMENSION = (16384); + + [NativeTypeName("#define D3D11_REQ_TEXTURE3D_U_V_OR_W_DIMENSION ( 2048 )")] + public const int D3D11_REQ_TEXTURE3D_U_V_OR_W_DIMENSION = (2048); + + [NativeTypeName("#define D3D11_REQ_TEXTURECUBE_DIMENSION ( 16384 )")] + public const int D3D11_REQ_TEXTURECUBE_DIMENSION = (16384); + + [NativeTypeName("#define D3D11_RESINFO_INSTRUCTION_MISSING_COMPONENT_RETVAL ( 0 )")] + public const int D3D11_RESINFO_INSTRUCTION_MISSING_COMPONENT_RETVAL = (0); + + [NativeTypeName("#define D3D11_SHADER_MAJOR_VERSION ( 5 )")] + public const int D3D11_SHADER_MAJOR_VERSION = (5); + + [NativeTypeName("#define D3D11_SHADER_MAX_INSTANCES ( 65535 )")] + public const int D3D11_SHADER_MAX_INSTANCES = (65535); + + [NativeTypeName("#define D3D11_SHADER_MAX_INTERFACES ( 253 )")] + public const int D3D11_SHADER_MAX_INTERFACES = (253); + + [NativeTypeName("#define D3D11_SHADER_MAX_INTERFACE_CALL_SITES ( 4096 )")] + public const int D3D11_SHADER_MAX_INTERFACE_CALL_SITES = (4096); + + [NativeTypeName("#define D3D11_SHADER_MAX_TYPES ( 65535 )")] + public const int D3D11_SHADER_MAX_TYPES = (65535); + + [NativeTypeName("#define D3D11_SHADER_MINOR_VERSION ( 0 )")] + public const int D3D11_SHADER_MINOR_VERSION = (0); + + [NativeTypeName("#define D3D11_SHIFT_INSTRUCTION_PAD_VALUE ( 0 )")] + public const int D3D11_SHIFT_INSTRUCTION_PAD_VALUE = (0); + + [NativeTypeName("#define D3D11_SHIFT_INSTRUCTION_SHIFT_VALUE_BIT_COUNT ( 5 )")] + public const int D3D11_SHIFT_INSTRUCTION_SHIFT_VALUE_BIT_COUNT = (5); + + [NativeTypeName("#define D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT ( 8 )")] + public const int D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT = (8); + + [NativeTypeName("#define D3D11_SO_BUFFER_MAX_STRIDE_IN_BYTES ( 2048 )")] + public const int D3D11_SO_BUFFER_MAX_STRIDE_IN_BYTES = (2048); + + [NativeTypeName("#define D3D11_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES ( 512 )")] + public const int D3D11_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES = (512); + + [NativeTypeName("#define D3D11_SO_BUFFER_SLOT_COUNT ( 4 )")] + public const int D3D11_SO_BUFFER_SLOT_COUNT = (4); + + [NativeTypeName("#define D3D11_SO_DDI_REGISTER_INDEX_DENOTING_GAP ( 0xffffffff )")] + public const uint D3D11_SO_DDI_REGISTER_INDEX_DENOTING_GAP = (0xffffffff); + + [NativeTypeName("#define D3D11_SO_NO_RASTERIZED_STREAM ( 0xffffffff )")] + public const uint D3D11_SO_NO_RASTERIZED_STREAM = (0xffffffff); + + [NativeTypeName("#define D3D11_SO_OUTPUT_COMPONENT_COUNT ( 128 )")] + public const int D3D11_SO_OUTPUT_COMPONENT_COUNT = (128); + + [NativeTypeName("#define D3D11_SO_STREAM_COUNT ( 4 )")] + public const int D3D11_SO_STREAM_COUNT = (4); + + [NativeTypeName("#define D3D11_SPEC_DATE_DAY ( 16 )")] + public const int D3D11_SPEC_DATE_DAY = (16); + + [NativeTypeName("#define D3D11_SPEC_DATE_MONTH ( 05 )")] + public const int D3D11_SPEC_DATE_MONTH = (05); + + [NativeTypeName("#define D3D11_SPEC_DATE_YEAR ( 2011 )")] + public const int D3D11_SPEC_DATE_YEAR = (2011); + + [NativeTypeName("#define D3D11_SPEC_VERSION ( 1.07 )")] + public const double D3D11_SPEC_VERSION = (1.07); + + [NativeTypeName("#define D3D11_SRGB_GAMMA ( 2.2f )")] + public const float D3D11_SRGB_GAMMA = (2.2f); + + [NativeTypeName("#define D3D11_SRGB_TO_FLOAT_DENOMINATOR_1 ( 12.92f )")] + public const float D3D11_SRGB_TO_FLOAT_DENOMINATOR_1 = (12.92f); + + [NativeTypeName("#define D3D11_SRGB_TO_FLOAT_DENOMINATOR_2 ( 1.055f )")] + public const float D3D11_SRGB_TO_FLOAT_DENOMINATOR_2 = (1.055f); + + [NativeTypeName("#define D3D11_SRGB_TO_FLOAT_EXPONENT ( 2.4f )")] + public const float D3D11_SRGB_TO_FLOAT_EXPONENT = (2.4f); + + [NativeTypeName("#define D3D11_SRGB_TO_FLOAT_OFFSET ( 0.055f )")] + public const float D3D11_SRGB_TO_FLOAT_OFFSET = (0.055f); + + [NativeTypeName("#define D3D11_SRGB_TO_FLOAT_THRESHOLD ( 0.04045f )")] + public const float D3D11_SRGB_TO_FLOAT_THRESHOLD = (0.04045f); + + [NativeTypeName("#define D3D11_SRGB_TO_FLOAT_TOLERANCE_IN_ULP ( 0.5f )")] + public const float D3D11_SRGB_TO_FLOAT_TOLERANCE_IN_ULP = (0.5f); + + [NativeTypeName("#define D3D11_STANDARD_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_STANDARD_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_STANDARD_COMPONENT_BIT_COUNT_DOUBLED ( 64 )")] + public const int D3D11_STANDARD_COMPONENT_BIT_COUNT_DOUBLED = (64); + + [NativeTypeName("#define D3D11_STANDARD_MAXIMUM_ELEMENT_ALIGNMENT_BYTE_MULTIPLE ( 4 )")] + public const int D3D11_STANDARD_MAXIMUM_ELEMENT_ALIGNMENT_BYTE_MULTIPLE = (4); + + [NativeTypeName("#define D3D11_STANDARD_PIXEL_COMPONENT_COUNT ( 128 )")] + public const int D3D11_STANDARD_PIXEL_COMPONENT_COUNT = (128); + + [NativeTypeName("#define D3D11_STANDARD_PIXEL_ELEMENT_COUNT ( 32 )")] + public const int D3D11_STANDARD_PIXEL_ELEMENT_COUNT = (32); + + [NativeTypeName("#define D3D11_STANDARD_VECTOR_SIZE ( 4 )")] + public const int D3D11_STANDARD_VECTOR_SIZE = (4); + + [NativeTypeName("#define D3D11_STANDARD_VERTEX_ELEMENT_COUNT ( 32 )")] + public const int D3D11_STANDARD_VERTEX_ELEMENT_COUNT = (32); + + [NativeTypeName("#define D3D11_STANDARD_VERTEX_TOTAL_COMPONENT_COUNT ( 64 )")] + public const int D3D11_STANDARD_VERTEX_TOTAL_COMPONENT_COUNT = (64); + + [NativeTypeName("#define D3D11_SUBPIXEL_FRACTIONAL_BIT_COUNT ( 8 )")] + public const int D3D11_SUBPIXEL_FRACTIONAL_BIT_COUNT = (8); + + [NativeTypeName("#define D3D11_SUBTEXEL_FRACTIONAL_BIT_COUNT ( 8 )")] + public const int D3D11_SUBTEXEL_FRACTIONAL_BIT_COUNT = (8); + + [NativeTypeName("#define D3D11_TESSELLATOR_MAX_EVEN_TESSELLATION_FACTOR ( 64 )")] + public const int D3D11_TESSELLATOR_MAX_EVEN_TESSELLATION_FACTOR = (64); + + [NativeTypeName("#define D3D11_TESSELLATOR_MAX_ISOLINE_DENSITY_TESSELLATION_FACTOR ( 64 )")] + public const int D3D11_TESSELLATOR_MAX_ISOLINE_DENSITY_TESSELLATION_FACTOR = (64); + + [NativeTypeName("#define D3D11_TESSELLATOR_MAX_ODD_TESSELLATION_FACTOR ( 63 )")] + public const int D3D11_TESSELLATOR_MAX_ODD_TESSELLATION_FACTOR = (63); + + [NativeTypeName("#define D3D11_TESSELLATOR_MAX_TESSELLATION_FACTOR ( 64 )")] + public const int D3D11_TESSELLATOR_MAX_TESSELLATION_FACTOR = (64); + + [NativeTypeName("#define D3D11_TESSELLATOR_MIN_EVEN_TESSELLATION_FACTOR ( 2 )")] + public const int D3D11_TESSELLATOR_MIN_EVEN_TESSELLATION_FACTOR = (2); + + [NativeTypeName("#define D3D11_TESSELLATOR_MIN_ISOLINE_DENSITY_TESSELLATION_FACTOR ( 1 )")] + public const int D3D11_TESSELLATOR_MIN_ISOLINE_DENSITY_TESSELLATION_FACTOR = (1); + + [NativeTypeName("#define D3D11_TESSELLATOR_MIN_ODD_TESSELLATION_FACTOR ( 1 )")] + public const int D3D11_TESSELLATOR_MIN_ODD_TESSELLATION_FACTOR = (1); + + [NativeTypeName("#define D3D11_TEXEL_ADDRESS_RANGE_BIT_COUNT ( 16 )")] + public const int D3D11_TEXEL_ADDRESS_RANGE_BIT_COUNT = (16); + + [NativeTypeName("#define D3D11_UNBOUND_MEMORY_ACCESS_RESULT ( 0 )")] + public const int D3D11_UNBOUND_MEMORY_ACCESS_RESULT = (0); + + [NativeTypeName("#define D3D11_VIEWPORT_AND_SCISSORRECT_MAX_INDEX ( 15 )")] + public const int D3D11_VIEWPORT_AND_SCISSORRECT_MAX_INDEX = (15); + + [NativeTypeName("#define D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE ( 16 )")] + public const int D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE = (16); + + [NativeTypeName("#define D3D11_VIEWPORT_BOUNDS_MAX ( 32767 )")] + public const int D3D11_VIEWPORT_BOUNDS_MAX = (32767); + + [NativeTypeName("#define D3D11_VIEWPORT_BOUNDS_MIN ( -32768 )")] + public const int D3D11_VIEWPORT_BOUNDS_MIN = (-32768); + + [NativeTypeName("#define D3D11_VS_INPUT_REGISTER_COMPONENTS ( 4 )")] + public const int D3D11_VS_INPUT_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D11_VS_INPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_VS_INPUT_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_VS_INPUT_REGISTER_COUNT ( 32 )")] + public const int D3D11_VS_INPUT_REGISTER_COUNT = (32); + + [NativeTypeName("#define D3D11_VS_INPUT_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D11_VS_INPUT_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D11_VS_INPUT_REGISTER_READ_PORTS ( 1 )")] + public const int D3D11_VS_INPUT_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D11_VS_OUTPUT_REGISTER_COMPONENTS ( 4 )")] + public const int D3D11_VS_OUTPUT_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D11_VS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_VS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_VS_OUTPUT_REGISTER_COUNT ( 32 )")] + public const int D3D11_VS_OUTPUT_REGISTER_COUNT = (32); + + [NativeTypeName("#define D3D11_WHQL_CONTEXT_COUNT_FOR_RESOURCE_LIMIT ( 10 )")] + public const int D3D11_WHQL_CONTEXT_COUNT_FOR_RESOURCE_LIMIT = (10); + + [NativeTypeName("#define D3D11_WHQL_DRAWINDEXED_INDEX_COUNT_2_TO_EXP ( 25 )")] + public const int D3D11_WHQL_DRAWINDEXED_INDEX_COUNT_2_TO_EXP = (25); + + [NativeTypeName("#define D3D11_WHQL_DRAW_VERTEX_COUNT_2_TO_EXP ( 25 )")] + public const int D3D11_WHQL_DRAW_VERTEX_COUNT_2_TO_EXP = (25); + + [NativeTypeName("#define D3D11_1_UAV_SLOT_COUNT ( 64 )")] + public const int D3D11_1_UAV_SLOT_COUNT = (64); + + [NativeTypeName("#define D3D11_2_TILED_RESOURCE_TILE_SIZE_IN_BYTES ( 65536 )")] + public const int D3D11_2_TILED_RESOURCE_TILE_SIZE_IN_BYTES = (65536); + + [NativeTypeName("#define D3D11_4_VIDEO_DECODER_MAX_HISTOGRAM_COMPONENTS ( 4 )")] + public const int D3D11_4_VIDEO_DECODER_MAX_HISTOGRAM_COMPONENTS = (4); + + [NativeTypeName("#define D3D11_4_VIDEO_DECODER_HISTOGRAM_OFFSET_ALIGNMENT ( 256 )")] + public const int D3D11_4_VIDEO_DECODER_HISTOGRAM_OFFSET_ALIGNMENT = (256); + + [NativeTypeName("#define D3D11_APPEND_ALIGNED_ELEMENT ( 0xffffffff )")] + public const uint D3D11_APPEND_ALIGNED_ELEMENT = (0xffffffff); + + [NativeTypeName("#define D3D11_FILTER_REDUCTION_TYPE_MASK ( 0x3 )")] + public const int D3D11_FILTER_REDUCTION_TYPE_MASK = (0x3); + + [NativeTypeName("#define D3D11_FILTER_REDUCTION_TYPE_SHIFT ( 7 )")] + public const int D3D11_FILTER_REDUCTION_TYPE_SHIFT = (7); + + [NativeTypeName("#define D3D11_FILTER_TYPE_MASK ( 0x3 )")] + public const int D3D11_FILTER_TYPE_MASK = (0x3); + + [NativeTypeName("#define D3D11_MIN_FILTER_SHIFT ( 4 )")] + public const int D3D11_MIN_FILTER_SHIFT = (4); + + [NativeTypeName("#define D3D11_MAG_FILTER_SHIFT ( 2 )")] + public const int D3D11_MAG_FILTER_SHIFT = (2); + + [NativeTypeName("#define D3D11_MIP_FILTER_SHIFT ( 0 )")] + public const int D3D11_MIP_FILTER_SHIFT = (0); + + [NativeTypeName("#define D3D11_COMPARISON_FILTERING_BIT ( 0x80 )")] + public const int D3D11_COMPARISON_FILTERING_BIT = (0x80); + + [NativeTypeName("#define D3D11_ANISOTROPIC_FILTERING_BIT ( 0x40 )")] + public const int D3D11_ANISOTROPIC_FILTERING_BIT = (0x40); + + [NativeTypeName("#define D3D11_SDK_VERSION ( 7 )")] + public const int D3D11_SDK_VERSION = (7); + } +} diff --git a/src/TerraFX.Interop.Windows/DirectX/um/d3d12/DirectX.cs b/src/TerraFX.Interop.Windows/DirectX/um/d3d12/DirectX.cs new file mode 100644 index 00000000..48b8cf22 --- /dev/null +++ b/src/TerraFX.Interop.Windows/DirectX/um/d3d12/DirectX.cs @@ -0,0 +1,115 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/d3d12.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using TerraFX.Interop.Windows; + +namespace TerraFX.Interop.DirectX +{ + public static unsafe partial class DirectX + { + [DllImport("d3d12", ExactSpelling = true)] + public static extern HRESULT D3D12SerializeRootSignature([NativeTypeName("const D3D12_ROOT_SIGNATURE_DESC *")] D3D12_ROOT_SIGNATURE_DESC* pRootSignature, D3D_ROOT_SIGNATURE_VERSION Version, ID3DBlob** ppBlob, ID3DBlob** ppErrorBlob); + + [DllImport("d3d12", ExactSpelling = true)] + public static extern HRESULT D3D12CreateRootSignatureDeserializer([NativeTypeName("LPCVOID")] void* pSrcData, [NativeTypeName("SIZE_T")] nuint SrcDataSizeInBytes, [NativeTypeName("const IID &")] Guid* pRootSignatureDeserializerInterface, void** ppRootSignatureDeserializer); + + [DllImport("d3d12", ExactSpelling = true)] + public static extern HRESULT D3D12SerializeVersionedRootSignature([NativeTypeName("const D3D12_VERSIONED_ROOT_SIGNATURE_DESC *")] D3D12_VERSIONED_ROOT_SIGNATURE_DESC* pRootSignature, ID3DBlob** ppBlob, ID3DBlob** ppErrorBlob); + + [DllImport("d3d12", ExactSpelling = true)] + public static extern HRESULT D3D12CreateVersionedRootSignatureDeserializer([NativeTypeName("LPCVOID")] void* pSrcData, [NativeTypeName("SIZE_T")] nuint SrcDataSizeInBytes, [NativeTypeName("const IID &")] Guid* pRootSignatureDeserializerInterface, void** ppRootSignatureDeserializer); + + [DllImport("d3d12", ExactSpelling = true)] + public static extern HRESULT D3D12CreateDevice(IUnknown* pAdapter, D3D_FEATURE_LEVEL MinimumFeatureLevel, [NativeTypeName("const IID &")] Guid* riid, void** ppDevice); + + [DllImport("d3d12", ExactSpelling = true)] + public static extern HRESULT D3D12GetDebugInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvDebug); + + [DllImport("d3d12", ExactSpelling = true)] + public static extern HRESULT D3D12EnableExperimentalFeatures(uint NumFeatures, [NativeTypeName("const IID *")] Guid* pIIDs, void* pConfigurationStructs, uint* pConfigurationStructSizes); + + [NativeTypeName("const UUID")] + public static ref readonly Guid D3D12ExperimentalShaderModels + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x3E, 0x57, 0xF5, 0x76, + 0x3A, 0xF1, + 0xF5, 0x40, + 0xB2, + 0x97, + 0x81, + 0xCE, + 0x9E, + 0x18, + 0x93, + 0x3F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const UUID")] + public static ref readonly Guid D3D12TiledResourceTier4 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x5F, 0x72, 0xC4, 0xC9, + 0x1A, 0xA8, + 0x56, 0x4F, + 0x8C, + 0x5B, + 0xC5, + 0x10, + 0x39, + 0xD6, + 0x94, + 0xFB + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const UUID")] + public static ref readonly Guid D3D12MetaCommand + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x7E, 0xC9, 0x34, 0xC7, + 0x77, 0x80, + 0xC8, 0x48, + 0x9F, + 0xDC, + 0xD9, + 0xD1, + 0xDD, + 0x31, + 0xDD, + 0x77 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [DllImport("d3d12", ExactSpelling = true)] + public static extern HRESULT D3D12GetInterface([NativeTypeName("const IID &")] Guid* rclsid, [NativeTypeName("const IID &")] Guid* riid, void** ppvDebug); + } +} diff --git a/src/TerraFX.Interop.Windows/DirectX/um/dxcapi/CLSID.cs b/src/TerraFX.Interop.Windows/DirectX/um/dxcapi/CLSID.cs new file mode 100644 index 00000000..56266665 --- /dev/null +++ b/src/TerraFX.Interop.Windows/DirectX/um/dxcapi/CLSID.cs @@ -0,0 +1,268 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/dxcapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. Licensed under the University of Illinois Open Source License. + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace TerraFX.Interop.Windows +{ + public static partial class CLSID + { + [NativeTypeName("const CLSID")] + public static ref readonly Guid CLSID_DxcCompiler + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x93, 0x2D, 0xE2, 0x73, + 0xCE, 0xE6, + 0xF3, 0x47, + 0xB5, + 0xBF, + 0xF0, + 0x66, + 0x4F, + 0x39, + 0xC1, + 0xB0 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid CLSID_DxcLinker + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x87, 0x80, 0x6A, 0xEF, + 0xEA, 0xB0, + 0x56, 0x4D, + 0x9E, + 0x45, + 0xD0, + 0x7E, + 0x1A, + 0x8B, + 0x78, + 0x06 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const CLSID")] + public static ref readonly Guid CLSID_DxcDiaDataSource + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x73, 0x6B, 0x1F, 0xCD, + 0xB0, 0x2A, + 0x4D, 0x48, + 0x8E, + 0xDC, + 0xEB, + 0xE7, + 0xA4, + 0x3C, + 0xA0, + 0x9F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const CLSID")] + public static ref readonly Guid CLSID_DxcCompilerArgs + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x82, 0xAE, 0x56, 0x3E, + 0x4D, 0x22, + 0x0F, 0x47, + 0xA1, + 0xA1, + 0xFE, + 0x30, + 0x16, + 0xEE, + 0x9F, + 0x9D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid CLSID_DxcLibrary + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xAF, 0xD6, 0x45, 0x62, + 0xE0, 0x66, + 0xFD, 0x48, + 0x80, + 0xB4, + 0x4D, + 0x27, + 0x17, + 0x96, + 0x74, + 0x8C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid CLSID_DxcUtils => ref CLSID_DxcLibrary; + + [NativeTypeName("const GUID")] + public static ref readonly Guid CLSID_DxcValidator + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x15, 0xE2, 0xA3, 0x8C, + 0x28, 0xF7, + 0xF3, 0x4C, + 0x8C, + 0xDD, + 0x88, + 0xAF, + 0x91, + 0x75, + 0x87, + 0xA1 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid CLSID_DxcAssembler + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x68, 0xDB, 0x28, 0xD7, + 0x03, 0xF9, + 0x80, 0x4F, + 0x94, + 0xCD, + 0xDC, + 0xCF, + 0x76, + 0xEC, + 0x71, + 0x51 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid CLSID_DxcContainerReflection + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x89, 0x44, 0xF5, 0xB9, + 0xB8, 0x55, + 0x0C, 0x40, + 0xBA, + 0x3A, + 0x16, + 0x75, + 0xE4, + 0x72, + 0x8B, + 0x91 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid CLSID_DxcOptimizer + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x9F, 0xD7, 0x2C, 0xAE, + 0x22, 0xCC, + 0x3F, 0x45, + 0x9B, + 0x6B, + 0xB1, + 0x24, + 0xE7, + 0xA5, + 0x20, + 0x4C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid CLSID_DxcContainerBuilder + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x94, 0x42, 0x13, 0x94, + 0x1F, 0x41, + 0x74, 0x45, + 0xB4, + 0xD0, + 0x87, + 0x41, + 0xE2, + 0x52, + 0x40, + 0xD2 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + } +} diff --git a/src/TerraFX.Interop.Windows/DirectX/um/dxcapi/DirectX.cs b/src/TerraFX.Interop.Windows/DirectX/um/dxcapi/DirectX.cs new file mode 100644 index 00000000..e5fd6569 --- /dev/null +++ b/src/TerraFX.Interop.Windows/DirectX/um/dxcapi/DirectX.cs @@ -0,0 +1,20 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/dxcapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. Licensed under the University of Illinois Open Source License. + +using System; +using System.Runtime.InteropServices; +using TerraFX.Interop.Windows; + +namespace TerraFX.Interop.DirectX +{ + public static unsafe partial class DirectX + { + [DllImport("dxcompiler", ExactSpelling = true)] + public static extern HRESULT DxcCreateInstance([NativeTypeName("const IID &")] Guid* rclsid, [NativeTypeName("const IID &")] Guid* riid, [NativeTypeName("LPVOID *")] void** ppv); + + [DllImport("dxcompiler", ExactSpelling = true)] + public static extern HRESULT DxcCreateInstance2(IMalloc* pMalloc, [NativeTypeName("const IID &")] Guid* rclsid, [NativeTypeName("const IID &")] Guid* riid, [NativeTypeName("LPVOID *")] void** ppv); + } +} diff --git a/src/TerraFX.Interop.Windows/Windows/shared/minwindef/Windows.cs b/src/TerraFX.Interop.Windows/Windows/shared/minwindef/Windows.cs new file mode 100644 index 00000000..a8bf9658 --- /dev/null +++ b/src/TerraFX.Interop.Windows/Windows/shared/minwindef/Windows.cs @@ -0,0 +1,19 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/minwindef.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class Windows + { + [NativeTypeName("#define STRICT 1")] + public const int STRICT = 1; + + [NativeTypeName("#define FALSE 0")] + public const int FALSE = 0; + + [NativeTypeName("#define TRUE 1")] + public const int TRUE = 1; + } +} diff --git a/src/TerraFX.Interop.Windows/Windows/shared/uuids/Windows.Manual.cs b/src/TerraFX.Interop.Windows/Windows/shared/uuids/Windows.Manual.cs new file mode 100644 index 00000000..aef2a00b --- /dev/null +++ b/src/TerraFX.Interop.Windows/Windows/shared/uuids/Windows.Manual.cs @@ -0,0 +1,85 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/uuids.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; +using System.ComponentModel; +using System.Runtime.CompilerServices; + +namespace TerraFX.Interop.Windows +{ + public static partial class Windows + { + /// Retrieves the GUID of of a specified type. + /// A value of type . + /// The type to retrieve the GUID for. + /// A value wrapping a pointer to the GUID data for the input type. This value can be either converted to a pointer, or implicitly assigned to a value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static unsafe UuidOfType __uuidof(T value) // for type inference similar to C++'s __uuidof + where T : unmanaged + { + return new UuidOfType(UUID.RIID); + } + + /// Retrieves the GUID of of a specified type. + /// A pointer to a value of type . + /// The type to retrieve the GUID for. + /// A value wrapping a pointer to the GUID data for the input type. This value can be either converted to a pointer, or implicitly assigned to a value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static unsafe UuidOfType __uuidof(T* value) // for type inference similar to C++'s __uuidof + where T : unmanaged + { + return new UuidOfType(UUID.RIID); + } + + /// Retrieves the GUID of of a specified type. + /// The type to retrieve the GUID for. + /// A value wrapping a pointer to the GUID data for the input type. This value can be either converted to a pointer, or implicitly assigned to a value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static unsafe UuidOfType __uuidof() + where T : unmanaged + { + return new UuidOfType(UUID.RIID); + } + + /// A proxy type that wraps a pointer to GUID data. Values of this type can be implicitly converted to and assigned to * or parameters. + [EditorBrowsable(EditorBrowsableState.Never)] + public readonly unsafe ref struct UuidOfType + { + private readonly Guid* riid; + + internal UuidOfType(Guid* riid) + { + this.riid = riid; + } + + /// Reads a value from the GUID buffer for a given instance. + /// The input instance to read data for. + public static implicit operator Guid(UuidOfType guid) => *guid.riid; + + /// Returns the * pointer to the GUID buffer for a given instance. + /// The input instance to read data for. + public static implicit operator Guid*(UuidOfType guid) => guid.riid; + } + + /// A helper type to provide static GUID buffers for specific types. + /// The type to allocate a GUID buffer for. + private static unsafe class UUID + where T : unmanaged + { + /// The pointer to the value for the current type. + /// The target memory area should never be written to. + public static readonly Guid* RIID = CreateRIID(); + + /// Allocates memory for a value and initializes it. + /// A pointer to memory holding the value for the current type. + private static Guid* CreateRIID() + { + var p = (Guid*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(T), sizeof(Guid)); + *p = typeof(T).GUID; + return p; + } + } + } +} diff --git a/src/TerraFX.Interop.Windows/Windows/shared/winerror/DXGI.cs b/src/TerraFX.Interop.Windows/Windows/shared/winerror/DXGI.cs new file mode 100644 index 00000000..b6aaaf9b --- /dev/null +++ b/src/TerraFX.Interop.Windows/Windows/shared/winerror/DXGI.cs @@ -0,0 +1,147 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using TerraFX.Interop.Windows; + +namespace TerraFX.Interop.DirectX +{ + public static partial class DXGI + { + [NativeTypeName("#define DXGI_STATUS_OCCLUDED _HRESULT_TYPEDEF_(0x087A0001L)")] + public const int DXGI_STATUS_OCCLUDED = ((int)(0x087A0001)); + + [NativeTypeName("#define DXGI_STATUS_CLIPPED _HRESULT_TYPEDEF_(0x087A0002L)")] + public const int DXGI_STATUS_CLIPPED = ((int)(0x087A0002)); + + [NativeTypeName("#define DXGI_STATUS_NO_REDIRECTION _HRESULT_TYPEDEF_(0x087A0004L)")] + public const int DXGI_STATUS_NO_REDIRECTION = ((int)(0x087A0004)); + + [NativeTypeName("#define DXGI_STATUS_NO_DESKTOP_ACCESS _HRESULT_TYPEDEF_(0x087A0005L)")] + public const int DXGI_STATUS_NO_DESKTOP_ACCESS = ((int)(0x087A0005)); + + [NativeTypeName("#define DXGI_STATUS_GRAPHICS_VIDPN_SOURCE_IN_USE _HRESULT_TYPEDEF_(0x087A0006L)")] + public const int DXGI_STATUS_GRAPHICS_VIDPN_SOURCE_IN_USE = ((int)(0x087A0006)); + + [NativeTypeName("#define DXGI_STATUS_MODE_CHANGED _HRESULT_TYPEDEF_(0x087A0007L)")] + public const int DXGI_STATUS_MODE_CHANGED = ((int)(0x087A0007)); + + [NativeTypeName("#define DXGI_STATUS_MODE_CHANGE_IN_PROGRESS _HRESULT_TYPEDEF_(0x087A0008L)")] + public const int DXGI_STATUS_MODE_CHANGE_IN_PROGRESS = ((int)(0x087A0008)); + + [NativeTypeName("#define DXGI_ERROR_INVALID_CALL _HRESULT_TYPEDEF_(0x887A0001L)")] + public const int DXGI_ERROR_INVALID_CALL = unchecked((int)(0x887A0001)); + + [NativeTypeName("#define DXGI_ERROR_NOT_FOUND _HRESULT_TYPEDEF_(0x887A0002L)")] + public const int DXGI_ERROR_NOT_FOUND = unchecked((int)(0x887A0002)); + + [NativeTypeName("#define DXGI_ERROR_MORE_DATA _HRESULT_TYPEDEF_(0x887A0003L)")] + public const int DXGI_ERROR_MORE_DATA = unchecked((int)(0x887A0003)); + + [NativeTypeName("#define DXGI_ERROR_UNSUPPORTED _HRESULT_TYPEDEF_(0x887A0004L)")] + public const int DXGI_ERROR_UNSUPPORTED = unchecked((int)(0x887A0004)); + + [NativeTypeName("#define DXGI_ERROR_DEVICE_REMOVED _HRESULT_TYPEDEF_(0x887A0005L)")] + public const int DXGI_ERROR_DEVICE_REMOVED = unchecked((int)(0x887A0005)); + + [NativeTypeName("#define DXGI_ERROR_DEVICE_HUNG _HRESULT_TYPEDEF_(0x887A0006L)")] + public const int DXGI_ERROR_DEVICE_HUNG = unchecked((int)(0x887A0006)); + + [NativeTypeName("#define DXGI_ERROR_DEVICE_RESET _HRESULT_TYPEDEF_(0x887A0007L)")] + public const int DXGI_ERROR_DEVICE_RESET = unchecked((int)(0x887A0007)); + + [NativeTypeName("#define DXGI_ERROR_WAS_STILL_DRAWING _HRESULT_TYPEDEF_(0x887A000AL)")] + public const int DXGI_ERROR_WAS_STILL_DRAWING = unchecked((int)(0x887A000A)); + + [NativeTypeName("#define DXGI_ERROR_FRAME_STATISTICS_DISJOINT _HRESULT_TYPEDEF_(0x887A000BL)")] + public const int DXGI_ERROR_FRAME_STATISTICS_DISJOINT = unchecked((int)(0x887A000B)); + + [NativeTypeName("#define DXGI_ERROR_GRAPHICS_VIDPN_SOURCE_IN_USE _HRESULT_TYPEDEF_(0x887A000CL)")] + public const int DXGI_ERROR_GRAPHICS_VIDPN_SOURCE_IN_USE = unchecked((int)(0x887A000C)); + + [NativeTypeName("#define DXGI_ERROR_DRIVER_INTERNAL_ERROR _HRESULT_TYPEDEF_(0x887A0020L)")] + public const int DXGI_ERROR_DRIVER_INTERNAL_ERROR = unchecked((int)(0x887A0020)); + + [NativeTypeName("#define DXGI_ERROR_NONEXCLUSIVE _HRESULT_TYPEDEF_(0x887A0021L)")] + public const int DXGI_ERROR_NONEXCLUSIVE = unchecked((int)(0x887A0021)); + + [NativeTypeName("#define DXGI_ERROR_NOT_CURRENTLY_AVAILABLE _HRESULT_TYPEDEF_(0x887A0022L)")] + public const int DXGI_ERROR_NOT_CURRENTLY_AVAILABLE = unchecked((int)(0x887A0022)); + + [NativeTypeName("#define DXGI_ERROR_REMOTE_CLIENT_DISCONNECTED _HRESULT_TYPEDEF_(0x887A0023L)")] + public const int DXGI_ERROR_REMOTE_CLIENT_DISCONNECTED = unchecked((int)(0x887A0023)); + + [NativeTypeName("#define DXGI_ERROR_REMOTE_OUTOFMEMORY _HRESULT_TYPEDEF_(0x887A0024L)")] + public const int DXGI_ERROR_REMOTE_OUTOFMEMORY = unchecked((int)(0x887A0024)); + + [NativeTypeName("#define DXGI_ERROR_ACCESS_LOST _HRESULT_TYPEDEF_(0x887A0026L)")] + public const int DXGI_ERROR_ACCESS_LOST = unchecked((int)(0x887A0026)); + + [NativeTypeName("#define DXGI_ERROR_WAIT_TIMEOUT _HRESULT_TYPEDEF_(0x887A0027L)")] + public const int DXGI_ERROR_WAIT_TIMEOUT = unchecked((int)(0x887A0027)); + + [NativeTypeName("#define DXGI_ERROR_SESSION_DISCONNECTED _HRESULT_TYPEDEF_(0x887A0028L)")] + public const int DXGI_ERROR_SESSION_DISCONNECTED = unchecked((int)(0x887A0028)); + + [NativeTypeName("#define DXGI_ERROR_RESTRICT_TO_OUTPUT_STALE _HRESULT_TYPEDEF_(0x887A0029L)")] + public const int DXGI_ERROR_RESTRICT_TO_OUTPUT_STALE = unchecked((int)(0x887A0029)); + + [NativeTypeName("#define DXGI_ERROR_CANNOT_PROTECT_CONTENT _HRESULT_TYPEDEF_(0x887A002AL)")] + public const int DXGI_ERROR_CANNOT_PROTECT_CONTENT = unchecked((int)(0x887A002A)); + + [NativeTypeName("#define DXGI_ERROR_ACCESS_DENIED _HRESULT_TYPEDEF_(0x887A002BL)")] + public const int DXGI_ERROR_ACCESS_DENIED = unchecked((int)(0x887A002B)); + + [NativeTypeName("#define DXGI_ERROR_NAME_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x887A002CL)")] + public const int DXGI_ERROR_NAME_ALREADY_EXISTS = unchecked((int)(0x887A002C)); + + [NativeTypeName("#define DXGI_ERROR_SDK_COMPONENT_MISSING _HRESULT_TYPEDEF_(0x887A002DL)")] + public const int DXGI_ERROR_SDK_COMPONENT_MISSING = unchecked((int)(0x887A002D)); + + [NativeTypeName("#define DXGI_ERROR_NOT_CURRENT _HRESULT_TYPEDEF_(0x887A002EL)")] + public const int DXGI_ERROR_NOT_CURRENT = unchecked((int)(0x887A002E)); + + [NativeTypeName("#define DXGI_ERROR_HW_PROTECTION_OUTOFMEMORY _HRESULT_TYPEDEF_(0x887A0030L)")] + public const int DXGI_ERROR_HW_PROTECTION_OUTOFMEMORY = unchecked((int)(0x887A0030)); + + [NativeTypeName("#define DXGI_ERROR_DYNAMIC_CODE_POLICY_VIOLATION _HRESULT_TYPEDEF_(0x887A0031L)")] + public const int DXGI_ERROR_DYNAMIC_CODE_POLICY_VIOLATION = unchecked((int)(0x887A0031)); + + [NativeTypeName("#define DXGI_ERROR_NON_COMPOSITED_UI _HRESULT_TYPEDEF_(0x887A0032L)")] + public const int DXGI_ERROR_NON_COMPOSITED_UI = unchecked((int)(0x887A0032)); + + [NativeTypeName("#define DXGI_STATUS_UNOCCLUDED _HRESULT_TYPEDEF_(0x087A0009L)")] + public const int DXGI_STATUS_UNOCCLUDED = ((int)(0x087A0009)); + + [NativeTypeName("#define DXGI_STATUS_DDA_WAS_STILL_DRAWING _HRESULT_TYPEDEF_(0x087A000AL)")] + public const int DXGI_STATUS_DDA_WAS_STILL_DRAWING = ((int)(0x087A000A)); + + [NativeTypeName("#define DXGI_ERROR_MODE_CHANGE_IN_PROGRESS _HRESULT_TYPEDEF_(0x887A0025L)")] + public const int DXGI_ERROR_MODE_CHANGE_IN_PROGRESS = unchecked((int)(0x887A0025)); + + [NativeTypeName("#define DXGI_STATUS_PRESENT_REQUIRED _HRESULT_TYPEDEF_(0x087A002FL)")] + public const int DXGI_STATUS_PRESENT_REQUIRED = ((int)(0x087A002F)); + + [NativeTypeName("#define DXGI_ERROR_CACHE_CORRUPT _HRESULT_TYPEDEF_(0x887A0033L)")] + public const int DXGI_ERROR_CACHE_CORRUPT = unchecked((int)(0x887A0033)); + + [NativeTypeName("#define DXGI_ERROR_CACHE_FULL _HRESULT_TYPEDEF_(0x887A0034L)")] + public const int DXGI_ERROR_CACHE_FULL = unchecked((int)(0x887A0034)); + + [NativeTypeName("#define DXGI_ERROR_CACHE_HASH_COLLISION _HRESULT_TYPEDEF_(0x887A0035L)")] + public const int DXGI_ERROR_CACHE_HASH_COLLISION = unchecked((int)(0x887A0035)); + + [NativeTypeName("#define DXGI_ERROR_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x887A0036L)")] + public const int DXGI_ERROR_ALREADY_EXISTS = unchecked((int)(0x887A0036)); + + [NativeTypeName("#define DXGI_DDI_ERR_WASSTILLDRAWING _HRESULT_TYPEDEF_(0x887B0001L)")] + public const int DXGI_DDI_ERR_WASSTILLDRAWING = unchecked((int)(0x887B0001)); + + [NativeTypeName("#define DXGI_DDI_ERR_UNSUPPORTED _HRESULT_TYPEDEF_(0x887B0002L)")] + public const int DXGI_DDI_ERR_UNSUPPORTED = unchecked((int)(0x887B0002)); + + [NativeTypeName("#define DXGI_DDI_ERR_NONEXCLUSIVE _HRESULT_TYPEDEF_(0x887B0003L)")] + public const int DXGI_DDI_ERR_NONEXCLUSIVE = unchecked((int)(0x887B0003)); + } +} diff --git a/src/TerraFX.Interop.Windows/Windows/um/combaseapi/Windows.cs b/src/TerraFX.Interop.Windows/Windows/um/combaseapi/Windows.cs new file mode 100644 index 00000000..cb738a56 --- /dev/null +++ b/src/TerraFX.Interop.Windows/Windows/um/combaseapi/Windows.cs @@ -0,0 +1,16 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/combaseapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; +using System.Runtime.InteropServices; + +namespace TerraFX.Interop.Windows +{ + public static unsafe partial class Windows + { + [DllImport("ole32", ExactSpelling = true)] + public static extern HRESULT CoCreateInstance([NativeTypeName("const IID &")] Guid* rclsid, [NativeTypeName("LPUNKNOWN")] IUnknown* pUnkOuter, [NativeTypeName("DWORD")] uint dwClsContext, [NativeTypeName("const IID &")] Guid* riid, [NativeTypeName("LPVOID *")] void** ppv); + } +} diff --git a/src/TerraFX.Interop.Windows/Windows/um/wincodec/CLSID.cs b/src/TerraFX.Interop.Windows/Windows/um/wincodec/CLSID.cs new file mode 100644 index 00000000..5e41058c --- /dev/null +++ b/src/TerraFX.Interop.Windows/Windows/um/wincodec/CLSID.cs @@ -0,0 +1,765 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wincodec.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace TerraFX.Interop.Windows +{ + public static partial class CLSID + { + [NativeTypeName("const GUID")] + public static ref readonly Guid CLSID_WICImagingFactory1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x62, 0xF2, 0xCA, 0xCA, + 0x70, 0x93, + 0x15, 0x46, + 0xA1, + 0x3B, + 0x9F, + 0x55, + 0x39, + 0xDA, + 0x4C, + 0x0A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid CLSID_WICImagingFactory2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE8, 0x06, 0x7D, 0x31, + 0x24, 0x5F, + 0x3D, 0x43, + 0xBD, + 0xF7, + 0x79, + 0xCE, + 0x68, + 0xD8, + 0xAB, + 0xC2 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid CLSID_WICPngDecoder1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x7B, 0xA1, 0x9E, 0x38, + 0x78, 0x50, + 0xDE, 0x4C, + 0xB6, + 0xEF, + 0x25, + 0xC1, + 0x51, + 0x75, + 0xC7, + 0x51 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid CLSID_WICPngDecoder2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x5B, 0x94, 0x18, 0xE0, + 0x86, 0xAA, + 0x08, 0x40, + 0x9B, + 0xD4, + 0x67, + 0x77, + 0xA1, + 0xE4, + 0x0C, + 0x11 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid CLSID_WICBmpDecoder + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x62, 0x20, 0x46, 0x6B, + 0xBF, 0x7C, + 0x0D, 0x40, + 0x9F, + 0xDB, + 0x81, + 0x3D, + 0xD1, + 0x0F, + 0x27, + 0x78 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid CLSID_WICIcoDecoder + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xDF, 0xFC, 0x1B, 0xC6, + 0x0F, 0x2E, + 0xAD, 0x4A, + 0xA8, + 0xD7, + 0xE0, + 0x6B, + 0xAF, + 0xEB, + 0xCD, + 0xFE + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid CLSID_WICJpegDecoder + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x80, 0xA4, 0x56, 0x94, + 0x8B, 0xE8, + 0xEA, 0x43, + 0x9E, + 0x73, + 0x0B, + 0x2D, + 0x9B, + 0x71, + 0xB1, + 0xCA + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid CLSID_WICGifDecoder + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x3C, 0xDA, 0x1D, 0x38, + 0xE9, 0x9C, + 0x34, 0x48, + 0xA2, + 0x3E, + 0x1F, + 0x98, + 0xF8, + 0xFC, + 0x52, + 0xBE + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid CLSID_WICTiffDecoder + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xD9, 0x85, 0x4E, 0xB5, + 0x23, 0xFE, + 0x9F, 0x49, + 0x8B, + 0x88, + 0x6A, + 0xCE, + 0xA7, + 0x13, + 0x75, + 0x2B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid CLSID_WICWmpDecoder + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x36, 0xEC, 0x6C, 0xA2, + 0x4C, 0x23, + 0x50, 0x49, + 0xAE, + 0x16, + 0xE3, + 0x4A, + 0xAC, + 0xE7, + 0x1D, + 0x0D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid CLSID_WICDdsDecoder + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x9F, 0x69, 0x53, 0x90, + 0x41, 0xA3, + 0x9D, 0x42, + 0x9E, + 0x90, + 0xEE, + 0x43, + 0x7C, + 0xF8, + 0x0C, + 0x73 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid CLSID_WICBmpEncoder + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xB4, 0x8B, 0xBE, 0x69, + 0x6D, 0xD6, + 0xC8, 0x47, + 0x86, + 0x5A, + 0xED, + 0x15, + 0x89, + 0x43, + 0x37, + 0x82 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid CLSID_WICPngEncoder + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x69, 0x99, 0x94, 0x27, + 0x6A, 0x87, + 0xD7, 0x41, + 0x94, + 0x47, + 0x56, + 0x8F, + 0x6A, + 0x35, + 0xA4, + 0xDC + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid CLSID_WICJpegEncoder + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC1, 0xF5, 0x34, 0x1A, + 0x5A, 0x4A, + 0xDC, 0x46, + 0xB6, + 0x44, + 0x1F, + 0x45, + 0x67, + 0xE7, + 0xA6, + 0x76 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid CLSID_WICGifEncoder + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x98, 0x55, 0x4F, 0x11, + 0x22, 0x0B, + 0xA0, 0x40, + 0x86, + 0xA1, + 0xC8, + 0x3E, + 0xA4, + 0x95, + 0xAD, + 0xBD + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid CLSID_WICTiffEncoder + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x10, 0xBE, 0x31, 0x01, + 0x01, 0x20, + 0x5F, 0x4C, + 0xA9, + 0xB0, + 0xCC, + 0x88, + 0xFA, + 0xB6, + 0x4C, + 0xE8 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid CLSID_WICWmpEncoder + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xCB, 0xE3, 0x4C, 0xAC, + 0xC1, 0xE1, + 0xCD, 0x44, + 0x82, + 0x15, + 0x5A, + 0x16, + 0x65, + 0x50, + 0x9E, + 0xC2 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid CLSID_WICDdsEncoder + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x94, 0xDE, 0x1D, 0xA6, + 0xCE, 0x66, + 0xC1, 0x4A, + 0x88, + 0x1B, + 0x71, + 0x68, + 0x05, + 0x88, + 0x89, + 0x5E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid CLSID_WICAdngDecoder + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x11, 0x94, 0x1D, 0x98, + 0x9E, 0x90, + 0xA7, 0x42, + 0x8F, + 0x5D, + 0xA7, + 0x47, + 0xFF, + 0x05, + 0x2E, + 0xDB + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid CLSID_WICJpegQualcommPhoneEncoder + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x62, 0x5C, 0xED, 0x68, + 0x34, 0xF5, + 0x79, 0x49, + 0xB2, + 0xB3, + 0x68, + 0x6A, + 0x12, + 0xB2, + 0xB3, + 0x4C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid CLSID_WICHeifDecoder + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x0A, 0xA8, 0xA4, 0xE9, + 0xFE, 0x44, + 0xE4, 0x4D, + 0x89, + 0x71, + 0x71, + 0x50, + 0xB1, + 0x0A, + 0x51, + 0x99 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid CLSID_WICHeifEncoder + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC1, 0xCE, 0xBE, 0x0D, + 0xB3, 0x9E, + 0x60, 0x48, + 0x9C, + 0x6F, + 0xDD, + 0xBE, + 0x86, + 0x63, + 0x45, + 0x75 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid CLSID_WICWebpDecoder + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x86, 0xE8, 0x93, 0x76, + 0xC9, 0x51, + 0x70, 0x40, + 0x84, + 0x19, + 0x9F, + 0x70, + 0x73, + 0x8E, + 0xC8, + 0xFA + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid CLSID_WICRAWDecoder + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x02, 0x57, 0x94, 0x41, + 0x02, 0x83, + 0xA6, 0x44, + 0x94, + 0x45, + 0xAC, + 0x98, + 0xE8, + 0xAF, + 0xA0, + 0x86 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid CLSID_WICImagingCategories + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x80, 0xD3, 0xE3, 0xFA, + 0xA4, 0xFE, + 0x23, 0x46, + 0x8C, + 0x75, + 0xC6, + 0xB6, + 0x11, + 0x10, + 0xB6, + 0x81 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid CLSID_WICDefaultFormatConverter + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xDC, 0x11, 0x3F, 0x1A, + 0x14, 0xB5, + 0x17, 0x4B, + 0x8C, + 0x5F, + 0x21, + 0x54, + 0x51, + 0x38, + 0x52, + 0xF1 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid CLSID_WICFormatConverterHighColor + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x54, 0xD4, 0x75, 0xAC, + 0x37, 0x9F, + 0xF8, 0x48, + 0xB9, + 0x72, + 0x4E, + 0x19, + 0xBC, + 0x85, + 0x60, + 0x11 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid CLSID_WICFormatConverterNChannel + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xB2, 0xAB, 0x7C, 0xC1, + 0xA3, 0xD4, + 0xD7, 0x47, + 0xA5, + 0x57, + 0x33, + 0x9B, + 0x2E, + 0xFB, + 0xD4, + 0xF1 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid CLSID_WICFormatConverterWMPhoto + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x2B, 0x17, 0xB5, 0x9C, + 0x00, 0xD6, + 0xBA, 0x46, + 0xAB, + 0x77, + 0x77, + 0xBB, + 0x7E, + 0x3A, + 0x00, + 0xD9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid CLSID_WICPlanarFormatConverter + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xB8, 0x32, 0x41, 0x18, + 0xF8, 0x32, + 0x84, 0x47, + 0x91, + 0x31, + 0xDD, + 0x72, + 0x24, + 0xB2, + 0x34, + 0x38 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + } +} diff --git a/src/TerraFX.Interop.Windows/Windows/um/wincodec/GUID.cs b/src/TerraFX.Interop.Windows/Windows/um/wincodec/GUID.cs new file mode 100644 index 00000000..03fa8e2f --- /dev/null +++ b/src/TerraFX.Interop.Windows/Windows/um/wincodec/GUID.cs @@ -0,0 +1,2618 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wincodec.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace TerraFX.Interop.Windows +{ + public static partial class GUID + { + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_VendorMicrosoft + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xCA, 0x49, 0xE7, 0xF0, + 0xEF, 0xED, + 0x89, 0x45, + 0xA7, + 0x3A, + 0xEE, + 0x0E, + 0x62, + 0x6A, + 0x2A, + 0x2B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_VendorMicrosoftBuiltIn + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xFD, 0x30, 0x7A, 0x25, + 0xB6, 0x06, + 0x2B, 0x46, + 0xAE, + 0xA4, + 0x63, + 0xF7, + 0x0B, + 0x86, + 0xE5, + 0x33 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_ContainerFormatBmp + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x7E, 0xD8, 0xF1, 0x0A, + 0xFE, 0xFC, + 0x88, 0x41, + 0xBD, + 0xEB, + 0xA7, + 0x90, + 0x64, + 0x71, + 0xCB, + 0xE3 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_ContainerFormatPng + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF4, 0xFA, 0x7C, 0x1B, + 0x3F, 0x71, + 0x3C, 0x47, + 0xBB, + 0xCD, + 0x61, + 0x37, + 0x42, + 0x5F, + 0xAE, + 0xAF + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_ContainerFormatIco + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC4, 0x60, 0xA8, 0xA3, + 0x8F, 0x33, + 0x17, 0x4C, + 0x91, + 0x9A, + 0xFB, + 0xA4, + 0xB5, + 0x62, + 0x8F, + 0x21 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_ContainerFormatJpeg + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xAA, 0xA5, 0xE4, 0x19, + 0x62, 0x56, + 0xC5, 0x4F, + 0xA0, + 0xC0, + 0x17, + 0x58, + 0x02, + 0x8E, + 0x10, + 0x57 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_ContainerFormatTiff + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x30, 0xCC, 0x3B, 0x16, + 0xE9, 0xE2, + 0x0B, 0x4F, + 0x96, + 0x1D, + 0xA3, + 0xE9, + 0xFD, + 0xB7, + 0x88, + 0xA3 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_ContainerFormatGif + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x01, 0x56, 0x8A, 0x1F, + 0x4D, 0x7D, + 0xBD, 0x4C, + 0x9C, + 0x82, + 0x1B, + 0xC8, + 0xD4, + 0xEE, + 0xB9, + 0xA5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_ContainerFormatWmp + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xAA, 0x7C, 0xA3, 0x57, + 0x7A, 0x36, + 0x40, 0x45, + 0x91, + 0x6B, + 0xF1, + 0x83, + 0xC5, + 0x09, + 0x3A, + 0x4B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_ContainerFormatDds + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x95, 0xCB, 0x67, 0x99, + 0x85, 0x2E, + 0xC8, 0x4A, + 0x8C, + 0xA2, + 0x83, + 0xD7, + 0xCC, + 0xD4, + 0x25, + 0xC9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_ContainerFormatAdng + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x0D, 0x6D, 0xFF, 0xF3, + 0xC0, 0x38, + 0xC4, 0x41, + 0xB1, + 0xFE, + 0x1F, + 0x38, + 0x24, + 0xF1, + 0x7B, + 0x84 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_ContainerFormatHeif + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x21, 0x25, 0xE6, 0xE1, + 0x87, 0x67, + 0x5B, 0x40, + 0xA3, + 0x39, + 0x50, + 0x07, + 0x15, + 0xB5, + 0x76, + 0x3F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_ContainerFormatWebp + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE2, 0xB0, 0x94, 0xE0, + 0xF2, 0x67, + 0xB3, 0x45, + 0xB0, + 0xEA, + 0x11, + 0x53, + 0x37, + 0xCA, + 0x7C, + 0xF3 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_ContainerFormatRaw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x60, 0xCE, 0x99, 0xFE, + 0x9C, 0xF1, + 0x3C, 0x43, + 0xA3, + 0xAE, + 0x00, + 0xAC, + 0xEF, + 0xA9, + 0xCA, + 0x21 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormatDontCare + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x00 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat1bppIndexed + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x01 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat2bppIndexed + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x02 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat4bppIndexed + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x03 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat8bppIndexed + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x04 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormatBlackWhite + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x05 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat2bppGray + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x06 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat4bppGray + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x07 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat8bppGray + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x08 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat8bppAlpha + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x16, 0x01, 0xCD, 0xE6, + 0xBA, 0xEE, + 0x61, 0x41, + 0xAA, + 0x85, + 0x27, + 0xDD, + 0x9F, + 0xB3, + 0xA8, + 0x95 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat16bppBGR555 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x09 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat16bppBGR565 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x0A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat16bppBGRA5551 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x2B, 0x7C, 0xEC, 0x05, + 0xE6, 0xF1, + 0x61, 0x49, + 0xAD, + 0x46, + 0xE1, + 0xCC, + 0x81, + 0x0A, + 0x87, + 0xD2 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat16bppGray + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x0B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat24bppBGR + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x0C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat24bppRGB + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x0D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat32bppBGR + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x0E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat32bppBGRA + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x0F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat32bppPBGRA + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x10 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat32bppGrayFloat + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x11 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat32bppRGB + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x95, 0x6B, 0x8C, 0xD9, + 0xFE, 0x3E, + 0xD6, 0x47, + 0xBB, + 0x25, + 0xEB, + 0x17, + 0x48, + 0xAB, + 0x0C, + 0xF1 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat32bppRGBA + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x2D, 0xAD, 0xC7, 0xF5, + 0x8D, 0x6A, + 0xDD, 0x43, + 0xA7, + 0xA8, + 0xA2, + 0x99, + 0x35, + 0x26, + 0x1A, + 0xE9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat32bppPRGBA + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x50, 0xA6, 0xC4, 0x3C, + 0x27, 0xA5, + 0x37, 0x4D, + 0xA9, + 0x16, + 0x31, + 0x42, + 0xC7, + 0xEB, + 0xED, + 0xBA + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat48bppRGB + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x15 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat48bppBGR + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x84, 0xA3, 0x05, 0xE6, + 0x68, 0xB4, + 0xCE, 0x46, + 0xBB, + 0x2E, + 0x36, + 0xF1, + 0x80, + 0xE6, + 0x43, + 0x13 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat64bppRGB + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x11, 0x21, 0x18, 0xA1, + 0x6D, 0x18, + 0x42, 0x4D, + 0xBC, + 0x6A, + 0x9C, + 0x83, + 0x03, + 0xA8, + 0xDF, + 0xF9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat64bppRGBA + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x16 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat64bppBGRA + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x7C, 0xFF, 0x62, 0x15, + 0x52, 0xD3, + 0xF9, 0x46, + 0x97, + 0x9E, + 0x42, + 0x97, + 0x6B, + 0x79, + 0x22, + 0x46 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat64bppPRGBA + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x17 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat64bppPBGRA + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x8E, 0x8E, 0x51, 0x8C, + 0xEC, 0xA4, + 0x8B, 0x46, + 0xAE, + 0x70, + 0xC9, + 0xA3, + 0x5A, + 0x9C, + 0x55, + 0x30 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat16bppGrayFixedPoint + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x13 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat32bppBGR101010 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x14 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat48bppRGBFixedPoint + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x12 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat48bppBGRFixedPoint + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x0E, 0x14, 0xCA, 0x49, + 0xB6, 0xCA, + 0x3B, 0x49, + 0x9D, + 0xDF, + 0x60, + 0x18, + 0x7C, + 0x37, + 0x53, + 0x2A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat96bppRGBFixedPoint + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x18 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat96bppRGBFloat + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x8F, 0xD7, 0xFE, 0xE3, + 0xDB, 0xE8, + 0xCF, 0x4A, + 0x84, + 0xC1, + 0xE9, + 0x7F, + 0x61, + 0x36, + 0xB3, + 0x27 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat128bppRGBAFloat + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x19 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat128bppPRGBAFloat + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x1A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat128bppRGBFloat + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x1B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat32bppCMYK + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x1C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat64bppRGBAFixedPoint + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x1D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat64bppBGRAFixedPoint + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x3C, 0xE3, 0x6D, 0x35, + 0xD2, 0x54, + 0x23, 0x4A, + 0xBB, + 0x04, + 0x9B, + 0x7B, + 0xF9, + 0xB1, + 0xD4, + 0x2D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat64bppRGBFixedPoint + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x40 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat128bppRGBAFixedPoint + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x1E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat128bppRGBFixedPoint + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x41 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat64bppRGBAHalf + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x3A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat64bppPRGBAHalf + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC2, 0x26, 0xAD, 0x58, + 0x23, 0xC6, + 0x9D, 0x4D, + 0xB3, + 0x20, + 0x38, + 0x7E, + 0x49, + 0xF8, + 0xC4, + 0x42 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat64bppRGBHalf + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x42 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat48bppRGBHalf + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x3B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat32bppRGBE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x3D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat16bppGrayHalf + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x3E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat32bppGrayFixedPoint + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x3F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat32bppRGBA1010102 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x72, 0x8D, 0x23, 0x25, + 0xF9, 0xFC, + 0x22, 0x45, + 0xB5, + 0x14, + 0x55, + 0x78, + 0xE5, + 0xAD, + 0x55, + 0xE0 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat32bppRGBA1010102XR + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x9A, 0x6B, 0xDE, 0x00, + 0x01, 0xC1, + 0x4B, 0x43, + 0xB5, + 0x02, + 0xD0, + 0x16, + 0x5E, + 0xE1, + 0x12, + 0x2C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat32bppR10G10B10A2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xB5, 0x1B, 0x4E, 0x60, + 0x3C, 0x8A, + 0x65, 0x4B, + 0xB1, + 0x1C, + 0xBC, + 0x0B, + 0x8D, + 0xD7, + 0x5B, + 0x7F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat32bppR10G10B10A2HDR10 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x5D, 0x5C, 0x21, 0x9C, + 0xCC, 0x1A, + 0x0E, 0x4F, + 0xA4, + 0xBC, + 0x70, + 0xFB, + 0x3A, + 0xE8, + 0xFD, + 0x28 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat64bppCMYK + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x1F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat24bpp3Channels + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x20 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat32bpp4Channels + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x21 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat40bpp5Channels + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x22 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat48bpp6Channels + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x23 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat56bpp7Channels + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x24 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat64bpp8Channels + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x25 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat48bpp3Channels + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x26 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat64bpp4Channels + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x27 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat80bpp5Channels + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x28 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat96bpp6Channels + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x29 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat112bpp7Channels + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x2A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat128bpp8Channels + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x2B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat40bppCMYKAlpha + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x2C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat80bppCMYKAlpha + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x2D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat32bpp3ChannelsAlpha + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x2E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat40bpp4ChannelsAlpha + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x2F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat48bpp5ChannelsAlpha + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x30 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat56bpp6ChannelsAlpha + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x31 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat64bpp7ChannelsAlpha + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x32 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat72bpp8ChannelsAlpha + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x33 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat64bpp3ChannelsAlpha + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x34 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat80bpp4ChannelsAlpha + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x35 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat96bpp5ChannelsAlpha + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x36 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat112bpp6ChannelsAlpha + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x37 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat128bpp7ChannelsAlpha + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x38 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat144bpp8ChannelsAlpha + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x39 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat8bppY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x54, 0xDB, 0xB4, 0x91, + 0xF9, 0x2D, + 0xF0, 0x42, + 0xB4, + 0x49, + 0x29, + 0x09, + 0xBB, + 0x3D, + 0xF8, + 0x8E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat8bppCb + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xF2, 0x39, 0x13, + 0xFE, 0x6B, + 0x3E, 0x4C, + 0x93, + 0x02, + 0xE4, + 0xF3, + 0xA6, + 0xD0, + 0xCA, + 0x2A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat8bppCr + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x53, 0x50, 0x14, 0xB8, + 0x16, 0x21, + 0xF0, 0x49, + 0x88, + 0x35, + 0xED, + 0x84, + 0x4B, + 0x20, + 0x5C, + 0x51 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat16bppCbCr + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x6E, 0xBA, 0x95, 0xFF, + 0xE0, 0x11, + 0x63, 0x42, + 0xBB, + 0x45, + 0x01, + 0x72, + 0x1F, + 0x34, + 0x60, + 0xA4 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat16bppYQuantizedDctCoefficients + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x33, 0xF4, 0x55, 0xA3, + 0xE8, 0x48, + 0x42, 0x4A, + 0x84, + 0xD8, + 0xE2, + 0xAA, + 0x26, + 0xCA, + 0x80, + 0xA4 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat16bppCbQuantizedDctCoefficients + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x61, 0xFF, 0xC4, 0xD2, + 0xA5, 0x56, + 0xC2, 0x49, + 0x8B, + 0x5C, + 0x4C, + 0x19, + 0x25, + 0x96, + 0x48, + 0x37 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat16bppCrQuantizedDctCoefficients + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF0, 0x54, 0xE3, 0x2F, + 0x80, 0x16, + 0xD8, 0x42, + 0x92, + 0x31, + 0xE7, + 0x3C, + 0x05, + 0x65, + 0xBF, + 0xC1 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("#define GUID_WICPixelFormatUndefined GUID_WICPixelFormatDontCare")] + public static ref readonly Guid GUID_WICPixelFormatUndefined => ref GUID_WICPixelFormatDontCare; + } +} diff --git a/src/TerraFX.Interop.Windows/Windows/um/winnt/Windows.cs b/src/TerraFX.Interop.Windows/Windows/um/winnt/Windows.cs new file mode 100644 index 00000000..42fb9822 --- /dev/null +++ b/src/TerraFX.Interop.Windows/Windows/um/winnt/Windows.cs @@ -0,0 +1,758 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace TerraFX.Interop.Windows +{ + public static partial class Windows + { + [NativeTypeName("const GUID")] + public static ref readonly Guid NO_SUBGROUP_GUID + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x3E, 0x41, 0xA3, 0xFE, + 0x05, 0x7E, + 0x11, 0x49, + 0x9A, + 0x71, + 0x70, + 0x03, + 0x31, + 0xF1, + 0xC2, + 0x94 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid ALL_POWERSCHEMES_GUID + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x5E, 0xE9, 0xA1, 0x68, + 0xEA, 0x13, + 0xE1, 0x41, + 0x80, + 0x11, + 0x0C, + 0x49, + 0x6C, + 0xA4, + 0x90, + 0xB0 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("#define ANYSIZE_ARRAY 1")] + public const int ANYSIZE_ARRAY = 1; + + [NativeTypeName("#define PRAGMA_DEPRECATED_DDK 0")] + public const int PRAGMA_DEPRECATED_DDK = 0; + + [NativeTypeName("#define UCSCHAR_INVALID_CHARACTER (0xffffffff)")] + public const uint UCSCHAR_INVALID_CHARACTER = (0xffffffff); + + [NativeTypeName("#define MIN_UCSCHAR (0)")] + public const int MIN_UCSCHAR = (0); + + [NativeTypeName("#define ALL_PROCESSOR_GROUPS 0xffff")] + public const int ALL_PROCESSOR_GROUPS = 0xffff; + + [NativeTypeName("#define APPLICATION_ERROR_MASK 0x20000000")] + public const int APPLICATION_ERROR_MASK = 0x20000000; + + [NativeTypeName("#define MAXLONGLONG (0x7fffffffffffffff)")] + public const long MAXLONGLONG = (0x7fffffffffffffff); + + [NativeTypeName("#define ANSI_NULL ((CHAR)0)")] + public const sbyte ANSI_NULL = ((sbyte)(0)); + + [NativeTypeName("#define UNICODE_NULL ((WCHAR)0)")] + public const ushort UNICODE_NULL = ((ushort)(0)); + + [NativeTypeName("#define UNICODE_STRING_MAX_BYTES ((WORD ) 65534)")] + public const ushort UNICODE_STRING_MAX_BYTES = ((ushort)(65534)); + + [NativeTypeName("#define UNICODE_STRING_MAX_CHARS (32767)")] + public const int UNICODE_STRING_MAX_CHARS = (32767); + + [NativeTypeName("#define MINCHAR 0x80")] + public const int MINCHAR = 0x80; + + [NativeTypeName("#define MAXCHAR 0x7f")] + public const int MAXCHAR = 0x7f; + + [NativeTypeName("#define MINSHORT 0x8000")] + public const int MINSHORT = 0x8000; + + [NativeTypeName("#define MAXSHORT 0x7fff")] + public const int MAXSHORT = 0x7fff; + + [NativeTypeName("#define MINLONG 0x80000000")] + public const uint MINLONG = 0x80000000; + + [NativeTypeName("#define MAXLONG 0x7fffffff")] + public const int MAXLONG = 0x7fffffff; + + [NativeTypeName("#define MAXBYTE 0xff")] + public const int MAXBYTE = 0xff; + + [NativeTypeName("#define MAXWORD 0xffff")] + public const int MAXWORD = 0xffff; + + [NativeTypeName("#define MAXDWORD 0xffffffff")] + public const uint MAXDWORD = 0xffffffff; + + [NativeTypeName("#define ENCLAVE_SHORT_ID_LENGTH 16")] + public const int ENCLAVE_SHORT_ID_LENGTH = 16; + + [NativeTypeName("#define ENCLAVE_LONG_ID_LENGTH 32")] + public const int ENCLAVE_LONG_ID_LENGTH = 32; + + [NativeTypeName("#define NLS_VALID_LOCALE_MASK 0x000fffff")] + public const int NLS_VALID_LOCALE_MASK = 0x000fffff; + + [NativeTypeName("#define _MM_HINT_T0 1")] + public const int _MM_HINT_T0 = 1; + + [NativeTypeName("#define _MM_HINT_T1 2")] + public const int _MM_HINT_T1 = 2; + + [NativeTypeName("#define _MM_HINT_T2 3")] + public const int _MM_HINT_T2 = 3; + + [NativeTypeName("#define _MM_HINT_NTA 0")] + public const int _MM_HINT_NTA = 0; + + [NativeTypeName("#define DELETE (0x00010000L)")] + public const int DELETE = (0x00010000); + + [NativeTypeName("#define WRITE_DAC (0x00040000L)")] + public const int WRITE_DAC = (0x00040000); + + [NativeTypeName("#define WRITE_OWNER (0x00080000L)")] + public const int WRITE_OWNER = (0x00080000); + + [NativeTypeName("#define SYNCHRONIZE (0x00100000L)")] + public const int SYNCHRONIZE = (0x00100000); + + [NativeTypeName("#define STANDARD_RIGHTS_REQUIRED (0x000F0000L)")] + public const int STANDARD_RIGHTS_REQUIRED = (0x000F0000); + + [NativeTypeName("#define STANDARD_RIGHTS_READ (READ_CONTROL)")] + public const int STANDARD_RIGHTS_READ = ((0x00020000)); + + [NativeTypeName("#define STANDARD_RIGHTS_WRITE (READ_CONTROL)")] + public const int STANDARD_RIGHTS_WRITE = ((0x00020000)); + + [NativeTypeName("#define STANDARD_RIGHTS_EXECUTE (READ_CONTROL)")] + public const int STANDARD_RIGHTS_EXECUTE = ((0x00020000)); + + [NativeTypeName("#define STANDARD_RIGHTS_ALL (0x001F0000L)")] + public const int STANDARD_RIGHTS_ALL = (0x001F0000); + + [NativeTypeName("#define SPECIFIC_RIGHTS_ALL (0x0000FFFFL)")] + public const int SPECIFIC_RIGHTS_ALL = (0x0000FFFF); + + [NativeTypeName("#define GENERIC_READ (0x80000000L)")] + public const uint GENERIC_READ = (0x80000000); + + [NativeTypeName("#define GENERIC_WRITE (0x40000000L)")] + public const int GENERIC_WRITE = (0x40000000); + + [NativeTypeName("#define GENERIC_EXECUTE (0x20000000L)")] + public const int GENERIC_EXECUTE = (0x20000000); + + [NativeTypeName("#define GENERIC_ALL (0x10000000L)")] + public const int GENERIC_ALL = (0x10000000); + + [NativeTypeName("#define FOREST_USER_RID_MAX (0x000001F3L)")] + public const int FOREST_USER_RID_MAX = (0x000001F3); + + [NativeTypeName("#define ACL_REVISION (2)")] + public const int ACL_REVISION = (2); + + [NativeTypeName("#define ACL_REVISION_DS (4)")] + public const int ACL_REVISION_DS = (4); + + [NativeTypeName("#define ACL_REVISION1 (1)")] + public const int ACL_REVISION1 = (1); + + [NativeTypeName("#define MIN_ACL_REVISION ACL_REVISION2")] + public const int MIN_ACL_REVISION = (2); + + [NativeTypeName("#define ACL_REVISION2 (2)")] + public const int ACL_REVISION2 = (2); + + [NativeTypeName("#define ACL_REVISION3 (3)")] + public const int ACL_REVISION3 = (3); + + [NativeTypeName("#define ACL_REVISION4 (4)")] + public const int ACL_REVISION4 = (4); + + [NativeTypeName("#define OBJECT_INHERIT_ACE (0x1)")] + public const int OBJECT_INHERIT_ACE = (0x1); + + [NativeTypeName("#define NO_PROPAGATE_INHERIT_ACE (0x4)")] + public const int NO_PROPAGATE_INHERIT_ACE = (0x4); + + [NativeTypeName("#define INHERIT_ONLY_ACE (0x8)")] + public const int INHERIT_ONLY_ACE = (0x8); + + [NativeTypeName("#define INHERITED_ACE (0x10)")] + public const int INHERITED_ACE = (0x10); + + [NativeTypeName("#define VALID_INHERIT_FLAGS (0x1F)")] + public const int VALID_INHERIT_FLAGS = (0x1F); + + [NativeTypeName("#define CRITICAL_ACE_FLAG (0x20)")] + public const int CRITICAL_ACE_FLAG = (0x20); + + [NativeTypeName("#define SUCCESSFUL_ACCESS_ACE_FLAG (0x40)")] + public const int SUCCESSFUL_ACCESS_ACE_FLAG = (0x40); + + [NativeTypeName("#define FAILED_ACCESS_ACE_FLAG (0x80)")] + public const int FAILED_ACCESS_ACE_FLAG = (0x80); + + [NativeTypeName("#define ACE_OBJECT_TYPE_PRESENT 0x1")] + public const int ACE_OBJECT_TYPE_PRESENT = 0x1; + + [NativeTypeName("#define ACE_INHERITED_OBJECT_TYPE_PRESENT 0x2")] + public const int ACE_INHERITED_OBJECT_TYPE_PRESENT = 0x2; + + [NativeTypeName("#define AUDIT_ALLOW_NO_PRIVILEGE 0x1")] + public const int AUDIT_ALLOW_NO_PRIVILEGE = 0x1; + + [NativeTypeName("#define PRIVILEGE_SET_ALL_NECESSARY (1)")] + public const int PRIVILEGE_SET_ALL_NECESSARY = (1); + + [NativeTypeName("#define POLICY_AUDIT_SUBCATEGORY_COUNT (59)")] + public const int POLICY_AUDIT_SUBCATEGORY_COUNT = (59); + + [NativeTypeName("#define DISABLE_MAX_PRIVILEGE 0x1")] + public const int DISABLE_MAX_PRIVILEGE = 0x1; + + [NativeTypeName("#define SANDBOX_INERT 0x2")] + public const int SANDBOX_INERT = 0x2; + + [NativeTypeName("#define LUA_TOKEN 0x4")] + public const int LUA_TOKEN = 0x4; + + [NativeTypeName("#define WRITE_RESTRICTED 0x8")] + public const int WRITE_RESTRICTED = 0x8; + + [NativeTypeName("#define OWNER_SECURITY_INFORMATION (0x00000001L)")] + public const int OWNER_SECURITY_INFORMATION = (0x00000001); + + [NativeTypeName("#define GROUP_SECURITY_INFORMATION (0x00000002L)")] + public const int GROUP_SECURITY_INFORMATION = (0x00000002); + + [NativeTypeName("#define DACL_SECURITY_INFORMATION (0x00000004L)")] + public const int DACL_SECURITY_INFORMATION = (0x00000004); + + [NativeTypeName("#define SACL_SECURITY_INFORMATION (0x00000008L)")] + public const int SACL_SECURITY_INFORMATION = (0x00000008); + + [NativeTypeName("#define LABEL_SECURITY_INFORMATION (0x00000010L)")] + public const int LABEL_SECURITY_INFORMATION = (0x00000010); + + [NativeTypeName("#define ATTRIBUTE_SECURITY_INFORMATION (0x00000020L)")] + public const int ATTRIBUTE_SECURITY_INFORMATION = (0x00000020); + + [NativeTypeName("#define SCOPE_SECURITY_INFORMATION (0x00000040L)")] + public const int SCOPE_SECURITY_INFORMATION = (0x00000040); + + [NativeTypeName("#define PROTECTED_DACL_SECURITY_INFORMATION (0x80000000L)")] + public const uint PROTECTED_DACL_SECURITY_INFORMATION = (0x80000000); + + [NativeTypeName("#define PROTECTED_SACL_SECURITY_INFORMATION (0x40000000L)")] + public const int PROTECTED_SACL_SECURITY_INFORMATION = (0x40000000); + + [NativeTypeName("#define UNPROTECTED_DACL_SECURITY_INFORMATION (0x20000000L)")] + public const int UNPROTECTED_DACL_SECURITY_INFORMATION = (0x20000000); + + [NativeTypeName("#define UNPROTECTED_SACL_SECURITY_INFORMATION (0x10000000L)")] + public const int UNPROTECTED_SACL_SECURITY_INFORMATION = (0x10000000); + + [NativeTypeName("#define FLS_MAXIMUM_AVAILABLE 4080")] + public const int FLS_MAXIMUM_AVAILABLE = 4080; + + [NativeTypeName("#define TLS_MINIMUM_AVAILABLE 64")] + public const int TLS_MINIMUM_AVAILABLE = 64; + + [NativeTypeName("#define COMPONENT_KTM 0x01")] + public const int COMPONENT_KTM = 0x01; + + [NativeTypeName("#define COMPONENT_VALID_FLAGS (COMPONENT_KTM)")] + public const int COMPONENT_VALID_FLAGS = (0x01); + + [NativeTypeName("#define DYNAMIC_EH_CONTINUATION_TARGET_ADD (0x00000001)")] + public const int DYNAMIC_EH_CONTINUATION_TARGET_ADD = (0x00000001); + + [NativeTypeName("#define DYNAMIC_EH_CONTINUATION_TARGET_PROCESSED (0x00000002)")] + public const int DYNAMIC_EH_CONTINUATION_TARGET_PROCESSED = (0x00000002); + + [NativeTypeName("#define DYNAMIC_ENFORCED_ADDRESS_RANGE_ADD (0x00000001)")] + public const int DYNAMIC_ENFORCED_ADDRESS_RANGE_ADD = (0x00000001); + + [NativeTypeName("#define DYNAMIC_ENFORCED_ADDRESS_RANGE_PROCESSED (0x00000002)")] + public const int DYNAMIC_ENFORCED_ADDRESS_RANGE_PROCESSED = (0x00000002); + + [NativeTypeName("#define QUOTA_LIMITS_HARDWS_MIN_ENABLE 0x00000001")] + public const int QUOTA_LIMITS_HARDWS_MIN_ENABLE = 0x00000001; + + [NativeTypeName("#define QUOTA_LIMITS_HARDWS_MIN_DISABLE 0x00000002")] + public const int QUOTA_LIMITS_HARDWS_MIN_DISABLE = 0x00000002; + + [NativeTypeName("#define QUOTA_LIMITS_HARDWS_MAX_ENABLE 0x00000004")] + public const int QUOTA_LIMITS_HARDWS_MAX_ENABLE = 0x00000004; + + [NativeTypeName("#define QUOTA_LIMITS_HARDWS_MAX_DISABLE 0x00000008")] + public const int QUOTA_LIMITS_HARDWS_MAX_DISABLE = 0x00000008; + + [NativeTypeName("#define QUOTA_LIMITS_USE_DEFAULT_LIMITS 0x00000010")] + public const int QUOTA_LIMITS_USE_DEFAULT_LIMITS = 0x00000010; + + [NativeTypeName("#define MUTANT_QUERY_STATE 0x0001")] + public const int MUTANT_QUERY_STATE = 0x0001; + + [NativeTypeName("#define MUTANT_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED|SYNCHRONIZE|\\\r\n MUTANT_QUERY_STATE)")] + public const int MUTANT_ALL_ACCESS = ((0x000F0000) | (0x00100000) | 0x0001); + + [NativeTypeName("#define SEMAPHORE_MODIFY_STATE 0x0002")] + public const int SEMAPHORE_MODIFY_STATE = 0x0002; + + [NativeTypeName("#define SEMAPHORE_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED|SYNCHRONIZE|0x3)")] + public const int SEMAPHORE_ALL_ACCESS = ((0x000F0000) | (0x00100000) | 0x3); + + [NativeTypeName("#define TIMER_QUERY_STATE 0x0001")] + public const int TIMER_QUERY_STATE = 0x0001; + + [NativeTypeName("#define TIMER_MODIFY_STATE 0x0002")] + public const int TIMER_MODIFY_STATE = 0x0002; + + [NativeTypeName("#define TIMER_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED|SYNCHRONIZE|\\\r\n TIMER_QUERY_STATE|TIMER_MODIFY_STATE)")] + public const int TIMER_ALL_ACCESS = ((0x000F0000) | (0x00100000) | 0x0001 | 0x0002); + + [NativeTypeName("#define LTP_PC_SMT 0x1")] + public const int LTP_PC_SMT = 0x1; + + [NativeTypeName("#define CACHE_FULLY_ASSOCIATIVE 0xFF")] + public const int CACHE_FULLY_ASSOCIATIVE = 0xFF; + + [NativeTypeName("#define CFG_CALL_TARGET_VALID (0x00000001)")] + public const int CFG_CALL_TARGET_VALID = (0x00000001); + + [NativeTypeName("#define CFG_CALL_TARGET_PROCESSED (0x00000002)")] + public const int CFG_CALL_TARGET_PROCESSED = (0x00000002); + + [NativeTypeName("#define CFG_CALL_TARGET_CONVERT_EXPORT_SUPPRESSED_TO_VALID (0x00000004)")] + public const int CFG_CALL_TARGET_CONVERT_EXPORT_SUPPRESSED_TO_VALID = (0x00000004); + + [NativeTypeName("#define CFG_CALL_TARGET_VALID_XFG (0x00000008)")] + public const int CFG_CALL_TARGET_VALID_XFG = (0x00000008); + + [NativeTypeName("#define CFG_CALL_TARGET_CONVERT_XFG_TO_CFG (0x00000010)")] + public const int CFG_CALL_TARGET_CONVERT_XFG_TO_CFG = (0x00000010); + + [NativeTypeName("#define SECTION_QUERY 0x0001")] + public const int SECTION_QUERY = 0x0001; + + [NativeTypeName("#define SECTION_MAP_WRITE 0x0002")] + public const int SECTION_MAP_WRITE = 0x0002; + + [NativeTypeName("#define SECTION_MAP_READ 0x0004")] + public const int SECTION_MAP_READ = 0x0004; + + [NativeTypeName("#define SECTION_MAP_EXECUTE 0x0008")] + public const int SECTION_MAP_EXECUTE = 0x0008; + + [NativeTypeName("#define SECTION_EXTEND_SIZE 0x0010")] + public const int SECTION_EXTEND_SIZE = 0x0010; + + [NativeTypeName("#define SECTION_MAP_EXECUTE_EXPLICIT 0x0020")] + public const int SECTION_MAP_EXECUTE_EXPLICIT = 0x0020; + + [NativeTypeName("#define SECTION_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED|SECTION_QUERY|\\\r\n SECTION_MAP_WRITE | \\\r\n SECTION_MAP_READ | \\\r\n SECTION_MAP_EXECUTE | \\\r\n SECTION_EXTEND_SIZE)")] + public const int SECTION_ALL_ACCESS = ((0x000F0000) | 0x0001 | 0x0002 | 0x0004 | 0x0008 | 0x0010); + + [NativeTypeName("#define SESSION_QUERY_ACCESS 0x0001")] + public const int SESSION_QUERY_ACCESS = 0x0001; + + [NativeTypeName("#define SESSION_MODIFY_ACCESS 0x0002")] + public const int SESSION_MODIFY_ACCESS = 0x0002; + + [NativeTypeName("#define SESSION_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | \\\r\n SESSION_QUERY_ACCESS | \\\r\n SESSION_MODIFY_ACCESS)")] + public const int SESSION_ALL_ACCESS = ((0x000F0000) | 0x0001 | 0x0002); + + [NativeTypeName("#define WRITE_WATCH_FLAG_RESET 0x01")] + public const int WRITE_WATCH_FLAG_RESET = 0x01; + + [NativeTypeName("#define ENCLAVE_TYPE_SGX 0x00000001")] + public const int ENCLAVE_TYPE_SGX = 0x00000001; + + [NativeTypeName("#define ENCLAVE_TYPE_SGX2 0x00000002")] + public const int ENCLAVE_TYPE_SGX2 = 0x00000002; + + [NativeTypeName("#define ENCLAVE_TYPE_VBS 0x00000010")] + public const int ENCLAVE_TYPE_VBS = 0x00000010; + + [NativeTypeName("#define ENCLAVE_VBS_FLAG_DEBUG 0x00000001")] + public const int ENCLAVE_VBS_FLAG_DEBUG = 0x00000001; + + [NativeTypeName("#define ENCLAVE_TYPE_VBS_BASIC 0x00000011")] + public const int ENCLAVE_TYPE_VBS_BASIC = 0x00000011; + + [NativeTypeName("#define VBS_BASIC_PAGE_MEASURED_DATA 0x00000001")] + public const int VBS_BASIC_PAGE_MEASURED_DATA = 0x00000001; + + [NativeTypeName("#define VBS_BASIC_PAGE_UNMEASURED_DATA 0x00000002")] + public const int VBS_BASIC_PAGE_UNMEASURED_DATA = 0x00000002; + + [NativeTypeName("#define VBS_BASIC_PAGE_ZERO_FILL 0x00000003")] + public const int VBS_BASIC_PAGE_ZERO_FILL = 0x00000003; + + [NativeTypeName("#define VBS_BASIC_PAGE_THREAD_DESCRIPTOR 0x00000004")] + public const int VBS_BASIC_PAGE_THREAD_DESCRIPTOR = 0x00000004; + + [NativeTypeName("#define VBS_BASIC_PAGE_SYSTEM_CALL 0x00000005")] + public const int VBS_BASIC_PAGE_SYSTEM_CALL = 0x00000005; + + [NativeTypeName("#define DEDICATED_MEMORY_CACHE_ELIGIBLE 0x1")] + public const int DEDICATED_MEMORY_CACHE_ELIGIBLE = 0x1; + + [NativeTypeName("#define TREE_CONNECT_ATTRIBUTE_PRIVACY 0x00004000")] + public const int TREE_CONNECT_ATTRIBUTE_PRIVACY = 0x00004000; + + [NativeTypeName("#define TREE_CONNECT_ATTRIBUTE_INTEGRITY 0x00008000")] + public const int TREE_CONNECT_ATTRIBUTE_INTEGRITY = 0x00008000; + + [NativeTypeName("#define TREE_CONNECT_ATTRIBUTE_GLOBAL 0x00000004")] + public const int TREE_CONNECT_ATTRIBUTE_GLOBAL = 0x00000004; + + [NativeTypeName("#define TREE_CONNECT_ATTRIBUTE_PINNED 0x00000002")] + public const int TREE_CONNECT_ATTRIBUTE_PINNED = 0x00000002; + + [NativeTypeName("#define MAILSLOT_NO_MESSAGE ((DWORD)-1)")] + public const uint MAILSLOT_NO_MESSAGE = unchecked((uint)(-1)); + + [NativeTypeName("#define MAILSLOT_WAIT_FOREVER ((DWORD)-1)")] + public const uint MAILSLOT_WAIT_FOREVER = unchecked((uint)(-1)); + + [NativeTypeName("#define FLUSH_FLAGS_FILE_DATA_ONLY 0x00000001")] + public const int FLUSH_FLAGS_FILE_DATA_ONLY = 0x00000001; + + [NativeTypeName("#define FLUSH_FLAGS_NO_SYNC 0x00000002")] + public const int FLUSH_FLAGS_NO_SYNC = 0x00000002; + + [NativeTypeName("#define FLUSH_FLAGS_FILE_DATA_SYNC_ONLY 0x00000004")] + public const int FLUSH_FLAGS_FILE_DATA_SYNC_ONLY = 0x00000004; + + [NativeTypeName("#define SHUFFLE_FILE_FLAG_SKIP_INITIALIZING_NEW_CLUSTERS (0x00000001)")] + public const int SHUFFLE_FILE_FLAG_SKIP_INITIALIZING_NEW_CLUSTERS = (0x00000001); + + [NativeTypeName("#define SMB_CCF_APP_INSTANCE_EA_NAME \"ClusteredApplicationInstance\"")] + public static ReadOnlySpan SMB_CCF_APP_INSTANCE_EA_NAME => new byte[] { 0x43, 0x6C, 0x75, 0x73, 0x74, 0x65, 0x72, 0x65, 0x64, 0x41, 0x70, 0x70, 0x6C, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6F, 0x6E, 0x49, 0x6E, 0x73, 0x74, 0x61, 0x6E, 0x63, 0x65, 0x00 }; + + [NativeTypeName("#define NETWORK_APP_INSTANCE_CSV_FLAGS_VALID_ONLY_IF_CSV_COORDINATOR 0x00000001")] + public const int NETWORK_APP_INSTANCE_CSV_FLAGS_VALID_ONLY_IF_CSV_COORDINATOR = 0x00000001; + + [NativeTypeName("#define DUPLICATE_CLOSE_SOURCE 0x00000001")] + public const int DUPLICATE_CLOSE_SOURCE = 0x00000001; + + [NativeTypeName("#define DUPLICATE_SAME_ACCESS 0x00000002")] + public const int DUPLICATE_SAME_ACCESS = 0x00000002; + + [NativeTypeName("#define PERFSTATE_POLICY_CHANGE_IDEAL 0")] + public const int PERFSTATE_POLICY_CHANGE_IDEAL = 0; + + [NativeTypeName("#define PERFSTATE_POLICY_CHANGE_SINGLE 1")] + public const int PERFSTATE_POLICY_CHANGE_SINGLE = 1; + + [NativeTypeName("#define PERFSTATE_POLICY_CHANGE_ROCKET 2")] + public const int PERFSTATE_POLICY_CHANGE_ROCKET = 2; + + [NativeTypeName("#define PERFSTATE_POLICY_CHANGE_IDEAL_AGGRESSIVE 3")] + public const int PERFSTATE_POLICY_CHANGE_IDEAL_AGGRESSIVE = 3; + + [NativeTypeName("#define PERFSTATE_POLICY_CHANGE_DECREASE_MAX PERFSTATE_POLICY_CHANGE_ROCKET")] + public const int PERFSTATE_POLICY_CHANGE_DECREASE_MAX = 2; + + [NativeTypeName("#define PERFSTATE_POLICY_CHANGE_INCREASE_MAX PERFSTATE_POLICY_CHANGE_IDEAL_AGGRESSIVE")] + public const int PERFSTATE_POLICY_CHANGE_INCREASE_MAX = 3; + + [NativeTypeName("#define CORE_PARKING_POLICY_CHANGE_IDEAL 0")] + public const int CORE_PARKING_POLICY_CHANGE_IDEAL = 0; + + [NativeTypeName("#define CORE_PARKING_POLICY_CHANGE_SINGLE 1")] + public const int CORE_PARKING_POLICY_CHANGE_SINGLE = 1; + + [NativeTypeName("#define CORE_PARKING_POLICY_CHANGE_ROCKET 2")] + public const int CORE_PARKING_POLICY_CHANGE_ROCKET = 2; + + [NativeTypeName("#define CORE_PARKING_POLICY_CHANGE_MULTISTEP 3")] + public const int CORE_PARKING_POLICY_CHANGE_MULTISTEP = 3; + + [NativeTypeName("#define CORE_PARKING_POLICY_CHANGE_MAX CORE_PARKING_POLICY_CHANGE_MULTISTEP")] + public const int CORE_PARKING_POLICY_CHANGE_MAX = 3; + + [NativeTypeName("#define DIAGNOSTIC_REASON_VERSION 0")] + public const int DIAGNOSTIC_REASON_VERSION = 0; + + [NativeTypeName("#define DIAGNOSTIC_REASON_SIMPLE_STRING 0x00000001")] + public const int DIAGNOSTIC_REASON_SIMPLE_STRING = 0x00000001; + + [NativeTypeName("#define DIAGNOSTIC_REASON_DETAILED_STRING 0x00000002")] + public const int DIAGNOSTIC_REASON_DETAILED_STRING = 0x00000002; + + [NativeTypeName("#define DIAGNOSTIC_REASON_NOT_SPECIFIED 0x80000000")] + public const uint DIAGNOSTIC_REASON_NOT_SPECIFIED = 0x80000000; + + [NativeTypeName("#define DIAGNOSTIC_REASON_INVALID_FLAGS (~0x80000007)")] + public const uint DIAGNOSTIC_REASON_INVALID_FLAGS = (~0x80000007); + + [NativeTypeName("#define PDCAP_D0_SUPPORTED 0x00000001")] + public const int PDCAP_D0_SUPPORTED = 0x00000001; + + [NativeTypeName("#define PDCAP_D1_SUPPORTED 0x00000002")] + public const int PDCAP_D1_SUPPORTED = 0x00000002; + + [NativeTypeName("#define PDCAP_D2_SUPPORTED 0x00000004")] + public const int PDCAP_D2_SUPPORTED = 0x00000004; + + [NativeTypeName("#define PDCAP_D3_SUPPORTED 0x00000008")] + public const int PDCAP_D3_SUPPORTED = 0x00000008; + + [NativeTypeName("#define PDCAP_WAKE_FROM_D0_SUPPORTED 0x00000010")] + public const int PDCAP_WAKE_FROM_D0_SUPPORTED = 0x00000010; + + [NativeTypeName("#define PDCAP_WAKE_FROM_D1_SUPPORTED 0x00000020")] + public const int PDCAP_WAKE_FROM_D1_SUPPORTED = 0x00000020; + + [NativeTypeName("#define PDCAP_WAKE_FROM_D2_SUPPORTED 0x00000040")] + public const int PDCAP_WAKE_FROM_D2_SUPPORTED = 0x00000040; + + [NativeTypeName("#define PDCAP_WAKE_FROM_D3_SUPPORTED 0x00000080")] + public const int PDCAP_WAKE_FROM_D3_SUPPORTED = 0x00000080; + + [NativeTypeName("#define PDCAP_WARM_EJECT_SUPPORTED 0x00000100")] + public const int PDCAP_WARM_EJECT_SUPPORTED = 0x00000100; + + [NativeTypeName("#define ACPI_PPM_SOFTWARE_ALL 0xFC")] + public const int ACPI_PPM_SOFTWARE_ALL = 0xFC; + + [NativeTypeName("#define ACPI_PPM_SOFTWARE_ANY 0xFD")] + public const int ACPI_PPM_SOFTWARE_ANY = 0xFD; + + [NativeTypeName("#define ACPI_PPM_HARDWARE_ALL 0xFE")] + public const int ACPI_PPM_HARDWARE_ALL = 0xFE; + + [NativeTypeName("#define NUM_DISCHARGE_POLICIES 4")] + public const int NUM_DISCHARGE_POLICIES = 4; + + [NativeTypeName("#define DISCHARGE_POLICY_CRITICAL 0")] + public const int DISCHARGE_POLICY_CRITICAL = 0; + + [NativeTypeName("#define DISCHARGE_POLICY_LOW 1")] + public const int DISCHARGE_POLICY_LOW = 1; + + [NativeTypeName("#define PO_THROTTLE_NONE 0")] + public const int PO_THROTTLE_NONE = 0; + + [NativeTypeName("#define PO_THROTTLE_CONSTANT 1")] + public const int PO_THROTTLE_CONSTANT = 1; + + [NativeTypeName("#define PO_THROTTLE_DEGRADE 2")] + public const int PO_THROTTLE_DEGRADE = 2; + + [NativeTypeName("#define PO_THROTTLE_ADAPTIVE 3")] + public const int PO_THROTTLE_ADAPTIVE = 3; + + [NativeTypeName("#define PO_THROTTLE_MAXIMUM 4")] + public const int PO_THROTTLE_MAXIMUM = 4; + + [NativeTypeName("#define HIBERFILE_TYPE_NONE 0x00")] + public const int HIBERFILE_TYPE_NONE = 0x00; + + [NativeTypeName("#define HIBERFILE_TYPE_REDUCED 0x01")] + public const int HIBERFILE_TYPE_REDUCED = 0x01; + + [NativeTypeName("#define HIBERFILE_TYPE_FULL 0x02")] + public const int HIBERFILE_TYPE_FULL = 0x02; + + [NativeTypeName("#define HIBERFILE_TYPE_MAX 0x03")] + public const int HIBERFILE_TYPE_MAX = 0x03; + + [NativeTypeName("#define N_BTMASK 0x000F")] + public const int N_BTMASK = 0x000F; + + [NativeTypeName("#define N_TMASK 0x0030")] + public const int N_TMASK = 0x0030; + + [NativeTypeName("#define N_TMASK1 0x00C0")] + public const int N_TMASK1 = 0x00C0; + + [NativeTypeName("#define N_TMASK2 0x00F0")] + public const int N_TMASK2 = 0x00F0; + + [NativeTypeName("#define N_BTSHFT 4")] + public const int N_BTSHFT = 4; + + [NativeTypeName("#define N_TSHIFT 2")] + public const int N_TSHIFT = 2; + + [NativeTypeName("#define FRAME_FPO 0")] + public const int FRAME_FPO = 0; + + [NativeTypeName("#define FRAME_TRAP 1")] + public const int FRAME_TRAP = 1; + + [NativeTypeName("#define FRAME_TSS 2")] + public const int FRAME_TSS = 2; + + [NativeTypeName("#define FRAME_NONFPO 3")] + public const int FRAME_NONFPO = 3; + + [NativeTypeName("#define SIZEOF_RFPO_DATA 16")] + public const int SIZEOF_RFPO_DATA = 16; + + [NativeTypeName("#define NON_PAGED_DEBUG_SIGNATURE 0x494E")] + public const int NON_PAGED_DEBUG_SIGNATURE = 0x494E; + + [NativeTypeName("#define IMPORT_OBJECT_HDR_SIG2 0xffff")] + public const int IMPORT_OBJECT_HDR_SIG2 = 0xffff; + + [NativeTypeName("#define UNWIND_HISTORY_TABLE_SIZE 12")] + public const int UNWIND_HISTORY_TABLE_SIZE = 12; + + [NativeTypeName("#define COMPRESSION_FORMAT_NONE (0x0000)")] + public const int COMPRESSION_FORMAT_NONE = (0x0000); + + [NativeTypeName("#define COMPRESSION_FORMAT_DEFAULT (0x0001)")] + public const int COMPRESSION_FORMAT_DEFAULT = (0x0001); + + [NativeTypeName("#define COMPRESSION_FORMAT_LZNT1 (0x0002)")] + public const int COMPRESSION_FORMAT_LZNT1 = (0x0002); + + [NativeTypeName("#define COMPRESSION_FORMAT_XPRESS (0x0003)")] + public const int COMPRESSION_FORMAT_XPRESS = (0x0003); + + [NativeTypeName("#define COMPRESSION_FORMAT_XPRESS_HUFF (0x0004)")] + public const int COMPRESSION_FORMAT_XPRESS_HUFF = (0x0004); + + [NativeTypeName("#define COMPRESSION_FORMAT_XP10 (0x0005)")] + public const int COMPRESSION_FORMAT_XP10 = (0x0005); + + [NativeTypeName("#define COMPRESSION_ENGINE_STANDARD (0x0000)")] + public const int COMPRESSION_ENGINE_STANDARD = (0x0000); + + [NativeTypeName("#define COMPRESSION_ENGINE_MAXIMUM (0x0100)")] + public const int COMPRESSION_ENGINE_MAXIMUM = (0x0100); + + [NativeTypeName("#define COMPRESSION_ENGINE_HIBER (0x0200)")] + public const int COMPRESSION_ENGINE_HIBER = (0x0200); + + [NativeTypeName("#define MESSAGE_RESOURCE_UNICODE 0x0001")] + public const int MESSAGE_RESOURCE_UNICODE = 0x0001; + + [NativeTypeName("#define MESSAGE_RESOURCE_UTF8 0x0002")] + public const int MESSAGE_RESOURCE_UTF8 = 0x0002; + + [NativeTypeName("#define VRL_PREDEFINED_CLASS_BEGIN (1 << 0)")] + public const int VRL_PREDEFINED_CLASS_BEGIN = (1 << 0); + + [NativeTypeName("#define VRL_CUSTOM_CLASS_BEGIN (1 << 8)")] + public const int VRL_CUSTOM_CLASS_BEGIN = (1 << 8); + + [NativeTypeName("#define VRL_CLASS_CONSISTENCY (VRL_PREDEFINED_CLASS_BEGIN << 0)")] + public const int VRL_CLASS_CONSISTENCY = ((1 << 0) << 0); + + [NativeTypeName("#define VRL_ENABLE_KERNEL_BREAKS (1 << 31)")] + public const int VRL_ENABLE_KERNEL_BREAKS = (1 << 31); + + [NativeTypeName("#define CTMF_INCLUDE_APPCONTAINER 0x00000001UL")] + public const uint CTMF_INCLUDE_APPCONTAINER = 0x00000001U; + + [NativeTypeName("#define CTMF_INCLUDE_LPAC 0x00000002UL")] + public const uint CTMF_INCLUDE_LPAC = 0x00000002U; + + [NativeTypeName("#define CTMF_VALID_FLAGS (CTMF_INCLUDE_APPCONTAINER | CTMF_INCLUDE_LPAC)")] + public const uint CTMF_VALID_FLAGS = (0x00000001U | 0x00000002U); + + [NativeTypeName("#define FLUSH_NV_MEMORY_IN_FLAG_NO_DRAIN (0x00000001)")] + public const int FLUSH_NV_MEMORY_IN_FLAG_NO_DRAIN = (0x00000001); + + [NativeTypeName("#define FLUSH_NV_MEMORY_DEFAULT_TOKEN (ULONG_PTR)(-1)")] + public static nuint FLUSH_NV_MEMORY_DEFAULT_TOKEN => unchecked((nuint)(-1)); + + [NativeTypeName("#define WRITE_NV_MEMORY_FLAG_FLUSH (0x00000001)")] + public const int WRITE_NV_MEMORY_FLAG_FLUSH = (0x00000001); + + [NativeTypeName("#define WRITE_NV_MEMORY_FLAG_NON_TEMPORAL (0x00000002)")] + public const int WRITE_NV_MEMORY_FLAG_NON_TEMPORAL = (0x00000002); + + [NativeTypeName("#define WRITE_NV_MEMORY_FLAG_PERSIST (WRITE_NV_MEMORY_FLAG_FLUSH \\\r\n | WRITE_NV_MEMORY_FLAG_NON_TEMPORAL)")] + public const int WRITE_NV_MEMORY_FLAG_PERSIST = ((0x00000001) | (0x00000002)); + + [NativeTypeName("#define WRITE_NV_MEMORY_FLAG_NO_DRAIN (0x00000100)")] + public const int WRITE_NV_MEMORY_FLAG_NO_DRAIN = (0x00000100); + + [NativeTypeName("#define FILL_NV_MEMORY_FLAG_FLUSH (0x00000001)")] + public const int FILL_NV_MEMORY_FLAG_FLUSH = (0x00000001); + + [NativeTypeName("#define FILL_NV_MEMORY_FLAG_NON_TEMPORAL (0x00000002)")] + public const int FILL_NV_MEMORY_FLAG_NON_TEMPORAL = (0x00000002); + + [NativeTypeName("#define FILL_NV_MEMORY_FLAG_PERSIST (FILL_NV_MEMORY_FLAG_FLUSH \\\r\n | FILL_NV_MEMORY_FLAG_NON_TEMPORAL)")] + public const int FILL_NV_MEMORY_FLAG_PERSIST = ((0x00000001) | (0x00000002)); + + [NativeTypeName("#define FILL_NV_MEMORY_FLAG_NO_DRAIN (0x00000100)")] + public const int FILL_NV_MEMORY_FLAG_NO_DRAIN = (0x00000100); + + [NativeTypeName("#define PERFORMANCE_DATA_VERSION 1")] + public const int PERFORMANCE_DATA_VERSION = 1; + + [NativeTypeName("#define UNIFIEDBUILDREVISION_KEY L\"\\\\Registry\\\\Machine\\\\Software\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\"")] + public const string UNIFIEDBUILDREVISION_KEY = "\\Registry\\Machine\\Software\\Microsoft\\Windows NT\\CurrentVersion"; + + [NativeTypeName("#define UNIFIEDBUILDREVISION_VALUE L\"UBR\"")] + public const string UNIFIEDBUILDREVISION_VALUE = "UBR"; + + [NativeTypeName("#define UNIFIEDBUILDREVISION_MIN 0x00000000")] + public const int UNIFIEDBUILDREVISION_MIN = 0x00000000; + + [NativeTypeName("#define DLL_PROCESS_ATTACH 1")] + public const int DLL_PROCESS_ATTACH = 1; + + [NativeTypeName("#define DLL_THREAD_ATTACH 2")] + public const int DLL_THREAD_ATTACH = 2; + + [NativeTypeName("#define DLL_THREAD_DETACH 3")] + public const int DLL_THREAD_DETACH = 3; + + [NativeTypeName("#define DLL_PROCESS_DETACH 0")] + public const int DLL_PROCESS_DETACH = 0; + + [NativeTypeName("#define MAXLOGICALLOGNAMESIZE 256")] + public const int MAXLOGICALLOGNAMESIZE = 256; + } +}