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.matpack-pragma.frag
Find file
BlameHistoryPermalink
  • LoopDawg's avatar
    HLSL: implement #pragma pack_matrix(layout) · 6a264bed
    LoopDawg authored Aug 07, 2017
    This adds support for #pragma pack_matrix() to the HLSL front end.
    
    The pragma sets the default matrix layout for subsequent unqualified matrices
    in structs or buffers. Explicit qualification overrides the pragma value. Matrix
    layout is not permitted at the structure level in HLSL, so only leaves which are
    matrix types can be so qualified.
    
    Note that due to the semantic (not layout) difference in first matrix indirections
    between HLSL and SPIR-V, the sense of row and column major are flipped.  That's
    independent of this PR: just a factor to note.  A column_major qualifier appears
    as a RowMajor member decoration in SPIR-V modules, and vice versa.
    6a264bed
hlsl.matpack-pragma.frag 644 Bytes
EditWeb IDE
×

Replace hlsl.matpack-pragma.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.