From: Jean-Philippe Bruyère Date: Sun, 21 Nov 2021 13:46:05 +0000 (+0100) Subject: update docs X-Git-Tag: v0.2.4-beta~10 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=8fdd874fea2723242bf0e1f5e291e3c67fcb0e2e;p=jp%2Fvke.net.git update docs --- diff --git a/vke/src/ShaderInfo.cs b/vke/src/ShaderInfo.cs index 6e7a41e..ba3c9c1 100644 --- a/vke/src/ShaderInfo.cs +++ b/vke/src/ShaderInfo.cs @@ -43,8 +43,9 @@ namespace vke { /// /// vke Device /// Stage flags. - /// path to a compiled SpirV Shader on disk or as embedded ressource if path starts with '#' (ex; #Assembly.shader.vert.spv) - /// or contains ':' (ex; Assembly:shader.vert.spv) + /// + /// Path to a compiled SpirV Shader on disk or as embedded ressource. See for more information. + /// /// Specialization info /// shader entry point, 'main' by default. public ShaderInfo (Device dev, VkShaderStageFlags _stageFlags, string _spirvPath, SpecializationInfo specializationInfo = null, string entryPoint = "main"): diff --git a/vke/src/Utils.cs b/vke/src/Utils.cs index 86048bd..8071962 100644 --- a/vke/src/Utils.cs +++ b/vke/src/Utils.cs @@ -41,7 +41,7 @@ namespace Vulkan { /// /// Embedded resource path start with `#`. The entry assembly is always searched first to be able /// to override resource defined in satellite assemblies. - /// To enforce assembly name selection, use `:` to split assembly and resource (ex; "Assembly:filename.spv"), + /// To enforce assembly name selection, use `:` to split assembly and resource (ex; "Assembly:LogicalName"), /// else assembly names will be determined with the first, or the two firsts names in the path string. /// (ex: AssemblyName.filename.ext then Assembly.Name.filename.ext) /// diff --git a/vke/src/base/CommandPool.cs b/vke/src/base/CommandPool.cs index 3929163..a77d800 100644 --- a/vke/src/base/CommandPool.cs +++ b/vke/src/base/CommandPool.cs @@ -10,6 +10,9 @@ namespace vke { /// /// Command pools are opaque objects that command buffer memory is allocated from, and which allow the implementation /// to amortize the cost of resource creation across multiple command buffers. + /// + /// See for more information. + /// /// public sealed class CommandPool : Activable { public readonly uint QFamIndex; @@ -22,17 +25,19 @@ namespace vke { /// /// Vulkan Device. /// Queue family index. + /// Command pool creation flags. public CommandPool (Device device, uint qFamIdx, VkCommandPoolCreateFlags flags = 0) : base(device) - { + { QFamIndex = qFamIdx; Flags = flags; Activate (); } /// - /// Initializes a new instance of the [[CommandPool]]"/> class. + /// Initializes a new instance of the " class. /// - /// Device Queue of the queue family to create the pool for. + /// Device of the queue family to create the pool for. + /// Command pool creation flags. public CommandPool (Queue queue, VkCommandPoolCreateFlags flags = 0) : this(queue.dev, queue.qFamIndex, flags) {} #endregion @@ -40,7 +45,7 @@ namespace vke { => new VkDebugUtilsObjectNameInfoEXT (VkObjectType.CommandPool, handle.Handle); public override void Activate () { - if (state != ActivableState.Activated) { + if (state != ActivableState.Activated) { VkCommandPoolCreateInfo infos = VkCommandPoolCreateInfo.New(); infos.queueFamilyIndex = QFamIndex; infos.flags = Flags; @@ -95,14 +100,14 @@ namespace vke { Utils.CheckResult (vkAllocateCommandBuffers (Dev.VkDev, ref infos, buffs.Pin())); buffs.Unpin (); PrimaryCommandBuffer[] cmds = new PrimaryCommandBuffer[count]; - for (int i = 0; i < count; i++) + for (int i = 0; i < count; i++) cmds[i] = new PrimaryCommandBuffer (Dev.VkDev, this, buffs[i]); return cmds; } /// /// Resetting a command pool recycles all of the resources from all of the command buffers allocated from the command - /// pool back to the command pool. All command buffers that have been allocated from the command pool are put in the initial state. + /// pool back to the command pool. All command buffers that have been allocated from the command pool are put in the initial state. /// Any primary command buffer allocated from another VkCommandPool that is in the recording or executable state and has a secondary /// command buffer allocated from commandPool recorded into it, becomes invalid. ///