Skip to content

Commit

Permalink
Use 1.0 in ray tracing extension except for get_properties helper fun…
Browse files Browse the repository at this point in the history
…ction
  • Loading branch information
gwihlidal committed Feb 14, 2019
1 parent ff44b2c commit 658743f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ash/src/extensions/nv/ray_tracing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -13,7 +13,7 @@ pub struct RayTracing {
}

impl RayTracing {
pub fn new<I: InstanceV1_1, D: DeviceV1_1>(instance: &I, device: &D) -> RayTracing {
pub fn new<I: InstanceV1_0, D: DeviceV1_0>(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()))
});
Expand Down

0 comments on commit 658743f

Please sign in to comment.