diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-12-07 14:31:55 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-12-07 14:31:55 +0100 |
| commit | 3fb884d726910719a351d3e617c757459fb7c772 (patch) | |
| tree | 1625cf47f6eab63f18fb39093e3a1f0df373c272 /samples/create_instance/Program.cs | |
| parent | 2af048902ea6952eaac368b8880788214f2e95af (diff) | |
samples
Diffstat (limited to 'samples/create_instance/Program.cs')
| -rw-r--r-- | samples/create_instance/Program.cs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/samples/create_instance/Program.cs b/samples/create_instance/Program.cs new file mode 100644 index 0000000..474ae72 --- /dev/null +++ b/samples/create_instance/Program.cs @@ -0,0 +1,27 @@ +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using System.Text; +using Vulkan; +using static Vulkan.Vk; +using Version = Vulkan.Version; + +namespace tests +{ + class Program + { + + static void Main(string[] args) + { + VkInstance instance; + + using (VkApplicationInfo ai = new VkApplicationInfo()) { + using (VkInstanceCreateInfo ci = new VkInstanceCreateInfo {pApplicationInfo = ai}){ + Console.WriteLine (vkCreateInstance (ci, IntPtr.Zero, out instance)); + } + } + + vkDestroyInstance (instance, IntPtr.Zero); + } + } +} |