You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
iflet wgc::pipeline::CreateRenderPipelineError::Internal{ stage,ref error } = cause {
log::error!("Shader translation error for stage {:?}: {}", stage, error);
log::error!("Please report it to https://github.com/gfx-rs/naga");
}
self.handle_error(
&device_data.error_sink,
cause,
LABEL,
desc.label,
"Device::create_render_pipeline",
);
Platform
I tried this with wgpu 0.15 and the latest master (b31069f) which didn't change much since the last release.
I did attempt to reproduce this locally with Wine but wasn't able to.
So the only place I could reproduce this is on an actual Windows OS, Windows 10 in my case.
The text was updated successfully, but these errors were encountered:
daxpedda
changed the title
DXC compiler fails if using a custom path
DXC compiler fails with custom paths
Jan 28, 2023
Strange, it seems to be finding the DLLs or it would be outputting a warning.
edit: bad reading skills Does it work if you put the DLLs into the folder and just pass in None for both paths?
My first thought was maybe dxcompiler is failing to properly validate the shaders due to not being able to find dxil.dll (when you call compile dxcompiler implicitly validates the shader, but maybe it's looking for dxil.dll in the local scope), but that output a different error on my machine. It does currently validate that dxil.dll is available where the path points to.
Another potential issue could be that your drivers and/or GPU don't support shadermodel 6.0, and checking for that is something I overlooked in the DXC pr. (edit: But if it works without custom paths, then it should be fine?)
I'll try to reproduce, and then see if disabling compile time validation (there's a DXC flag for it) and using explicit validation fixes it.
Description
When using a custom path in
wgpu::Dx12Compiler::Dxc
pipeline creation fails.When using no custom path, everything works as expected.
I'm still in the process of debugging this and finding out the exact cause, unfortunately I don't have access to a Windows PC right now.
Repro steps
Any example should work, I tried the
hello-triangle
example, change theInstance
creation to:Expected vs observed behavior
This will fail with:
Which points to:
wgpu/wgpu/src/backend/direct.rs
Lines 1181 to 1191 in b31069f
Platform
I tried this with wgpu 0.15 and the latest master (b31069f) which didn't change much since the last release.
I did attempt to reproduce this locally with Wine but wasn't able to.
So the only place I could reproduce this is on an actual Windows OS, Windows 10 in my case.
The text was updated successfully, but these errors were encountered: