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 translating textureGatherOffset into HLSL · cf8ad760
    Jiawei Shao authored Sep 21, 2018
    This patch implements the translation from GLSL texture function
    textureGatherOffset into HLSL by using the optional "offset"
    parameter of Texture2D.Gather[Red|Green|Blue|Alpha].
    
    This patch also defines the implementation-dependent limit
    MIN_PROGRAM_TEXTURE_GATHER_OFFSET and MAX_PROGRAM_TEXTURE_GATHER_OFFSET
    on D3D11. According to MSDN, the valid range of "offset" used in
    Gather should be [-32, 31].
    https://docs.microsoft.com/en-us/windows/desktop/direct3dhlsl/gather4-po--sm5---asm-
    
    This patch also refactors OutputTextureGatherFunctionBody() so that
    some redundant code can be removed.
    
    BUG=angleproject:2826
    TEST=dEQP-GLES31.functional.texture.gather.offset.min_required_offset.2d.rgba8.*
         dEQP-GLES31.functional.texture.gather.offset.min_required_offset.2d_array.rgba8.*
         dEQP-GLES31.functional.texture.gather.offset.implementation_offset.2d.rgba8.*
         dEQP-GLES31.functional.texture.gather.offset.implementation_offset.2d_array.rgba8.*
         (without texture_swizzle)
    
    Change-Id: Id0f411257b64c8a97428f16b1a86950ec6d36e2f
    Reviewed-on: https://chromium-review.googlesource.com/1237303Reviewed-by: 's avatarJiajia Qin <jiajia.qin@intel.com>
    Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org>
    Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
    Commit-Queue: Jiawei Shao <jiawei.shao@intel.com>
    cf8ad760
TextureFunctionHLSL.cpp 51.1 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.