aboutsummaryrefslogtreecommitdiffstatsci
path: root/tests/Program.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-12-04 04:13:56 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-12-04 04:13:56 +0100
commitba592ca9099fe4e378692bd2e8c953de90a4beb5 (patch)
tree766a1bf12e789bf37b86818584b5ed1998e01cb0 /tests/Program.cs
parent0bbba34c81f356da8e00e04d0f61c6b9a66337c9 (diff)
Utf8StringPointer
Diffstat (limited to 'tests/Program.cs')
-rw-r--r--tests/Program.cs24
1 files changed, 4 insertions, 20 deletions
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);