Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
S
swiftshader
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Chen Yisong
  • swiftshader
  • Repository

Switch branch/tag
  • swiftshader
  • src
  • Pipeline
  • PixelProgram.hpp
Find file
BlameHistoryPermalink
  • Alexis Hetu's avatar
    Per sample shading · 09df3eba
    Alexis Hetu authored Jan 14, 2021
    This cl introduces per sample shading in the fragment shader.
    Rather than call the fragment shader multiple times per sample,
    this cl adds a potential loop in the fragment shader where each
    sample is processes in one of the loop's iteration.
    
    - Each multisample related loop now processes either all samples,
      like before, or the current sample, if per sample shading is
      enabled
    - A new per sample PixelProgram::maskAny() function was added
    - emitEpilog() now has an option not to clear phis in order to be
      able to only clear them on the last sample
    - The routine's fragCoord values are set per sample, with the
      proper sample offsets
    - Similarly, the xxxx and yyyy values used for interpolation are
      now offset with the proper sample offsets when per sample
      shading is enabled
    
    Bug: b/171415086
    Change-Id: Ibd0c1bad23e2d81f7fa97240ebb50f88f1fee36e
    Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/51733Reviewed-by: 's avatarAntonio Maiorano <amaiorano@google.com>
    Commit-Queue: Alexis Hétu <sugoi@google.com>
    Tested-by: 's avatarAlexis Hétu <sugoi@google.com>
    Kokoro-Result: kokoro <noreply+kokoro@google.com>
    09df3eba
PixelProgram.hpp 1.71 KB
EditWeb IDE
×

Replace PixelProgram.hpp

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.