Fix mesh pipeline test on unsupported GPUs (#14)
This commit is contained in:
1 parent
d7823e8a38
commit
8013dd54cf
1 file changed
+6
@@ -902,6 +902,10 @@ mod tests {
|
|||||||
let Some(host) = host() else {
|
let Some(host) = host() else {
|
||||||
return; // no host GPU here
|
return; // no host GPU here
|
||||||
};
|
};
|
||||||
|
if !host.mesh_shaders() {
|
||||||
|
eprintln!("no host mesh shader support; skipped");
|
||||||
|
return;
|
||||||
|
}
|
||||||
let Some(dxc) = dxc() else {
|
let Some(dxc) = dxc() else {
|
||||||
eprintln!("no PC dxc.exe; skipped");
|
eprintln!("no PC dxc.exe; skipped");
|
||||||
return;
|
return;
|
||||||
@@ -911,6 +915,8 @@ mod tests {
|
|||||||
let ps = compile(&dxc, dir.path(), PS, "ps_6_5");
|
let ps = compile(&dxc, dir.path(), PS, "ps_6_5");
|
||||||
let (root, root_blob) = root_signature(&host.device, &[], &[], false).unwrap();
|
let (root, root_blob) = root_signature(&host.device, &[], &[], false).unwrap();
|
||||||
let mut g = GraphicsState::default();
|
let mut g = GraphicsState::default();
|
||||||
|
// This pipeline has only a color target, with no depth buffer.
|
||||||
|
g.depth.DepthEnable = false.into();
|
||||||
g.targets.NumRenderTargets = 1;
|
g.targets.NumRenderTargets = 1;
|
||||||
g.targets.RTFormats[0] = DXGI_FORMAT_R8G8B8A8_UNORM;
|
g.targets.RTFormats[0] = DXGI_FORMAT_R8G8B8A8_UNORM;
|
||||||
let name = super::super::library::name("mesh test", &root_blob, &[&ms, &ps], &g.describe());
|
let name = super::super::library::name("mesh test", &root_blob, &[&ms, &ps], &g.describe());
|
||||||
|
|||||||
Reference in new issue
Block a user