Skip to content

Commit

Permalink
Add "refract()" intrinsic support to hlslparser
Browse files Browse the repository at this point in the history
  • Loading branch information
kblaschke committed Aug 26, 2024
1 parent 1b8004f commit f6ff794
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vendor/hlslparser/src/HLSLParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,10 @@ const Intrinsic _intrinsic[] =
INTRINSIC_FLOAT2_FUNCTION( "step" ),
INTRINSIC_FLOAT2_FUNCTION( "reflect" ),

Intrinsic("refract", HLSLBaseType_Float2, HLSLBaseType_Float2, HLSLBaseType_Float2, HLSLBaseType_Float),
Intrinsic("refract", HLSLBaseType_Float3, HLSLBaseType_Float3, HLSLBaseType_Float3, HLSLBaseType_Float),
Intrinsic("refract", HLSLBaseType_Float4, HLSLBaseType_Float4, HLSLBaseType_Float4, HLSLBaseType_Float),

Intrinsic("isnan", HLSLBaseType_Bool, HLSLBaseType_Float),
Intrinsic("isinf", HLSLBaseType_Bool, HLSLBaseType_Float),

Expand Down

0 comments on commit f6ff794

Please sign in to comment.