Skip to content

Commit

Permalink
fix fix fic
Browse files Browse the repository at this point in the history
  • Loading branch information
atlv24 committed Jan 11, 2025
1 parent b6b6857 commit 4038041
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions naga/src/back/glsl/features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ use super::{BackendResult, Error, Version, Writer};
use crate::{
back::glsl::{Options, WriterFlags},
AddressSpace, Binding, Expression, Handle, ImageClass, ImageDimension, Interpolation,
SampleLevel, Sampling, Scalar, ScalarKind, ShaderStage, StorageAccess, StorageFormat, Type,
TypeInner,
SampleLevel, Sampling, Scalar, ScalarKind, ShaderStage, StorageFormat, Type, TypeInner,
};
use std::fmt::Write;

Expand Down Expand Up @@ -391,7 +390,7 @@ impl<W> Writer<'_, W> {
self.features.request(Features::MULTISAMPLED_TEXTURE_ARRAYS);
}
}
ImageClass::Storage { format, access } => match format {
ImageClass::Storage { format, .. } => match format {
StorageFormat::R8Unorm
| StorageFormat::R8Snorm
| StorageFormat::R8Uint
Expand Down Expand Up @@ -558,11 +557,11 @@ impl<W> Writer<'_, W> {
for blocks in module
.functions
.iter()
.map(|(h, f)| &f.body)
.map(|(_, f)| &f.body)
.chain(std::iter::once(&entry_point.function.body))
{
for (stmt, _) in blocks.span_iter() {
match stmt {
match *stmt {
crate::Statement::ImageAtomic { .. } => {
features.request(Features::TEXTURE_ATOMICS)
}
Expand Down

0 comments on commit 4038041

Please sign in to comment.