Skip to content

Commit

Permalink
Make compile_fxc accept full_stage: &CStr
Browse files Browse the repository at this point in the history
  • Loading branch information
workingjubilee committed Jun 18, 2024
1 parent 975ccbd commit 44edc73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions wgpu-hal/src/dx12/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ impl super::Device {
dxc_container,
)
} else {
let full_stage = CStr::from_bytes_with_nul(full_stage.as_bytes()).unwrap();
shader_compilation::compile_fxc(
self,
&source,
Expand Down
2 changes: 1 addition & 1 deletion wgpu-hal/src/dx12/shader_compilation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub(super) fn compile_fxc(
source_name: Option<&CStr>,
raw_ep: &std::ffi::CString,
stage_bit: wgt::ShaderStages,
full_stage: String,
full_stage: &CStr,
) -> (
Result<super::CompiledShader, crate::PipelineError>,
log::Level,
Expand Down

0 comments on commit 44edc73

Please sign in to comment.