mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-22 14:55:05 +00:00
Make compile_fxc accept full_stage: &CStr
This commit is contained in:
parent
fe72235a7e
commit
1ced6c6165
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user