Skip to content

Commit 1ced6c6

Browse files
workingjubileeteoxoy
authored andcommitted
Make compile_fxc accept full_stage: &CStr
1 parent fe72235 commit 1ced6c6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

wgpu-hal/src/dx12/device.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ impl super::Device {
273273
dxc_container,
274274
)
275275
} else {
276+
let full_stage = ffi::CStr::from_bytes_with_nul(full_stage.as_bytes()).unwrap();
276277
shader_compilation::compile_fxc(
277278
self,
278279
&source,

wgpu-hal/src/dx12/shader_compilation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub(super) fn compile_fxc(
1818
source_name: Option<&CStr>,
1919
raw_ep: &std::ffi::CString,
2020
stage_bit: wgt::ShaderStages,
21-
full_stage: String,
21+
full_stage: &CStr,
2222
) -> (
2323
Result<super::CompiledShader, crate::PipelineError>,
2424
log::Level,

0 commit comments

Comments
 (0)