-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose TextureViewArray, SamplerArray and associated extensions to the C API #268
Conversation
my bad, left the define WGPU_TARGET_WINDOWS 1 in examples/triangle/main.c. Should be fixed now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for contributing!
I have added some comments that needs to be addressed in order to get this merged.
Ping from triage |
I have rebased this branch & and added a new example |
I've been using the wgpu-native bindings from C# and realised that one of the features I required was missing, namely texture view arrays/sampler arrays as specified here (https://wgpu.rs/doc/wgpu/enum.BindingResource.html), so I implemented the features and created this pull request. It also exposes TEXTURE_BINDING_ARRAY and SAMPLED_TEXTURE_AND_STORAGE_BUFFER_ARRAY_NON_UNIFORM_INDEXING as features to the C API via wgpu.h
I'm not a rust developer and have never written anything in rust before. This is also my first pull request so any feedback is appreciated!