wgpu-native icon indicating copy to clipboard operation
wgpu-native copied to clipboard

Add support for WGPU native features

Open MineGame159 opened this issue 3 years ago • 4 comments

As the title says it would be good to add support for the features / extensions WGPU adds on top of WebGPU for example push constants. It looks like only TEXTURE_ADAPTER_SPECIFIC_FORMAT_FEATURES has been mapped.

MineGame159 avatar Apr 26 '22 14:04 MineGame159

Update: we now have:

WGPUNativeFeature_PushConstants = 0x60000001,
WGPUNativeFeature_TextureAdapterSpecificFormatFeatures = 0x60000002,
WGPUNativeFeature_MultiDrawIndirect = 0x60000003,
WGPUNativeFeature_MultiDrawIndirectCount = 0x60000004,
WGPUNativeFeature_VertexWritableStorage = 0x60000005,

But that does not seem to be the complete set of native features as specified on https://docs.rs/wgpu/latest/wgpu/struct.Features.html

almarklein avatar Jul 17 '23 10:07 almarklein

I would like to work on this. Is there a specific convention or order for each native feature?

davnotdev avatar Apr 25 '24 01:04 davnotdev

I'd say follow wgpu-core in case of doubt.

almarklein avatar Apr 25 '24 11:04 almarklein

I believe the current order doesn't match wgpu-core.

davnotdev avatar Apr 25 '24 18:04 davnotdev