aboutsummaryrefslogtreecommitdiffstatsci
path: root/samples/select_physical_dev
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2022-11-01 21:13:46 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2022-11-01 21:13:46 +0100
commitb65719d05fc71b2b631334fbc06da58963769063 (patch)
tree07e35f6e033b2328b9ce511f1dd12e5e22275294 /samples/select_physical_dev
parentfb18b96960692f760419324e18bd4eee61e31d3e (diff)
PNext<T>, structs with stype passed by refv0.5.0
Diffstat (limited to 'samples/select_physical_dev')
-rw-r--r--samples/select_physical_dev/Program.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/samples/select_physical_dev/Program.cs b/samples/select_physical_dev/Program.cs
index e20193b..59ab23e 100644
--- a/samples/select_physical_dev/Program.cs
+++ b/samples/select_physical_dev/Program.cs
@@ -8,12 +8,16 @@ namespace tests
{
class Program
{
-
+ delegate void del(IntPtr phy, ref VkPhysicalDeviceFeatures2 vdf);
+ delegate void del2(IntPtr phy, IntPtr vdf);
static void Main(string[] args)
{
VkInstance inst;
- using (VkApplicationInfo ai = new VkApplicationInfo ()) {
+ using (VkApplicationInfo ai = new VkApplicationInfo (
+ new Vulkan.Version(1,2,0),
+ new Vulkan.Version(1,2,0),
+ new Vulkan.Version(1,3,0))) {
using (VkInstanceCreateInfo ci = new VkInstanceCreateInfo {pApplicationInfo = ai}){
CheckResult (vkCreateInstance (ci, IntPtr.Zero, out inst));
}