mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-24 00:11:11 +01:00
Make compile_fxc accept full_stage: &CStr
This commit is contained in:
1 parent
fe72235a7e
commit
1ced6c6165
2 files changed
+2
-1
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user