Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
A
angle
  • 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
  • angle
  • Repository

Switch branch/tag
  • angle
  • src
  • libANGLE
  • renderer
  • ProgramImpl_mock.h
Find file
BlameHistoryPermalink
  • Jamie Madill's avatar
    Add getUniform impl methods. · 54164b0c
    Jamie Madill authored Aug 28, 2017
    This will let us remove some of the uniform data management code in
    the GL front-end, and simplify the GL back-end. It will also enable
    us to implement uniform data more efficiently in the D3D11 back-end,
    and probably Vulkan back-end later.
    
    This also implements a new impl method for the ProgramGL class to
    flag optimized-out uniforms as no longer used, post-link. This is
    important because otherwise the optimized uniforms get assigned
    valid locations, and then the getUniform calls are expected to
    succeed.
    
    We also use a workaround for uniform value queries for the GL
    back-end. It seems as though some drivers (seen on NVIDIA and AMD)
    may not properly clamp to the maximum representable integer value
    when querying out-of-range floating point values. Work around this by
    always calling the driver with the proper type and then casting the
    value in ANGLE.
    
    BUG=angleproject:1390
    
    Change-Id: I03dc2382e7af52455c356a2bf3971a4d1bd46ec6
    Reviewed-on: https://chromium-review.googlesource.com/616785
    Commit-Queue: Jamie Madill <jmadill@chromium.org>
    Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
    54164b0c
ProgramImpl_mock.h 3.78 KB
EditWeb IDE
×

Replace ProgramImpl_mock.h

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.