mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
* Use GLFW instead of OpenTK windows * Seems to work pretty well now. * Fix stackalloc issue on Framework. * Add GLFW project to sln. * Fix package downgrade. * Fix SLN more. * Please work. * Fix C# version error.
30 lines
795 B
C#
30 lines
795 B
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace OpenToolkit.GraphicsLibraryFramework
|
|
{
|
|
/// <summary>
|
|
/// A handle to a Vulkan object.
|
|
/// </summary>
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public struct VkHandle
|
|
{
|
|
/// <summary>
|
|
/// The actual value of the Vulkan handle.
|
|
/// </summary>
|
|
public IntPtr Handle;
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="VkHandle"/> struct.
|
|
/// </summary>
|
|
/// <param name="handle">
|
|
/// The native Vulkan handle.
|
|
/// This is NOT a pointer to a field containing the handle, this is the actual handle itself.
|
|
/// </param>
|
|
public VkHandle(IntPtr handle)
|
|
{
|
|
Handle = handle;
|
|
}
|
|
}
|
|
}
|