From ba592ca9099fe4e378692bd2e8c953de90a4beb5 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bruyère Date: Sat, 4 Dec 2021 04:13:56 +0100 Subject: Utf8StringPointer --- tests/Program.cs | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) (limited to 'tests/Program.cs') diff --git a/tests/Program.cs b/tests/Program.cs index b2050d2..f7b743d 100644 --- a/tests/Program.cs +++ b/tests/Program.cs @@ -8,24 +8,6 @@ using Version = Vulkan.Version; namespace tests { - [StructLayout(LayoutKind.Sequential, Pack = 1, CharSet = CharSet.Ansi)] - public struct NewStuff - { - [MarshalAs(UnmanagedType.ByValTStr, SizeConst = (int)Vulkan.Vk.UuidSize)] - public StringBuilder name; - - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 4*16)] - public float[,] calibrate; - - [MarshalAs(UnmanagedType.R4)] - public float DMTI; - - [MarshalAs(UnmanagedType.R4)] - public float DMTII; - - // Etc - } - class Program { @@ -35,8 +17,10 @@ namespace tests VkInstanceCreateInfo ci = VkInstanceCreateInfo.New(); VkApplicationInfo ai = VkApplicationInfo.New(); - //ai.apiVersion = new Version (1,0,0); - //ai.applicationVersion = new Version (1,0,0); + ai.apiVersion = new Version (1,0,0); + ai.applicationVersion = new Version (1,0,0); + ai.pApplicationName = "new application name"; + ai.pEngineName = "new engine name"; VkClearColorValue clear = new VkClearColorValue(255,0,0); -- cgit v1.3.1-4-g156e