-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
64 additions
and
5 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 @@ | ||
using Silk.NET.Vulkan; | ||
using Silk.NET.Vulkan.Extensions.KHR; | ||
|
||
namespace grabs.Graphics.Vulkan; | ||
|
||
public sealed class VkSwapchain : Swapchain | ||
{ | ||
private readonly Vk _vk; | ||
private readonly KhrSwapchain _khrSwapchain; | ||
|
||
public override PresentMode PresentMode { get; set; } | ||
|
||
public VkSwapchain(Vk vk, KhrSwapchain khrSwapchain, SurfaceKHR surface, in SwapchainDescription description) | ||
{ | ||
_vk = vk; | ||
_khrSwapchain = khrSwapchain; | ||
|
||
Extent2D swapchainSize = new Extent2D(description.Width, description.Width); | ||
|
||
SwapchainCreateInfoKHR swapchainCreateInfo = new SwapchainCreateInfoKHR() | ||
{ | ||
SType = StructureType.SwapchainCreateInfoKhr, | ||
|
||
} | ||
Check failure on line 24 in src/grabs.Graphics.Vulkan/VkSwapchain.cs GitHub Actions / build
|
||
} | ||
|
||
public override Texture GetSwapchainTexture() | ||
{ | ||
throw new System.NotImplementedException(); | ||
} | ||
|
||
public override void Resize(uint width, uint height) | ||
{ | ||
throw new System.NotImplementedException(); | ||
} | ||
|
||
public override void Present() | ||
{ | ||
throw new System.NotImplementedException(); | ||
} | ||
|
||
public override void Dispose() | ||
{ | ||
throw new System.NotImplementedException(); | ||
} | ||
} |