Support POLYGON_MODE_LINE
and POLYGON_MODE_POINT
for GL
#3762
Labels
api: gles
Issues with GLES or WebGL
help required
We need community help to make this happen.
type: enhancement
New feature or request
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 requestFeatures::POLYGON_MODE_LINE
andFeatures::POLYGON_MODE_POINT
using a GL backend, but theAdapter::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
orPrimitiveTopology::PointList
, butPOLYGON_MODE_*
could simplify the usage in some cases, for example when switching the representation of a mesh to wireframe or points.Additional context
None.
The text was updated successfully, but these errors were encountered: