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

OpenGL ES3 backend #1510

Merged
merged 33 commits into from
Jun 30, 2021
Merged

OpenGL ES3 backend #1510

merged 33 commits into from
Jun 30, 2021

Conversation

kvark
Copy link
Member

@kvark kvark commented Jun 18, 2021

Connections
Follow-up to #1471

Description
The new wgpu-hal backend for GLES3 and WebGL2
Edit: WebGL2 is not included here

Testing
Examples!

Current status:

  • all examples work, minus the next issue
  • "mipmap" is buggy because we don't have a good way to do mipmap/layer selection
  • automated testing?

@kvark kvark force-pushed the gles branch 2 times, most recently from 55af9dd to 8ba2771 Compare June 24, 2021 05:23
wgpu-hal/src/gles/device.rs Outdated Show resolved Hide resolved
wgpu-hal/src/gles/device.rs Outdated Show resolved Hide resolved
wgpu-hal/src/gles/egl.rs Show resolved Hide resolved
dst_target,
copy,
} => {
gl.bind_buffer(src_target, Some(src));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll probably need it, still. But at this point I'm basically re-implementing the backend, and I'm trying to focus on GLES3 first. After it lands, we'll follow up with fixes needed for WebGL2 specifically.

@kvark kvark force-pushed the gles branch 2 times, most recently from c86926f to af42298 Compare June 26, 2021 06:19
@kvark kvark marked this pull request as ready for review June 26, 2021 16:34
@kvark kvark changed the title [early] OpenGL ES3 backend OpenGL ES3 backend Jun 26, 2021
Copy link
Contributor

@Gordon-F Gordon-F left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kvark Awesome work, thank you!

wgpu-core/src/hub.rs Show resolved Hide resolved
wgpu-core/src/lib.rs Show resolved Hide resolved
wgpu-hal/src/gles/adapter.rs Show resolved Hide resolved
wgpu-hal/src/gles/queue.rs Show resolved Hide resolved
bors bot added a commit that referenced this pull request Jun 27, 2021
1558: Update naga to 57b3256 r=kvark a=kvark

**Connections**
Needed for #1510
Picks up gfx-rs/naga#1039

**Description**
Updates Naga to latest on Git. Refactors the use of `ResourceBinding` and Metal's binding map.

**Testing**
Examples.


Co-authored-by: Dzmitry Malyshau <[email protected]>
bors bot added a commit that referenced this pull request Jun 27, 2021
1558: Update naga to 57b3256 r=kvark a=kvark

**Connections**
Needed for #1510
Picks up gfx-rs/naga#1039 and gfx-rs/naga#916

**Description**
Updates Naga to latest on Git. Refactors the use of `ResourceBinding` and Metal's binding map.
Also enables safe bound check handling on Vulkan (`Restrict` policy, cc @jimblandy).

**Testing**
Examples.


Co-authored-by: Dzmitry Malyshau <[email protected]>
bors bot added a commit that referenced this pull request Jun 27, 2021
1558: Update naga to 57b3256 r=kvark a=kvark

**Connections**
Needed for #1510
Picks up gfx-rs/naga#1039 and gfx-rs/naga#916

**Description**
Updates Naga to latest on Git. Refactors the use of `ResourceBinding` and Metal's binding map.
Also enables safe bound check handling on Vulkan (`Restrict` policy, cc @jimblandy).

**Testing**
Examples.


Co-authored-by: Dzmitry Malyshau <[email protected]>
Copy link
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is amazing work some thoughts/comments but otherwise going to leave this up for testing.

wgpu-hal/src/gles/adapter.rs Outdated Show resolved Hide resolved
wgpu-hal/src/gles/adapter.rs Show resolved Hide resolved
wgpu-hal/src/gles/command.rs Show resolved Hide resolved
wgpu-hal/src/gles/command.rs Show resolved Hide resolved
wgpu-types/src/lib.rs Show resolved Hide resolved
@kvark
Copy link
Member Author

kvark commented Jun 30, 2021

Filed #1574 for follow-up considerations.
bors r=cwfitzgerald,Gordon-F,kvark

@bors
Copy link
Contributor

bors bot commented Jun 30, 2021

@bors bors bot merged commit c9ab6d0 into gfx-rs:master Jun 30, 2021
@kvark kvark deleted the gles branch June 30, 2021 16:13
@kvark kvark mentioned this pull request Jul 8, 2021
Patryk27 pushed a commit to Patryk27/wgpu that referenced this pull request Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants