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-3.frag
Find file
BlameHistoryPermalink
  • LoopDawg's avatar
    HLSL: add geometry stage support for clip/cull distance · 5e5b12e9
    LoopDawg authored Aug 28, 2017
    Changes:
    
    (1) Allow clip/cull builtins as both input and output in the same shader stage.  Previously,
    not enough data was tracked to handle this.
    
    (2) Handle the extra array dimension in GS inputs.  The synthesized external variable can
    now be created with the extra array dimension if needed, and the form conversion code is
    able to handle it as well.
    
    For example, both of these GS inputs would result in the same synthesized external type:
    
        triangle in float4 clip[3] : SV_ClipDistance
    
        triangle in float2 clip[3][2] : SV_ClipDistance
    
    In the second case, the inner array dimension packs with the 2-vector of floats into an array[4],
    which there is an array[3] of due to the triangle geometry.
    5e5b12e9
hlsl.clipdistance-3.frag 253 Bytes
EditWeb IDE
×

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