Skip to content
Snippets Groups Projects
  1. Nov 28, 2017
    • LoopDawg's avatar
      HLSL: allow keyword-identifiers as cbuffer/struct names. · 7ee29ba7
      LoopDawg authored
      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
Loading