[Webkit-unassigned] [Bug 246335] New: 'flat' vertex shader output is extremely slow with 'WebGL via Metal'

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Oct 11 06:01:12 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=246335

            Bug ID: 246335
           Summary: 'flat' vertex shader output is extremely slow with
                    'WebGL via Metal'
           Product: WebKit
           Version: Safari 15
          Hardware: Unspecified
                OS: iOS 15
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebGL
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: msokalski at novomatic-tech.com
                CC: dino at apple.com, kbr at google.com, kkinnunen at apple.com

Declaring vertex shader output with 'flat' specifier makes drawing very slow.
It is not suffering from it when drawing POINTS primitive.
Also, problem does not occur when WebGL via Metal is disabled.

in vec2 clip_space_pos;
in vec4 just_color;

flat out vec4 flat_color;

void main()
{
  gl_Position = vec4(clip_space_pos,0.0,1.0);
  flat_color = just_color * clip_space_pos.x;
}

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20221011/dde87141/attachment-0001.htm>


More information about the webkit-unassigned mailing list