This commit is contained in:
Rune
2026-03-29 16:33:12 +02:00
parent 7d1f63c3bf
commit 486babcf0d
10 changed files with 51167 additions and 0 deletions

6
BeefProj.toml Normal file
View File

@@ -0,0 +1,6 @@
FileVersion = 1
[Project]
Name = "Vulkan"
TargetType = "BeefLib"
StartupObject = "Vulkan.Program"

5
BeefSpace.toml Normal file
View File

@@ -0,0 +1,5 @@
FileVersion = 1
Projects = {Vulkan = {Path = "."}}
[Workspace]
StartupProject = "Vulkan"

6
Setup/BeefProj.toml Normal file
View File

@@ -0,0 +1,6 @@
FileVersion = 1
Dependencies = {corlib = "*", Expat = "*"}
[Project]
Name = "Vulkan.Setup"
StartupObject = "Vulkan.Setup.Program"

5
Setup/BeefSpace.toml Normal file
View File

@@ -0,0 +1,5 @@
FileVersion = 1
Projects = {"Vulkan.Setup" = {Path = "."}, Expat = {Path = "../../../RandomStuff/Cpp2Beef/Bindings/Expat"}}
[Workspace]
StartupProject = "Vulkan.Setup"

1677
Setup/src/Program.bf Normal file

File diff suppressed because it is too large Load Diff

63
src/Library.bf Normal file
View File

@@ -0,0 +1,63 @@
// This file is NOT auto-generated
using System;
using System.Interop;
namespace Vulkan;
struct VkBool32 : uint32
{
public static operator bool(Self b) => b != VK_FALSE;
public static operator Self(bool b) => b ? VK_TRUE : VK_FALSE;
}
static
{
public const CallingConventionAttribute.Kind VKAPI_PTR =
#if BF_PLATFORM_WINDOWS
.Stdcall;
#else
.Cdecl;
#endif
public const let VK_NULL_HANDLE = 0;
}
namespace Vulkan.Metadata;
extension VulkanExtension
{
public enum Kind { Instance, Device }
}
namespace Vulkan.External;
struct Display;
struct VisualID;
struct Window : uint32 {}
struct RROutput;
struct wl_display;
struct wl_surface;
struct HINSTANCE : int {}
struct HWND : int {}
struct HMONITOR : int {}
struct HANDLE : int {}
struct SECURITY_ATTRIBUTES;
typealias DWORD = int32;
typealias LPCWSTR = c_wchar*;
struct xcb_connection_t;
struct xcb_visualid_t;
struct xcb_window_t : uint32 {}
struct IDirectFB;
struct IDirectFBSurface;
struct zx_handle_t : int {}
struct GgpStreamDescriptor { /* this struct is propritary, so we don't know it's size */ }
typealias GgpFrameToken = uint32;
struct _screen_context;
struct _screen_window;
struct _screen_buffer;
struct NvSciSyncAttrList;
struct NvSciSyncObj;
struct NvSciSyncFence;
struct NvSciBufAttrList;
struct NvSciBufObj;

5451
src/Loader.bf Normal file

File diff suppressed because it is too large Load Diff

3927
src/Metadata.bf Normal file

File diff suppressed because it is too large Load Diff

3604
src/Video.bf Normal file

File diff suppressed because it is too large Load Diff

36423
src/Vulkan.bf Normal file

File diff suppressed because it is too large Load Diff