Make compile_fxc accept full_stage: &CStr

This commit is contained in:
Jubilee Young 2024-06-17 17:43:41 -07:00 committed by Teodor Tanasoaia
parent fe72235a7e
commit 1ced6c6165
2 changed files with 2 additions and 1 deletions

View File

@ -273,6 +273,7 @@ impl super::Device {
dxc_container,
)
} else {
let full_stage = ffi::CStr::from_bytes_with_nul(full_stage.as_bytes()).unwrap();
shader_compilation::compile_fxc(
self,
&source,

View File

@ -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,