aboutsummaryrefslogtreecommitdiffhomepage
path: root/level_zero
diff options
context:
space:
mode:
Diffstat (limited to 'level_zero')
-rw-r--r--level_zero/src/ze.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/level_zero/src/ze.rs b/level_zero/src/ze.rs
index 8e1e4e5..a4e1bcc 100644
--- a/level_zero/src/ze.rs
+++ b/level_zero/src/ze.rs
@@ -1,5 +1,4 @@
use crate::sys;
-use std::num::NonZeroUsize;
use std::{
ffi::{c_void, CStr},
fmt::{Debug, Display},
@@ -310,7 +309,7 @@ impl Module {
Self(x)
}
- pub fn new_spirv(d: &Device, bin: &[u8], opts: Option<&str>) -> Result<Self> {
+ pub fn new_spirv(d: &Device, bin: &[u8], opts: Option<&CStr>) -> Result<Self> {
Module::new(true, d, bin, opts)
}
@@ -318,7 +317,7 @@ impl Module {
Module::new(false, d, bin, None)
}
- fn new(spirv: bool, d: &Device, bin: &[u8], opts: Option<&str>) -> Result<Self> {
+ fn new(spirv: bool, d: &Device, bin: &[u8], opts: Option<&CStr>) -> Result<Self> {
let desc = sys::ze_module_desc_t {
version: sys::ze_module_desc_version_t::ZE_MODULE_DESC_VERSION_CURRENT,
format: if spirv {