Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8271044 Implement Decora Shaders using Metal shading language
  3. JDK-8302166

Move a call added for text rendering in MetalContext.drawIndexedQuads to a correct place

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: P4 P4
    • internal
    • None
    • javafx
    • fx-sandbox:metal branch

    • generic
    • os_x

      Currently following code block is added in MetalContext.drawIndexedQuads()
      ```
         if (tex0 != nil) {
              id<MTLTexture> tex = [tex0 getTexture];
              [renderEncoder useResource:tex usage:MTLResourceUsageRead];
          }
      ```
      This call is required for text rendering but has side effect that it will be applied to any texture from any shader that was set last.
      This call should be moved to better place where it's execution scope is limited to it's need.

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

              Created:
              Updated:
              Resolved: