Class MTLIntersectionFunctionSignature


  • public final class MTLIntersectionFunctionSignature
    extends java.lang.Object
    Signature defining what data is provided to an intersection function. The signature must match across the shading language declaration of the intersection function table, intersection functions in the table, and the intersector using the table. API-Since: 14.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static long CurveData
      The curve intersection functions can read the built-in curve_parameter as described in the Metal Shading Language Guide.
      static long ExtendedLimits
      The intersection functions may be called from intersectors using the extended_limits intersection tag as described in the Metal Shading Language Guide.
      static long InstanceMotion
      The intersection functions may be called from intersectors using the instance_motion intersection tag as described in the Metal Shading Language Guide.
      static long Instancing
      The intersection functions can read the built-in instance_id as described in the Metal Shading Language Guide.
      static long MaxLevels
      The intersection functions may be called from intersectors using the max_levels intersection tag as described in the Metal Shading Language Guide.
      static long None
      No signature API-Since: 14.0
      static long PrimitiveMotion
      The intersection functions can query time, motion_start_time, motion_end_time and key_frame_count as described in the Metal Shading Language Guide.
      static long TriangleData
      The triangle intersection functions can read the built-in barycentric_coord and front_facing as described in the Metal Shading Language Guide.
      static long WorldSpaceData
      The intersection functions can query world_space_origin and world_space_direction as described in the Metal Shading Language Guide.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • Instancing

        public static final long Instancing
        The intersection functions can read the built-in instance_id as described in the Metal Shading Language Guide. API-Since: 14.0
        See Also:
        Constant Field Values
      • TriangleData

        public static final long TriangleData
        The triangle intersection functions can read the built-in barycentric_coord and front_facing as described in the Metal Shading Language Guide. API-Since: 14.0
        See Also:
        Constant Field Values
      • WorldSpaceData

        public static final long WorldSpaceData
        The intersection functions can query world_space_origin and world_space_direction as described in the Metal Shading Language Guide. API-Since: 14.0
        See Also:
        Constant Field Values
      • InstanceMotion

        public static final long InstanceMotion
        The intersection functions may be called from intersectors using the instance_motion intersection tag as described in the Metal Shading Language Guide. API-Since: 15.0
        See Also:
        Constant Field Values
      • PrimitiveMotion

        public static final long PrimitiveMotion
        The intersection functions can query time, motion_start_time, motion_end_time and key_frame_count as described in the Metal Shading Language Guide. API-Since: 15.0
        See Also:
        Constant Field Values
      • ExtendedLimits

        public static final long ExtendedLimits
        The intersection functions may be called from intersectors using the extended_limits intersection tag as described in the Metal Shading Language Guide. API-Since: 15.0
        See Also:
        Constant Field Values
      • MaxLevels

        public static final long MaxLevels
        The intersection functions may be called from intersectors using the max_levels intersection tag as described in the Metal Shading Language Guide. API-Since: 17.0
        See Also:
        Constant Field Values
      • CurveData

        public static final long CurveData
        The curve intersection functions can read the built-in curve_parameter as described in the Metal Shading Language Guide. API-Since: 17.0
        See Also:
        Constant Field Values