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.clipdistance-7.frag
Find file
BlameHistoryPermalink
  • LoopDawg's avatar
    HLSL: handle clip and cull distance input builtin type conversion · e2cda3c2
    LoopDawg authored Aug 23, 2017
    HLSL allows a range of types for clip and cull distances.  There are
    three dimensions, including arrayness, vectorness, and semantic ID.
    SPIR-V requires clip and cull distance be a single array of floats in
    all cases.
    
    This code provides input side conversion between the SPIR-V form and
    the HLSL form.  (Output conversion was added in PR #947 and #997).
    
    This PR extends HlslParseContext::assignClipCullDistance to cope with
    the input side conversion.  Not as much changed as appears: there was
    also a lot of renaming to reflect the fact that the code now handles
    either direction.
    
    Currently, non-{frag,vert} stages are not handled, and are explicitly
    rejected.
    
    Fixes #1026.
    e2cda3c2
hlsl.clipdistance-7.frag 322 Bytes
EditWeb IDE
×

Replace hlsl.clipdistance-7.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.