Package apple.metal.enums
Class MTLIntersectionFunctionSignature
- java.lang.Object
-
- apple.metal.enums.MTLIntersectionFunctionSignature
-
public final class MTLIntersectionFunctionSignature extends java.lang.ObjectSignature 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 longInstancingThe intersection functions are entitled to read the built-in instance_id as described in the Metal Shading Language Guide.static longNoneNo signaturestatic longTriangleDataThe 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 longWorldSpaceDataThe intersection functions are entitled to query world_space_origin and world_space_direction as described in the Metal Shading Language Guide.
-
-
-
Field Detail
-
None
public static final long None
No signature- See Also:
- Constant Field Values
-
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
-
-