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.matNx1.frag
Find file
BlameHistoryPermalink
  • steve-lunarg's avatar
    HLSL: use HLSL parser to parse HLSL intrinsic prototypes, enable int/bool mats · 0842dbb3
    steve-lunarg authored Nov 15, 2016
    This PR adds a CreateParseContext() fn analogous to CreateBuiltInParseables(),
    to create a language specific built in parser.  (This code was present before
    but not encapsualted in a fn).  This can now be used to create a source language
    specific parser for builtins.
    
    Along with this, the code creating HLSL intrinsic prototypes can now produce
    them in HLSL syntax, rather than GLSL syntax.  This relaxes certain prior
    restrictions at the parser level.  Lower layers (e.g, SPIR-V) may still have
    such restrictions, such as around Nx1 matrices: this code does not impact
    that.
    
    This PR also fleshes out matrix types for bools and ints, both of which were
    partially in place before.  This was easier than maintaining the restrictions
    in the HLSL prototype generator to avoid creating protoypes with those types.
    
    Many tests change because the result type from intrinsics moves from "global"
    to "temp".
    
    Several new tests are added for the new types.
    0842dbb3
hlsl.matNx1.frag 594 Bytes
EditWeb IDE
×

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