File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,8 @@ pub enum Error {
107
107
InvalidGlobalVar ( crate :: Expression ) ,
108
108
#[ error( "invalid image/sampler expression {0:?}" ) ]
109
109
InvalidImageExpression ( crate :: Expression ) ,
110
+ #[ error( "image write without format is not currently supported. See https://github.com/gfx-rs/wgpu/issues/6797" ) ]
111
+ InvalidImageWriteType ,
110
112
#[ error( "invalid image base type {0:?}" ) ]
111
113
InvalidImageBaseType ( Handle < crate :: Type > ) ,
112
114
#[ error( "invalid image {0:?}" ) ]
Original file line number Diff line number Diff line change @@ -5635,7 +5635,7 @@ impl<I: Iterator<Item = u32>> Frontend<I> {
5635
5635
let is_depth = self . next ( ) ?;
5636
5636
let is_array = self . next ( ) ? != 0 ;
5637
5637
let is_msaa = self . next ( ) ? != 0 ;
5638
- let _is_sampled = self . next ( ) ?;
5638
+ let is_sampled = self . next ( ) ?;
5639
5639
let format = self . next ( ) ?;
5640
5640
5641
5641
let dim = map_image_dim ( dim) ?;
@@ -5670,6 +5670,8 @@ impl<I: Iterator<Item = u32>> Frontend<I> {
5670
5670
format : map_image_format ( format) ?,
5671
5671
access : crate :: StorageAccess :: default ( ) ,
5672
5672
}
5673
+ } else if is_sampled == 2 {
5674
+ return Err ( Error :: InvalidImageWriteType ) ;
5673
5675
} else {
5674
5676
crate :: ImageClass :: Sampled {
5675
5677
kind,
You can’t perform that action at this time.
0 commit comments