From 658743f59b9b0d7af7372a02887d4a142aa26a48 Mon Sep 17 00:00:00 2001 From: Graham Wihlidal Date: Thu, 14 Feb 2019 12:14:53 +0100 Subject: [PATCH] Use 1.0 in ray tracing extension except for get_properties helper function --- ash/src/extensions/nv/ray_tracing.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ash/src/extensions/nv/ray_tracing.rs b/ash/src/extensions/nv/ray_tracing.rs index f6fb8d1..013bd85 100644 --- a/ash/src/extensions/nv/ray_tracing.rs +++ b/ash/src/extensions/nv/ray_tracing.rs @@ -2,7 +2,7 @@ use prelude::*; use std::ffi::CStr; use std::mem; -use version::{DeviceV1_1, InstanceV1_1}; +use version::{DeviceV1_0, InstanceV1_0, InstanceV1_1}; use vk; use RawPtr; @@ -13,7 +13,7 @@ pub struct RayTracing { } impl RayTracing { - pub fn new(instance: &I, device: &D) -> RayTracing { + pub fn new(instance: &I, device: &D) -> RayTracing { let ray_tracing_fn = vk::NvRayTracingFn::load(|name| unsafe { mem::transmute(instance.get_device_proc_addr(device.handle(), name.as_ptr())) });