mirror of
https://github.com/amerkoleci/Vortice.Win32.git
synced 2026-01-14 16:16:04 +08:00
Massive folder rename, follow Apis convention, separate Imaging (WIC)
This commit is contained in:
57
src/Vortice.Win32.Graphics.Direct3D11/Direct3D11.Manual.cs
Normal file
57
src/Vortice.Win32.Graphics.Direct3D11/Direct3D11.Manual.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
// Copyright © Amer Koleci and Contributors.
|
||||
// Licensed under the MIT License (MIT). See LICENSE in the repository root for more information.
|
||||
|
||||
using System.Runtime.CompilerServices;
|
||||
using Win32.Graphics.Direct3D;
|
||||
using Win32.Graphics.Dxgi;
|
||||
|
||||
namespace Win32.Graphics.Direct3D11;
|
||||
|
||||
public partial struct AuthenticatedProtectionFlags
|
||||
{
|
||||
public partial struct _Flags_e__Struct
|
||||
{
|
||||
public uint ProtectionEnabled
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
return _bitfield & 0x1u;
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
set
|
||||
{
|
||||
_bitfield = (_bitfield & ~0x1u) | (value & 0x1u);
|
||||
}
|
||||
}
|
||||
|
||||
public uint OverlayOrFullscreenRequired
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
return (_bitfield >> 1) & 0x1u;
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
set
|
||||
{
|
||||
_bitfield = (_bitfield & ~(0x1u << 1)) | ((value & 0x1u) << 1);
|
||||
}
|
||||
}
|
||||
|
||||
[NativeTypeName("uint : 30")]
|
||||
public uint Reserved
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
return (_bitfield >> 2) & 0x3FFFFFFFu;
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
set
|
||||
{
|
||||
_bitfield = (_bitfield & ~(0x3FFFFFFFu << 2)) | ((value & 0x3FFFFFFFu) << 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user