add code
This commit is contained in:
63
src/Library.bf
Normal file
63
src/Library.bf
Normal 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
5451
src/Loader.bf
Normal file
File diff suppressed because it is too large
Load Diff
3927
src/Metadata.bf
Normal file
3927
src/Metadata.bf
Normal file
File diff suppressed because it is too large
Load Diff
3604
src/Video.bf
Normal file
3604
src/Video.bf
Normal file
File diff suppressed because it is too large
Load Diff
36423
src/Vulkan.bf
Normal file
36423
src/Vulkan.bf
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user