Skip to content

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

Switch branch/tag
  • glslang
  • Test
  • hlsl.samplecmp.dualmode.frag
Find file
BlameHistoryPermalink
  • LoopDawg's avatar
    HLSL: split textures used for both shadow and non-shadow modes · 73c57bbe
    LoopDawg authored Oct 05, 2017
    A single texture can statically appear in code mixed with a shadow sampler
    and a non-shadow sampler.  This would be create invalid SPIR-V, unless
    one of them is provably dead.
    
    The previous detection of this happened before DCE, so some shaders would
    trigger the error even though they wouldn't after DCE.  To handle that
    case, this PR splits the texture into two: one with each mode.  It sets
    "needsLegalization" (if that happens for any texture) to warn that this shader
    will need post-compilation legalization.
    
    If the texture is only used with one of the two modes, behavior is as it
    was before.
    73c57bbe
hlsl.samplecmp.dualmode.frag 367 Bytes
EditWeb IDE
×

Replace hlsl.samplecmp.dualmode.frag

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.