Use 1.0 in ray tracing extension except for get_properties helper function
This commit is contained in:
parent
ff44b2cb16
commit
658743f59b
|
@ -2,7 +2,7 @@
|
||||||
use prelude::*;
|
use prelude::*;
|
||||||
use std::ffi::CStr;
|
use std::ffi::CStr;
|
||||||
use std::mem;
|
use std::mem;
|
||||||
use version::{DeviceV1_1, InstanceV1_1};
|
use version::{DeviceV1_0, InstanceV1_0, InstanceV1_1};
|
||||||
use vk;
|
use vk;
|
||||||
use RawPtr;
|
use RawPtr;
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ pub struct RayTracing {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl 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 {
|
let ray_tracing_fn = vk::NvRayTracingFn::load(|name| unsafe {
|
||||||
mem::transmute(instance.get_device_proc_addr(device.handle(), name.as_ptr()))
|
mem::transmute(instance.get_device_proc_addr(device.handle(), name.as_ptr()))
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue