Skip to content

Commit 4bc7e80

Browse files
committed
Generate initial OpenXR bindings on Linux
1 parent ed60b93 commit 4bc7e80

1,010 files changed

Lines changed: 53594 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.silktouch/openxr-clangsharp.stout

1000 KB
Binary file not shown.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// Ported from the OpenXR headers and corresponding dependencies.
4+
// Original source is Copyright 2017-2026 The Khronos Group Inc. Licensed under the MIT license.
5+
using System;
6+
using System.Runtime.CompilerServices;
7+
using System.Runtime.InteropServices;
8+
9+
namespace Silk.NET.OpenXR;
10+
11+
[NativeName("XrAndroidSurfaceSwapchainFlagsFB")]
12+
[Flags]
13+
public enum AndroidSurfaceSwapchainFlagsFB : ulong
14+
{
15+
None = 0x0,
16+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// Ported from the OpenXR headers and corresponding dependencies.
4+
// Original source is Copyright 2017-2026 The Khronos Group Inc. Licensed under the MIT license.
5+
using System;
6+
using System.Runtime.CompilerServices;
7+
using System.Runtime.InteropServices;
8+
9+
namespace Silk.NET.OpenXR;
10+
11+
[NativeName("XrBatteryStateDisplayStateFlagsEXT")]
12+
[Flags]
13+
public enum BatteryStateDisplayStateFlagsEXT : ulong
14+
{
15+
None = 0x0,
16+
17+
[NativeName("XR_BATTERY_STATE_DISPLAY_STATE_VALID_BIT_EXT")]
18+
ValidBit = 0x1,
19+
20+
[NativeName("XR_BATTERY_STATE_DISPLAY_STATE_CHARGING_BIT_EXT")]
21+
ChargingBit = 0x2,
22+
23+
[NativeName("XR_BATTERY_STATE_DISPLAY_STATE_PLUGGED_IN_BIT_EXT")]
24+
PluggedInBit = 0x4,
25+
26+
[NativeName("XR_BATTERY_STATE_DISPLAY_STATE_NO_BATTERY_BIT_EXT")]
27+
NoBatteryBit = 0x8,
28+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// Ported from the OpenXR headers and corresponding dependencies.
4+
// Original source is Copyright 2017-2026 The Khronos Group Inc. Licensed under the MIT license.
5+
using System;
6+
using System.Runtime.CompilerServices;
7+
using System.Runtime.InteropServices;
8+
9+
namespace Silk.NET.OpenXR;
10+
11+
[NativeName("XrCompositionLayerFlags")]
12+
[Flags]
13+
public enum CompositionLayerFlags : ulong
14+
{
15+
None = 0x0,
16+
17+
[NativeName("XR_COMPOSITION_LAYER_CORRECT_CHROMATIC_ABERRATION_BIT")]
18+
CorrectChromaticAberrationBit = 0x1,
19+
20+
[NativeName("XR_COMPOSITION_LAYER_BLEND_TEXTURE_SOURCE_ALPHA_BIT")]
21+
BlendTextureSourceAlphaBit = 0x2,
22+
23+
[NativeName("XR_COMPOSITION_LAYER_UNPREMULTIPLIED_ALPHA_BIT")]
24+
UnpremultipliedAlphaBit = 0x4,
25+
26+
[NativeName("XR_COMPOSITION_LAYER_INVERTED_ALPHA_BIT_EXT")]
27+
InvertedAlphaBitEXT = 0x8,
28+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// Ported from the OpenXR headers and corresponding dependencies.
4+
// Original source is Copyright 2017-2026 The Khronos Group Inc. Licensed under the MIT license.
5+
using System;
6+
using System.Runtime.CompilerServices;
7+
using System.Runtime.InteropServices;
8+
9+
namespace Silk.NET.OpenXR;
10+
11+
[NativeName("XrCompositionLayerImageLayoutFlagsFB")]
12+
[Flags]
13+
public enum CompositionLayerImageLayoutFlagsFB : ulong
14+
{
15+
None = 0x0,
16+
17+
[NativeName("XR_COMPOSITION_LAYER_IMAGE_LAYOUT_VERTICAL_FLIP_BIT_FB")]
18+
VerticalFlipBit = 0x1,
19+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// Ported from the OpenXR headers and corresponding dependencies.
4+
// Original source is Copyright 2017-2026 The Khronos Group Inc. Licensed under the MIT license.
5+
using System;
6+
using System.Runtime.CompilerServices;
7+
using System.Runtime.InteropServices;
8+
9+
namespace Silk.NET.OpenXR;
10+
11+
[NativeName("XrCompositionLayerSecureContentFlagsFB")]
12+
[Flags]
13+
public enum CompositionLayerSecureContentFlagsFB : ulong
14+
{
15+
None = 0x0,
16+
17+
[NativeName("XR_COMPOSITION_LAYER_SECURE_CONTENT_EXCLUDE_LAYER_BIT_FB")]
18+
ExcludeLayerBit = 0x1,
19+
20+
[NativeName("XR_COMPOSITION_LAYER_SECURE_CONTENT_REPLACE_LAYER_BIT_FB")]
21+
ReplaceLayerBit = 0x2,
22+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// Ported from the OpenXR headers and corresponding dependencies.
4+
// Original source is Copyright 2017-2026 The Khronos Group Inc. Licensed under the MIT license.
5+
using System;
6+
using System.Runtime.CompilerServices;
7+
using System.Runtime.InteropServices;
8+
9+
namespace Silk.NET.OpenXR;
10+
11+
[NativeName("XrCompositionLayerSettingsFlagsFB")]
12+
[Flags]
13+
public enum CompositionLayerSettingsFlagsFB : ulong
14+
{
15+
None = 0x0,
16+
17+
[NativeName("XR_COMPOSITION_LAYER_SETTINGS_NORMAL_SUPER_SAMPLING_BIT_FB")]
18+
NormalSuperSamplingBit = 0x1,
19+
20+
[NativeName("XR_COMPOSITION_LAYER_SETTINGS_QUALITY_SUPER_SAMPLING_BIT_FB")]
21+
QualitySuperSamplingBit = 0x2,
22+
23+
[NativeName("XR_COMPOSITION_LAYER_SETTINGS_NORMAL_SHARPENING_BIT_FB")]
24+
NormalSharpeningBit = 0x4,
25+
26+
[NativeName("XR_COMPOSITION_LAYER_SETTINGS_QUALITY_SHARPENING_BIT_FB")]
27+
QualitySharpeningBit = 0x8,
28+
29+
[NativeName("XR_COMPOSITION_LAYER_SETTINGS_AUTO_LAYER_FILTER_BIT_META")]
30+
AutoLayerFilterBitMETA = 0x20,
31+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// Ported from the OpenXR headers and corresponding dependencies.
4+
// Original source is Copyright 2017-2026 The Khronos Group Inc. Licensed under the MIT license.
5+
using System;
6+
using System.Runtime.CompilerServices;
7+
using System.Runtime.InteropServices;
8+
9+
namespace Silk.NET.OpenXR;
10+
11+
[NativeName("XrCompositionLayerSpaceWarpInfoFlagsFB")]
12+
[Flags]
13+
public enum CompositionLayerSpaceWarpInfoFlagsFB : ulong
14+
{
15+
None = 0x0,
16+
17+
[NativeName("XR_COMPOSITION_LAYER_SPACE_WARP_INFO_FRAME_SKIP_BIT_FB")]
18+
FrameSkipBit = 0x1,
19+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// Ported from the OpenXR headers and corresponding dependencies.
4+
// Original source is Copyright 2017-2026 The Khronos Group Inc. Licensed under the MIT license.
5+
using System;
6+
using System.Runtime.CompilerServices;
7+
using System.Runtime.InteropServices;
8+
9+
namespace Silk.NET.OpenXR;
10+
11+
[NativeName("XrDebugUtilsMessageSeverityFlagsEXT")]
12+
[Flags]
13+
public enum DebugUtilsMessageSeverityFlagsEXT : ulong
14+
{
15+
None = 0x0,
16+
17+
[NativeName("XR_DEBUG_UTILS_MESSAGE_SEVERITY_VERBOSE_BIT_EXT")]
18+
VerboseBit = 0x1,
19+
20+
[NativeName("XR_DEBUG_UTILS_MESSAGE_SEVERITY_INFO_BIT_EXT")]
21+
InfoBit = 0x10,
22+
23+
[NativeName("XR_DEBUG_UTILS_MESSAGE_SEVERITY_WARNING_BIT_EXT")]
24+
WarningBit = 0x100,
25+
26+
[NativeName("XR_DEBUG_UTILS_MESSAGE_SEVERITY_ERROR_BIT_EXT")]
27+
ErrorBit = 0x1000,
28+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// Ported from the OpenXR headers and corresponding dependencies.
4+
// Original source is Copyright 2017-2026 The Khronos Group Inc. Licensed under the MIT license.
5+
using System;
6+
using System.Runtime.CompilerServices;
7+
using System.Runtime.InteropServices;
8+
9+
namespace Silk.NET.OpenXR;
10+
11+
[NativeName("XrDebugUtilsMessageTypeFlagsEXT")]
12+
[Flags]
13+
public enum DebugUtilsMessageTypeFlagsEXT : ulong
14+
{
15+
None = 0x0,
16+
17+
[NativeName("XR_DEBUG_UTILS_MESSAGE_TYPE_GENERAL_BIT_EXT")]
18+
GeneralBit = 0x1,
19+
20+
[NativeName("XR_DEBUG_UTILS_MESSAGE_TYPE_VALIDATION_BIT_EXT")]
21+
ValidationBit = 0x2,
22+
23+
[NativeName("XR_DEBUG_UTILS_MESSAGE_TYPE_PERFORMANCE_BIT_EXT")]
24+
PerformanceBit = 0x4,
25+
26+
[NativeName("XR_DEBUG_UTILS_MESSAGE_TYPE_CONFORMANCE_BIT_EXT")]
27+
ConformanceBit = 0x8,
28+
}

0 commit comments

Comments
 (0)