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.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static long Instancing
      The intersection functions are entitled to read the built-in instance_id as described in the Metal Shading Language Guide.
      static long None
      No signature
      static long TriangleData
      The triangle intersection functions are entitled to to read the built-in barycentric_coord and front_facing as described in the Metal Shading Language Guide.
      static long WorldSpaceData
      The intersection functions are entitled to 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 are entitled to read the built-in instance_id as described in the Metal Shading Language Guide.
        See Also:
        Constant Field Values
      • TriangleData

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

        public static final long WorldSpaceData
        The intersection functions are entitled to query world_space_origin and world_space_direction as described in the Metal Shading Language Guide.
        See Also:
        Constant Field Values