mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2025-10-29 11:24:21 +00:00
Add missing "distance" intrinsic to HLSLparser
Signed-off-by: Kai Blaschke <kai.blaschke@kb-dev.net>
This commit is contained in:
parent
890b78a985
commit
394106bfd4
5
vendor/hlslparser/src/HLSLParser.cpp
vendored
5
vendor/hlslparser/src/HLSLParser.cpp
vendored
@ -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" ),
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user