Skip to content

Commit f6ff794

Browse files
committed
Add "refract()" intrinsic support to hlslparser
1 parent 1b8004f commit f6ff794

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vendor/hlslparser/src/HLSLParser.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,10 @@ const Intrinsic _intrinsic[] =
620620
INTRINSIC_FLOAT2_FUNCTION( "step" ),
621621
INTRINSIC_FLOAT2_FUNCTION( "reflect" ),
622622

623+
Intrinsic("refract", HLSLBaseType_Float2, HLSLBaseType_Float2, HLSLBaseType_Float2, HLSLBaseType_Float),
624+
Intrinsic("refract", HLSLBaseType_Float3, HLSLBaseType_Float3, HLSLBaseType_Float3, HLSLBaseType_Float),
625+
Intrinsic("refract", HLSLBaseType_Float4, HLSLBaseType_Float4, HLSLBaseType_Float4, HLSLBaseType_Float),
626+
623627
Intrinsic("isnan", HLSLBaseType_Bool, HLSLBaseType_Float),
624628
Intrinsic("isinf", HLSLBaseType_Bool, HLSLBaseType_Float),
625629

0 commit comments

Comments
 (0)