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

Move OpenGL device implementation into separate directory #341

Merged
merged 2 commits into from
Sep 1, 2014

Conversation

brendanzab
Copy link
Contributor

This will be converted into a crate once associated items are added and used in the Device trait. See rust-lang/rfcs#195.

The generated gl bindings have been moved to a separate crate. This fixes the private export warning, speeds up incremental build time, and allows folks to use GlDevice::with_gl better.

I also marked GlDevice::with_gl as unsafe because it can potentially mess with the state of the OpenGL context.

This will be converted into a crate once associated items are added and used in the `Device` trait. See rust-lang/rfcs#195
@brendanzab
Copy link
Contributor Author

Just a sec - need to fix a warning.

@kvark
Copy link
Member

kvark commented Sep 1, 2014

Sweet!

kvark added a commit that referenced this pull request Sep 1, 2014
Move OpenGL device implementation into separate directory
@kvark kvark merged commit 2066c4b into gfx-rs:master Sep 1, 2014
@brendanzab brendanzab deleted the gl_device branch September 1, 2014 18:19
adamnemecek pushed a commit to adamnemecek/gfx that referenced this pull request Apr 1, 2021
341: Track and destroy samplers r=kvark a=yanchith

This PR adds `ResourceId::Sampler`, `NativeResource::Sampler` and
`TrackerSet::samplers`. Samplers are (similarly to bind groups)
created with their own life guard and a device id to keep the device
ref count alive. Also added are `extern wgpu_sampler_destroy` and
`sampler_destroy`.

The rest of the implementation was guided by compiler errors, so there
is a good chance I didn't find something crucial that also needed
doing. Please check :)

I also imagine we might want to add the `Drop` impl for sampler in wgpu-rs.

Fixes: gfx-rs#231 

Co-authored-by: yanchith <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants