bevy/crates/bevy_render
Brian Reavis 5dcfa52297
Expose TextureFormatFeatureFlags, TextureFormatFeatures from wgpu (#18721)
# Objective

This PR exposes the wgpu types necessary to use the result of
`RenderAdapter::get_texture_format_features`:

```rust
use bevy::render::render_resource::TextureFormatFeatureFlags;
// ^ now available

let adapter = world.resource::<RenderAdapter>();
let flags = adapter.get_texture_format_features(TextureFormat::R32Float).flags;
let filtering = flags.contains(TextureFormatFeatureFlags::FILTERABLE);
```

## Solution

- Expose `TextureFormatFeatureFlags`, `TextureFormatFeatures` like other
wgpu types in bevy_render
2025-04-05 03:44:37 +00:00
..
macros Fix AsBindGroup hygenic issues with storage texture. (#18640) 2025-03-31 18:06:33 +00:00
src Expose TextureFormatFeatureFlags, TextureFormatFeatures from wgpu (#18721) 2025-04-05 03:44:37 +00:00
Cargo.toml Tracy GPU support (#18490) 2025-03-28 04:57:01 +00:00
LICENSE-APACHE Cleanup publish process (#17728) 2025-02-09 17:46:19 +00:00
LICENSE-MIT Cleanup publish process (#17728) 2025-02-09 17:46:19 +00:00
README.md

Bevy Render

License Crates.io Downloads Docs Discord