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

Support POLYGON_MODE_LINE and POLYGON_MODE_POINT for GL #3762

Closed
LucaCiucci opened this issue May 9, 2023 · 1 comment
Closed

Support POLYGON_MODE_LINE and POLYGON_MODE_POINT for GL #3762

LucaCiucci opened this issue May 9, 2023 · 1 comment
Labels
api: gles Issues with GLES or WebGL help required We need community help to make this happen. type: enhancement New feature or request

Comments

@LucaCiucci
Copy link

Is your feature request related to a problem? Please describe.
I'm trying to use wgpu in a tauri application (compiling for wasm32), I need to draw some lines and points so I tried to request Features::POLYGON_MODE_LINE and Features::POLYGON_MODE_POINT using a GL backend, but the Adapter::request_device function returns an error if these features are requested.

Describe the solution you'd like
Support these two polygon modes for the GL backend.

Describe alternatives you've considered
Use PrimitiveTopology::LineList or PrimitiveTopology::PointList, but POLYGON_MODE_* could simplify the usage in some cases, for example when switching the representation of a mesh to wireframe or points.

Additional context
None.

@teoxoy teoxoy added type: enhancement New feature or request help required We need community help to make this happen. api: gles Issues with GLES or WebGL labels May 10, 2023
@cwfitzgerald
Copy link
Member

glPolygonMode seems to be completely unsupported on GLES outside of GL_NV_polygon_mode which has basically zero support, so this is unfortunately not really feasible to support

@cwfitzgerald cwfitzgerald closed this as not planned Won't fix, can't repro, duplicate, stale May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: gles Issues with GLES or WebGL help required We need community help to make this happen. type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants