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
  • compiler
  • translator
  • TextureFunctionHLSL.cpp
Find file
BlameHistoryPermalink
  • Jiawei Shao's avatar
    ES31: Support textureGather[Offset] on shadow samplers · 19b51d29
    Jiawei Shao authored Sep 19, 2018
    This patch implements translating textureGather[Offset] into HLSL
    when the sampler is a shadow sampler. The related HLSL function
    should be GatherCmp().
    
    According to the definition of textureGatherOffset():
    ([ESSL 3.1] Chapter 8.9.3 Page 138)
    - gvec4 textureGatherOffset(gsampler2D sampler, vec2 P,
      ivec2 offset, [,int comp])
    - vec4 textureGatherOffset(sampler2DShadow sampler, vec2 P,
      float refZ, ivec2 offset)
    We need to add parameter "refZ" before "offset" when the sampler
    is a shadow sampler.
    
    Bug: angleproject:2826
    Test: dEQP-GLES31.functional.texture.gather.basic.2d.depth32f.*
         dEQP-GLES31.functional.texture.gather.basic.2d_array.depth32f.*
         dEQP-GLES31.functional.texture.gather.basic.cube.depth32f.*
         dEQP-GLES31.functional.texture.gather.offset.min_required_offset.2d.depth32f.*
         dEQP-GLES31.functional.texture.gather.offset.min_required_offset.2d_array.depth32f.*
         dEQP-GLES31.functional.texture.gather.offset.implementation_offset.2d.depth32f.*
         dEQP-GLES31.functional.texture.gather.offset.implementation_offset.2d_array.depth32f.*
    
    Change-Id: I9a7d095dd3cfa41aaefd14d012ed1f309abfc6d5
    Reviewed-on: https://chromium-review.googlesource.com/c/1244081
    Commit-Queue: Jiawei Shao <jiawei.shao@intel.com>
    Reviewed-by: 's avatarJiajia Qin <jiajia.qin@intel.com>
    Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
    Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org>
    19b51d29
TextureFunctionHLSL.cpp 51.9 KB
EditWeb IDE
×

Replace TextureFunctionHLSL.cpp

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.