Add missing "distance" intrinsic to HLSLparser

Signed-off-by: Kai Blaschke <kai.blaschke@kb-dev.net>
This commit is contained in:
Kai Blaschke 2025-10-21 17:16:46 +02:00
parent 890b78a985
commit 394106bfd4
No known key found for this signature in database
GPG Key ID: B014B6811527389F

View File

@ -478,6 +478,11 @@ const Intrinsic _intrinsic[] =
Intrinsic( "length", HLSLBaseType_Float, HLSLBaseType_Float3 ), Intrinsic( "length", HLSLBaseType_Float, HLSLBaseType_Float3 ),
Intrinsic( "length", HLSLBaseType_Float, HLSLBaseType_Float4 ), Intrinsic( "length", HLSLBaseType_Float, HLSLBaseType_Float4 ),
Intrinsic( "distance", HLSLBaseType_Float, HLSLBaseType_Float , HLSLBaseType_Float ),
Intrinsic( "distance", HLSLBaseType_Float, HLSLBaseType_Float2, HLSLBaseType_Float2 ),
Intrinsic( "distance", HLSLBaseType_Float, HLSLBaseType_Float3, HLSLBaseType_Float3 ),
Intrinsic( "distance", HLSLBaseType_Float, HLSLBaseType_Float4, HLSLBaseType_Float4 ),
INTRINSIC_FLOAT2_FUNCTION( "max" ), INTRINSIC_FLOAT2_FUNCTION( "max" ),
INTRINSIC_FLOAT2_FUNCTION( "min" ), INTRINSIC_FLOAT2_FUNCTION( "min" ),