Skip to content

Commit

Permalink
Fix incorrect usage of &str.to_ptr()
Browse files Browse the repository at this point in the history
  • Loading branch information
guusw committed May 27, 2024
1 parent 484503a commit 1faa44c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wgpu-hal/src/dx12/shader_compilation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ pub(super) fn compile_fxc(
{
compile_flags |= d3dcompiler::D3DCOMPILE_DEBUG | d3dcompiler::D3DCOMPILE_SKIP_OPTIMIZATION;
}

let source_name = std::ffi::CString::new(source_name).unwrap();

let mut error = d3d12::Blob::null();
let hr = unsafe {
profiling::scope!("d3dcompiler::D3DCompile");
Expand Down

0 comments on commit 1faa44c

Please sign in to comment.