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

Add support baseVertex for GPURenderPassEncoder #6751

Open
AlexAPPi opened this issue Jun 25, 2024 · 4 comments
Open

Add support baseVertex for GPURenderPassEncoder #6751

AlexAPPi opened this issue Jun 25, 2024 · 4 comments
Assignees
Labels
area: graphics Graphics related issue enhancement

Comments

@AlexAPPi
Copy link

AlexAPPi commented Jun 25, 2024

Hi!

It would be nice to have baseVertex support for the mesh.

https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndexed

passEncoder.drawIndexed(primitive.count, numInstances, primitive.base, 0, 0);

this.primitive = [{

@mvaligursky mvaligursky added area: graphics Graphics related issue enhancement labels Jun 26, 2024
@mvaligursky mvaligursky self-assigned this Jun 26, 2024
@mvaligursky
Copy link
Contributor

mvaligursky commented Jun 27, 2024

WebGL 2 adds support for this using WEBGL_draw_instanced_base_vertex_base_instance but its support seems to be very low (less than 1%) here https://web3dsurvey.com/webgl2

@AlexAPPi
Copy link
Author

AlexAPPi commented Jun 27, 2024

WebGL 2 adds support for this using WEBGL_draw_instanced_base_vertex_base_instance but its support seems to be very low (less than 1%) here https://web3dsurvey.com/webgl2

If you focus on chromium-like browsers, they have support; this greatly speeds up the work with indexes, for example for the LOD system.

@mvaligursky
Copy link
Contributor

I see this:

Screenshot 2024-06-27 at 12 31 56

My MacOS on latest Chrome does not expose this extension.

What data do you see?

@AlexAPPi
Copy link
Author

Sorry, I'm talking about webGPU support.

https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/drawIndexed#browser_compatibility

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: graphics Graphics related issue enhancement
Projects
None yet
Development

No branches or pull requests

2 participants