diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2019-08-23 12:53:37 +0200 |
|---|---|---|
| committer | j-p <jp_bruyere@hotmail.com> | 2019-08-28 11:32:06 +0200 |
| commit | 28e25d4c9f0ec82f2c7b4eeb63aba7f0c6d4e91f (patch) | |
| tree | 23ce5a09799691f8ace90354f716e0358287e64c /samples/Triangle | |
| parent | 3ebbf86e007af2ab49f5e50d8b36f63e00c29c81 (diff) | |
save comit before image modif
Diffstat (limited to 'samples/Triangle')
| -rw-r--r-- | samples/Triangle/Triangle.csproj | 5 | ||||
| -rw-r--r-- | samples/Triangle/main.cs | 9 |
2 files changed, 8 insertions, 6 deletions
diff --git a/samples/Triangle/Triangle.csproj b/samples/Triangle/Triangle.csproj index 9d4fbf3..d3956b0 100644 --- a/samples/Triangle/Triangle.csproj +++ b/samples/Triangle/Triangle.csproj @@ -1,11 +1,8 @@ <Project Sdk="Microsoft.NET.Sdk"> - <Import Project="../../netfx.props" /> + <Import Project="$(RootDirectory)netfx.props" /> <PropertyGroup> - <TargetFrameworks>net471;netstandard2.0</TargetFrameworks> <OutputPath>$(SolutionDir)build\$(Configuration)\</OutputPath> <OutputType>Exe</OutputType> - <RepositoryUrl>https://github.com/jpbruyere/vk.net</RepositoryUrl> - <License>https://opensource.org/licenses/MIT</License> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> </PropertyGroup> diff --git a/samples/Triangle/main.cs b/samples/Triangle/main.cs index 27f9838..9a6b397 100644 --- a/samples/Triangle/main.cs +++ b/samples/Triangle/main.cs @@ -1,4 +1,7 @@ -using System.Numerics; +// Copyright (c) 2019 Jean-Philippe Bruyère <jp_bruyere@hotmail.com> +// +// This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT) +using System.Numerics; using System.Runtime.InteropServices; using CVKL; using VK; @@ -6,7 +9,7 @@ using VK; namespace Triangle { class Program : VkWindow { static void Main (string[] args) { - Instance.RENDER_DOC_CAPTURE = true; + //Instance.RENDER_DOC_CAPTURE = true; Instance.VALIDATION = true; using (Program vke = new Program ()) { @@ -73,6 +76,8 @@ namespace Triangle { pipeline = new GraphicPipeline (cfg); + //note that descriptor set is allocated after the pipeline creation that use this layout, layout is activated + //automaticaly on pipeline creation. descriptorSet = descriptorPool.Allocate (dsLayout); DescriptorSetWrites uboUpdate = new DescriptorSetWrites (descriptorSet, dsLayout); uboUpdate.Write (dev, uboMats.Descriptor); |