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.cbuffer-identifier.vert
Find file
BlameHistoryPermalink
  • LoopDawg's avatar
    HLSL: allow keyword-identifiers as cbuffer/struct names. · 7ee29ba7
    LoopDawg authored Nov 27, 2017
    Issue #791 was partially fixed by PR #1161 (the mat mul implicit
    truncations were its main point), but it still wouldn't compile due to
    the use of ConstantBuffer as an identifier.  Apparently those fall into
    the same class as "float float", where float is both a type and an
    identifier.
    
    This allows struct definitions with such keyword-identifiers,
    and adds ConstantBuffer to the set.  'cbuffer int' is legal in HLSL,
    and 'struct int' appears to only be rejected due to the redefinition
    of the 'int' type.
    
    Fixes #791
    7ee29ba7
hlsl.cbuffer-identifier.vert 663 Bytes
EditWeb IDE
×

Replace hlsl.cbuffer-identifier.vert

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.