Skip to content
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

BlendDescriptor, BlendFactor and BlendOperation are unavailable from wgpu. #63

Closed
seivan opened this issue Feb 14, 2019 · 3 comments
Closed
Labels
type: question Further information is requested

Comments

@seivan
Copy link
Contributor

seivan commented Feb 14, 2019

Had to import wgpu_native for them.
This removed wgpu_native from the examples and the cargo file.

What's the idea between wgpu_native and wgpu - are you supposed to refer to both when working with wgpu in a Rust project, or should wgpu-rs alone suffice?

@grovesNL
Copy link
Collaborator

grovesNL commented Feb 15, 2019

wgpu_native contains the raw C externs (to match the WebGPU IDL), while wgpu is a more Rust-friendly API that wraps that C API.

I don't think it's intentional for them to be unavailable in wgpu if they need to be used anywhere in wgpu's API. In that case they should be added to the pub use section of wpgu: https://github.com/gfx-rs/wgpu/blob/master/wgpu-rs/src/lib.rs#L14

@kvark
Copy link
Member

kvark commented Feb 15, 2019

These structures are now exposed as of #62
The idea behind wgpu-rs is that the users would only need it and nothing else.

@kvark kvark closed this as completed Feb 15, 2019
@kvark kvark added the type: question Further information is requested label Feb 15, 2019
@kvark
Copy link
Member

kvark commented Feb 15, 2019

@seivan note: I closed the issue because I consider it resolved. Please feel free to continue the discussion, however note that we also have a dedicated chat room to talk: https://gitter.im/gfx-rs/webgpu

Patryk27 pushed a commit to Patryk27/wgpu that referenced this issue Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants