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.scalar2matrix.frag
Find file
BlameHistoryPermalink
  • LoopDawg's avatar
    HLSL: fix several issues in mat construction from scalars · e2713125
    LoopDawg authored Jun 09, 2017
    This fixes:
    
    1. A compilation error when assigning scalars to matricies
    
    2. A semantic error in matrix construction from scalars.  This was
    initializing the diagonal, where HLSL semantics require the scalar be
    replicated to every matrix element.
    
    3. Functions accepting mats can be called with scalars, which will
    be shape-converted to the matrix type.  This was previously failing
    to match the function signature.
    
    NOTE: this does not yet handle complex scalars (a function call,
    say) used to construct matricies.  That'll be added when the
    node replicator service is available.  For now, there's an assert.
    
    There's one new test (hlsl.scalar2matrix.frag).  An existing test
    lsl.type.half.frag changes, because of (2) above, and a negative
    test error message changes due to (3) above.
    
    Fixes #923.
    e2713125
hlsl.scalar2matrix.frag 783 Bytes
EditWeb IDE
×

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