File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ typedef enum WGPUNativeFeature {
2727 WGPUNativeFeature_TextureBindingArray = 0x00030006 ,
2828 WGPUNativeFeature_SampledTextureAndStorageBufferArrayNonUniformIndexing = 0x00030007 ,
2929 WGPUNativeFeature_PipelineStatisticsQuery = 0x00030008 ,
30+ WGPUNativeFeature_StorageResourceBindingArray = 0x00030009 ,
31+ WGPUNativeFeature_PartiallyBoundBindingArray = 0x0003000A ,
3032 WGPUNativeFeature_Force32 = 0x7FFFFFFF
3133} WGPUNativeFeature ;
3234
Original file line number Diff line number Diff line change @@ -1109,6 +1109,12 @@ pub fn features_to_native(features: wgt::Features) -> Vec<native::WGPUFeatureNam
11091109 if features. contains ( wgt:: Features :: PIPELINE_STATISTICS_QUERY ) {
11101110 temp. push ( native:: WGPUNativeFeature_PipelineStatisticsQuery ) ;
11111111 }
1112+ if features. contains ( wgt:: Features :: STORAGE_RESOURCE_BINDING_ARRAY ) {
1113+ temp. push ( native:: WGPUNativeFeature_StorageResourceBindingArray ) ;
1114+ }
1115+ if features. contains ( wgt:: Features :: PARTIALLY_BOUND_BINDING_ARRAY ) {
1116+ temp. push ( native:: WGPUNativeFeature_PartiallyBoundBindingArray ) ;
1117+ }
11121118
11131119 temp
11141120}
@@ -1140,6 +1146,8 @@ pub fn map_feature(feature: native::WGPUFeatureName) -> Option<wgt::Features> {
11401146 native:: WGPUNativeFeature_TextureBindingArray => Some ( Features :: TEXTURE_BINDING_ARRAY ) ,
11411147 native:: WGPUNativeFeature_SampledTextureAndStorageBufferArrayNonUniformIndexing => Some ( Features :: SAMPLED_TEXTURE_AND_STORAGE_BUFFER_ARRAY_NON_UNIFORM_INDEXING ) ,
11421148 native:: WGPUNativeFeature_PipelineStatisticsQuery => Some ( Features :: PIPELINE_STATISTICS_QUERY ) ,
1149+ native:: WGPUNativeFeature_StorageResourceBindingArray => Some ( Features :: STORAGE_RESOURCE_BINDING_ARRAY ) ,
1150+ native:: WGPUNativeFeature_PartiallyBoundBindingArray => Some ( Features :: PARTIALLY_BOUND_BINDING_ARRAY ) ,
11431151 // fallback, probably not available in wgpu-core
11441152 _ => None ,
11451153 }
You can’t perform that action at this time.
0 commit comments