@@ -1890,7 +1890,6 @@ impl Device {
1890
1890
dynamic_binding_info : & mut Vec < binding_model:: BindGroupDynamicBindingData > ,
1891
1891
late_buffer_binding_sizes : & mut FastHashMap < u32 , wgt:: BufferSize > ,
1892
1892
used : & mut BindGroupStates ,
1893
- limits : & wgt:: Limits ,
1894
1893
snatch_guard : & ' a SnatchGuard < ' a > ,
1895
1894
) -> Result < hal:: BufferBinding < ' a , dyn hal:: DynBuffer > , binding_model:: CreateBindGroupError >
1896
1895
{
@@ -1915,7 +1914,7 @@ impl Device {
1915
1914
wgt:: BufferBindingType :: Uniform => (
1916
1915
wgt:: BufferUsages :: UNIFORM ,
1917
1916
hal:: BufferUses :: UNIFORM ,
1918
- limits. max_uniform_buffer_binding_size ,
1917
+ self . limits . max_uniform_buffer_binding_size ,
1919
1918
) ,
1920
1919
wgt:: BufferBindingType :: Storage { read_only } => (
1921
1920
wgt:: BufferUsages :: STORAGE ,
@@ -1924,12 +1923,12 @@ impl Device {
1924
1923
} else {
1925
1924
hal:: BufferUses :: STORAGE_READ_WRITE
1926
1925
} ,
1927
- limits. max_storage_buffer_binding_size ,
1926
+ self . limits . max_storage_buffer_binding_size ,
1928
1927
) ,
1929
1928
} ;
1930
1929
1931
1930
let ( align, align_limit_name) =
1932
- binding_model:: buffer_binding_type_alignment ( limits, binding_ty) ;
1931
+ binding_model:: buffer_binding_type_alignment ( & self . limits , binding_ty) ;
1933
1932
if bb. offset % align as u64 != 0 {
1934
1933
return Err ( Error :: UnalignedBufferOffset (
1935
1934
bb. offset ,
@@ -2167,7 +2166,6 @@ impl Device {
2167
2166
& mut dynamic_binding_info,
2168
2167
& mut late_buffer_binding_sizes,
2169
2168
& mut used,
2170
- & self . limits ,
2171
2169
& snatch_guard,
2172
2170
) ?;
2173
2171
@@ -2189,7 +2187,6 @@ impl Device {
2189
2187
& mut dynamic_binding_info,
2190
2188
& mut late_buffer_binding_sizes,
2191
2189
& mut used,
2192
- & self . limits ,
2193
2190
& snatch_guard,
2194
2191
) ?;
2195
2192
hal_buffers. push ( bb) ;
@@ -3449,10 +3446,7 @@ impl Device {
3449
3446
Ok ( cache)
3450
3447
}
3451
3448
3452
- fn get_texture_format_features (
3453
- & self ,
3454
- format : TextureFormat ,
3455
- ) -> wgt:: TextureFormatFeatures {
3449
+ fn get_texture_format_features ( & self , format : TextureFormat ) -> wgt:: TextureFormatFeatures {
3456
3450
// Variant of adapter.get_texture_format_features that takes device features into account
3457
3451
use wgt:: TextureFormatFeatureFlags as tfsc;
3458
3452
let mut format_features = self . adapter . get_texture_format_features ( format) ;
0 commit comments