-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[progress #146] custom bindings done
- Loading branch information
Showing
12 changed files
with
232 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
const std = @import ("std"); | ||
const c = @import ("c"); | ||
|
||
const vk = @import ("vk"); | ||
const raw = @import ("raw"); | ||
|
||
pub const Surface = enum (u64) | ||
{ | ||
NULL_HANDLE = vk.NULL_HANDLE, _, | ||
pub const Capabilities = extern struct | ||
{ | ||
min_image_count: u32, | ||
max_image_count: u32, | ||
current_extent: vk.Extent2D, | ||
min_image_extent: vk.Extent2D, | ||
max_image_extent: vk.Extent2D, | ||
max_image_array_layers: u32, | ||
supported_transforms: vk.KHR.Surface.Transform.Flags, | ||
current_transform: vk.KHR.Surface.Transform.Flags, | ||
supported_composite_alpha: vk.KHR.CompositeAlpha.Flags, | ||
supported_usage_flags: vk.Image.Usage.Flags, | ||
}; | ||
|
||
pub const Format = extern struct | ||
{ | ||
format: vk.Format, | ||
color_space: vk.KHR.ColorSpace, | ||
}; | ||
|
||
pub const Transform = extern struct | ||
{ | ||
pub const Flags = u32; | ||
|
||
pub const Bit = enum (vk.KHR.Surface.Transform.Flags) | ||
{ | ||
IDENTITY = c.VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR, | ||
}; | ||
}; | ||
|
||
pub fn destroy (surface: @This (),instance: vk.Instance) void | ||
{ | ||
const p_allocator: ?*const vk.AllocationCallbacks = null; | ||
raw.prototypes.instance.vkDestroySurfaceKHR (instance, surface, | ||
p_allocator); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.