From f5fc7e297fbeb523cc8bb6d1d06f9846150dcad6 Mon Sep 17 00:00:00 2001 From: Shawdooow Date: Sat, 20 Nov 2021 18:44:13 -0500 Subject: [PATCH] update docs --- vke/src/ShaderInfo.cs | 2 +- vke/src/Utils.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/vke/src/ShaderInfo.cs b/vke/src/ShaderInfo.cs index 57f3974..7cc498b 100644 --- a/vke/src/ShaderInfo.cs +++ b/vke/src/ShaderInfo.cs @@ -43,7 +43,7 @@ namespace vke { /// /// vke Device /// Stage flags. - /// path to a compiled SpirV Shader on disk or as embedded ressource if path starts with '#' + /// path to a compiled SpirV Shader on disk or as embedded ressource if path contains ':' (ex; Assembly:shader.vert.spv) /// 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 e82fc39..0a1ef6c 100644 --- a/vke/src/Utils.cs +++ b/vke/src/Utils.cs @@ -37,10 +37,10 @@ namespace Vulkan { } /// /// Return a file or embedded resource stream. - /// Use : to split assembly and resource (ex; Assembly:shader.vert.spv) + /// Use ':' to split assembly and resource (ex; "Assembly:shader.vert.spv") /// /// The stream from path. - /// The file or stream path. Embedded resource path starts with '#'. + /// The file or stream path. Embedded resource path contains ':'. public static Stream GetStreamFromPath (string path) { if (path.Contains(":", StringComparison.Ordinal)) { Stream stream = null; -- 2.47.3