Skip to content

Commit 394106b

Browse files
committed
Add missing "distance" intrinsic to HLSLparser
Signed-off-by: Kai Blaschke <[email protected]>
1 parent 890b78a commit 394106b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

vendor/hlslparser/src/HLSLParser.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,11 @@ const Intrinsic _intrinsic[] =
478478
Intrinsic( "length", HLSLBaseType_Float, HLSLBaseType_Float3 ),
479479
Intrinsic( "length", HLSLBaseType_Float, HLSLBaseType_Float4 ),
480480

481+
Intrinsic( "distance", HLSLBaseType_Float, HLSLBaseType_Float , HLSLBaseType_Float ),
482+
Intrinsic( "distance", HLSLBaseType_Float, HLSLBaseType_Float2, HLSLBaseType_Float2 ),
483+
Intrinsic( "distance", HLSLBaseType_Float, HLSLBaseType_Float3, HLSLBaseType_Float3 ),
484+
Intrinsic( "distance", HLSLBaseType_Float, HLSLBaseType_Float4, HLSLBaseType_Float4 ),
485+
481486
INTRINSIC_FLOAT2_FUNCTION( "max" ),
482487
INTRINSIC_FLOAT2_FUNCTION( "min" ),
483488

0 commit comments

Comments
 (0)