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.self_cast.frag
Find file
BlameHistoryPermalink
  • LoopDawg's avatar
    HLSL: allow self-type cast (as no-op passthrough) · c5991671
    LoopDawg authored May 17, 2018
    Previously, casting an object of a struct type to an identical type
    would produce an error.  This PR allows this case.
    
    As a side-effect of the change, several self-type casts in existing
    tests go away.  For example:
    
        0:10          Construct float ( temp float)
        0:10            'f' ( in float)
    
    becomes this (without the unneeded constructor op):
    
        0:10          'f' ( in float)
    
    For vector or array types this can result in somewhat less overall code.
    
    Fixes: #1218
    c5991671
hlsl.self_cast.frag 310 Bytes
EditWeb IDE
×

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