drawIndexedQuads: pass only required size of vertex buffer to shader

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Fixed
    • Priority: P4
    • internal
    • Affects Version/s: internal
    • Component/s: javafx
    • Environment:

      fx-sandbox:metal branch

    • generic
    • os_x

      In MetalShader.m :: drawIndexedQuads(), we pass a buffer of vertices that are used to render the Triangle primitives.
      Currently we pass the whole vertex buffer (~4 KB) every time even if we intend to render a single quad which would need 6 vertices.
      This is a minor change.

            Assignee:
            Ambarish Rapte
            Reporter:
            Ambarish Rapte
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: