Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
atlv24 committed Dec 2, 2024
1 parent 2f2d5da commit a299782
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
1 change: 0 additions & 1 deletion examples/src/ray_traced_triangle/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ impl crate::framework::Example for Example {
fn required_features() -> wgpu::Features {
wgpu::Features::EXPERIMENTAL_RAY_TRACING_ACCELERATION_STRUCTURE
| wgpu::Features::EXPERIMENTAL_RAY_QUERY
| wgpu::Features::TEXTURE_ADAPTER_SPECIFIC_FORMAT_FEATURES
}

fn required_limits() -> wgpu::Limits {
Expand Down
2 changes: 1 addition & 1 deletion player/tests/data/zero-init-texture-binding.ron
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(
features: ["TEXTURE_ADAPTER_SPECIFIC_FORMAT_FEATURES"],
features: [],
expectations: [
(
name: "Sampled Texture",
Expand Down
5 changes: 1 addition & 4 deletions tests/tests/bgra8unorm_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ static BGRA8_UNORM_STORAGE: GpuTestConfiguration = GpuTestConfiguration::new()
max_storage_textures_per_shader_stage: 1,
..Default::default()
})
.features(
wgpu::Features::BGRA8UNORM_STORAGE
| wgpu::Features::TEXTURE_ADAPTER_SPECIFIC_FORMAT_FEATURES,
),
.features(wgpu::Features::BGRA8UNORM_STORAGE),
)
.run_async(|ctx| async move {
let device = &ctx.device;
Expand Down
4 changes: 4 additions & 0 deletions wgpu-types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3533,6 +3533,10 @@ impl TextureFormat {

flags.set(TextureFormatFeatureFlags::FILTERABLE, is_filterable);
flags.set(TextureFormatFeatureFlags::BLENDABLE, is_blendable);
flags.set(
TextureFormatFeatureFlags::STORAGE_WRITE_ONLY,
allowed_usages.contains(TextureUsages::STORAGE_BINDING),
);

TextureFormatFeatures {
allowed_usages,
Expand Down

0 comments on commit a299782

Please sign in to comment.