Shaders: graster-nodes no-std fixups (#2984)

* wgpu-executor: remove useless features

* wgpu-executor: cleanup copy-pasted code

* gcore-shaders: no_std fixups
This commit is contained in:
Firestar99
2025-08-06 16:10:08 +02:00
committed by GitHub
parent 1742e6000a
commit caa228a1ec
13 changed files with 84 additions and 129 deletions

View File

@@ -32,15 +32,10 @@ impl Context {
let (device, queue) = adapter
.request_device(&wgpu::DeviceDescriptor {
label: None,
// #[cfg(not(feature = "passthrough"))]
#[cfg(target_family = "wasm")]
required_features: wgpu::Features::empty(),
#[cfg(not(target_family = "wasm"))]
required_features: wgpu::Features::PUSH_CONSTANTS,
// Currently disabled because not all backend support passthrough.
// TODO: reenable only when vulkan adapter is available
// #[cfg(feature = "passthrough")]
// required_features: wgpu::Features::SPIRV_SHADER_PASSTHROUGH,
required_limits,
memory_hints: Default::default(),
trace: wgpu::Trace::Off,