From: Jean-Philippe Bruyère Date: Mon, 13 Jun 2022 16:12:00 +0000 (+0200) Subject: DeviceCreationPNext, vk.net 0.4.1-beta X-Git-Tag: v0.2.6-beta X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=3f164d5080a36b7eb35f9e0a1e4b4b80fbf9cccd;p=jp%2Fvke.net.git DeviceCreationPNext, vk.net 0.4.1-beta --- diff --git a/Directory.Build.props b/Directory.Build.props index 12f48e1..c3ea0bb 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -4,7 +4,7 @@ $(SolutionDir)build\$(Configuration)\ 0.1.45 $(SpirVTasksReleaseVersion) - 0.2.5 + 0.2.6 $(VkeReleaseVersion)-beta true false diff --git a/vke/src/VkWindow.cs b/vke/src/VkWindow.cs index e28f6a8..e208a33 100644 --- a/vke/src/VkWindow.cs +++ b/vke/src/VkWindow.cs @@ -66,6 +66,10 @@ namespace vke { /// Override this property to change the list of enabled device extensions /// public virtual string[] EnabledDeviceExtensions => new string[] { Ext.D.VK_KHR_swapchain }; + /// + /// Override this property to change the pNext chain of de device creation structure. + /// + public virtual IntPtr DeviceCreationPNext => IntPtr.Zero; /// /// Frequency in millisecond of the call to the Update method @@ -164,7 +168,7 @@ namespace vke { createQueues (); //activate the device to have effective queues created accordingly to what's available - dev.Activate (enabledFeatures, EnabledDeviceExtensions); + dev.Activate (DeviceCreationPNext, enabledFeatures, EnabledDeviceExtensions); swapChain = new SwapChain (presentQueue as PresentQueue, Width, Height, SwapChain.PREFERED_FORMAT, VSync ? VkPresentModeKHR.FifoKHR : VkPresentModeKHR.ImmediateKHR); diff --git a/vke/src/base/Device.cs b/vke/src/base/Device.cs index 8020b35..2dee8bd 100644 --- a/vke/src/base/Device.cs +++ b/vke/src/base/Device.cs @@ -37,7 +37,7 @@ namespace vke { phy = _phy; } - public void Activate (VkPhysicalDeviceFeatures enabledFeatures, params string[] extensions) { + public void Activate (IntPtr pNext, VkPhysicalDeviceFeatures enabledFeatures, params string[] extensions) { List qInfos = new List (); foreach (IGrouping qfams in queues.GroupBy (q => q.qFamIndex)) { diff --git a/vke/src/base/RenderPass.cs b/vke/src/base/RenderPass.cs index 95683fd..b5a977d 100644 --- a/vke/src/base/RenderPass.cs +++ b/vke/src/base/RenderPass.cs @@ -17,7 +17,7 @@ namespace vke { internal List attachments = new List (); internal List subpasses = new List (); List dependencies = new List (); - public List ClearValues = new List (); + public List ClearValues { get; set; } = new List (); public VkAttachmentDescription [] Attachments => attachments.ToArray (); public SubPass [] SubPasses => subpasses.ToArray (); diff --git a/vke/vke.csproj b/vke/vke.csproj index eff1a34..d1d163c 100644 --- a/vke/vke.csproj +++ b/vke/vke.csproj @@ -48,7 +48,7 @@ - +