fix requested gpu features
This commit is contained in:
parent
75f958348c
commit
e2fdf9442c
@ -2,10 +2,11 @@ use crate::instruction::TimedInstruction;
|
|||||||
use crate::run::RunInstruction;
|
use crate::run::RunInstruction;
|
||||||
|
|
||||||
fn optional_features()->wgpu::Features{
|
fn optional_features()->wgpu::Features{
|
||||||
wgpu::Features::empty()
|
wgpu::Features::TEXTURE_COMPRESSION_ASTC
|
||||||
|
|wgpu::Features::TEXTURE_COMPRESSION_ETC2
|
||||||
}
|
}
|
||||||
fn required_features()->wgpu::Features{
|
fn required_features()->wgpu::Features{
|
||||||
wgpu::Features::empty()
|
wgpu::Features::TEXTURE_COMPRESSION_BC
|
||||||
}
|
}
|
||||||
fn required_downlevel_capabilities()->wgpu::DownlevelCapabilities{
|
fn required_downlevel_capabilities()->wgpu::DownlevelCapabilities{
|
||||||
wgpu::DownlevelCapabilities{
|
wgpu::DownlevelCapabilities{
|
||||||
@ -15,7 +16,7 @@ fn required_downlevel_capabilities() -> wgpu::DownlevelCapabilities {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
pub fn required_limits()->wgpu::Limits{
|
pub fn required_limits()->wgpu::Limits{
|
||||||
wgpu::Limits::downlevel_webgl2_defaults() // These downlevel limits will allow the code to run on all possible hardware
|
wgpu::Limits::default()
|
||||||
}
|
}
|
||||||
|
|
||||||
struct SetupContextPartial1{
|
struct SetupContextPartial1{
|
||||||
|
Loading…
Reference in New Issue
Block a user