-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[Merged by Bors] - Expose command encoders #3271
Conversation
Maybe we should reexport
|
Its worth considering. But I do like having full control over our namespace. We already alias a number of wgpu types with our own (Texture, Buffer, RenderPiplineDescriptor, etc). Exporting wgpu wholesale makes talking about these types more difficult and introduces new (and possibly confusing and hard to debug) error cases for users of ide tooling like rust-analyzer. For now, I'd prefer to be selective here. If we miss something, users always have the escape hatch of pulling in wgpu directly. We should just do a thorough pass over the types wgpu exports and add everything we (I) missed. From there gaps should be few and far between. |
Definitely open to reconsidering how / where we export these types. |
bors r+ |
(merging because this is useful now ... feel free to keep discussing) |
# Objective I'm exposing these command encoders so bevy user's can create their own command encoders. This is useful when you want to copy a texture to a texture or create a compute pass manually for example. Note: I formatted this file which might of changed the order of some exports. ## Solution Just re-export `CommandEncoder` and `CommandEncoderDescriptor`.
Pull request successfully merged into main. Build succeeded:
|
Objective
I'm exposing these command encoders so bevy user's can create their own command encoders. This is useful when you want to copy a texture to a texture or create a compute pass manually for example.
Note: I formatted this file which might of changed the order of some exports.
Solution
Just re-export
CommandEncoder
andCommandEncoderDescriptor
.