Skip to content

Commit

Permalink
[WebGPU] topologyType returns wrong result for WGPUPrimitiveTopology_…
Browse files Browse the repository at this point in the history
…LineList

https://bugs.webkit.org/show_bug.cgi?id=263470>
<radar://117278821>

Reviewed by Tadeu Zagallo.

Looks like a typo implementing the switch statement, correct the return
result for line list.

* Source/WebGPU/WebGPU/RenderPipeline.mm:
(WebGPU::topologyType):

Canonical link: https://commits.webkit.org/269657@main
  • Loading branch information
mwyrzykowski committed Oct 23, 2023
1 parent cd905f2 commit 90dd116
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/WebGPU/WebGPU/RenderPipeline.mm
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ static MTLPrimitiveTopologyClass topologyType(WGPUPrimitiveTopology topology)
case WGPUPrimitiveTopology_PointList:
return MTLPrimitiveTopologyClassPoint;
case WGPUPrimitiveTopology_LineStrip:
case WGPUPrimitiveTopology_LineList:
return MTLPrimitiveTopologyClassLine;
case WGPUPrimitiveTopology_TriangleList:
case WGPUPrimitiveTopology_LineList:
case WGPUPrimitiveTopology_TriangleStrip:
return MTLPrimitiveTopologyClassTriangle;
case WGPUPrimitiveTopology_Force32:
Expand Down

0 comments on commit 90dd116

Please sign in to comment.