mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-25 17:01:15 +01:00
DXC on DX12 in CI (#4571)
This commit is contained in:
1 parent
a4b53169c6
commit
ca7ac86ccd
13 files changed
+59
-27
No files matched your search
@@ -17,7 +17,12 @@ pub struct GpuReport {
|
||||
|
||||
impl GpuReport {
|
||||
pub fn generate() -> Self {
|
||||
let instance = wgpu::Instance::new(wgpu::InstanceDescriptor::default());
|
||||
let instance = wgpu::Instance::new(wgpu::InstanceDescriptor {
|
||||
backends: wgpu::util::backend_bits_from_env().unwrap_or_default(),
|
||||
flags: wgpu::InstanceFlags::debugging().with_env(),
|
||||
dx12_shader_compiler: wgpu::util::dx12_shader_compiler_from_env().unwrap_or_default(),
|
||||
gles_minor_version: wgpu::util::gles_minor_version_from_env().unwrap_or_default(),
|
||||
});
|
||||
let adapters = instance.enumerate_adapters(wgpu::Backends::all());
|
||||
|
||||
let mut devices = Vec::with_capacity(adapters.len());
|
||||
|
||||
Reference in new issue
Block a user