Class MPSIntersectionDistancePrimitiveIndexBufferIndexInstanceIndex
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.c.StructObject
-
- apple.metalperformanceshaders.struct.MPSIntersectionDistancePrimitiveIndexBufferIndexInstanceIndex
-
public final class MPSIntersectionDistancePrimitiveIndexBufferIndexInstanceIndex extends org.moe.natj.c.StructObject
-
-
Constructor Summary
Constructors Modifier Constructor Description MPSIntersectionDistancePrimitiveIndexBufferIndexInstanceIndex()MPSIntersectionDistancePrimitiveIndexBufferIndexInstanceIndex(float distance, int primitiveIndex, int bufferIndex, int instanceIndex)protectedMPSIntersectionDistancePrimitiveIndexBufferIndexInstanceIndex(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intbufferIndex()Buffer index of the intersected primitive.floatdistance()Distance from the ray origin to the intersection point along the ray direction vector such that intersection = ray.origin + ray.direction * distance.intinstanceIndex()Index of the intersected instance.intprimitiveIndex()Index of the intersected primitive.voidsetBufferIndex(int value)Buffer index of the intersected primitive.voidsetDistance(float value)Distance from the ray origin to the intersection point along the ray direction vector such that intersection = ray.origin + ray.direction * distance.voidsetInstanceIndex(int value)Index of the intersected instance.voidsetPrimitiveIndex(int value)Index of the intersected primitive.
-
-
-
Constructor Detail
-
MPSIntersectionDistancePrimitiveIndexBufferIndexInstanceIndex
public MPSIntersectionDistancePrimitiveIndexBufferIndexInstanceIndex()
-
MPSIntersectionDistancePrimitiveIndexBufferIndexInstanceIndex
protected MPSIntersectionDistancePrimitiveIndexBufferIndexInstanceIndex(org.moe.natj.general.Pointer peer)
-
MPSIntersectionDistancePrimitiveIndexBufferIndexInstanceIndex
public MPSIntersectionDistancePrimitiveIndexBufferIndexInstanceIndex(float distance, int primitiveIndex, int bufferIndex, int instanceIndex)
-
-
Method Detail
-
distance
public float distance()
Distance from the ray origin to the intersection point along the ray direction vector such that intersection = ray.origin + ray.direction * distance. Is negative if there is no intersection. If the intersection type is MPSIntersectionTypeAny, is a positive value for a hit or a negative value for a miss.
-
setDistance
public void setDistance(float value)
Distance from the ray origin to the intersection point along the ray direction vector such that intersection = ray.origin + ray.direction * distance. Is negative if there is no intersection. If the intersection type is MPSIntersectionTypeAny, is a positive value for a hit or a negative value for a miss.
-
primitiveIndex
public int primitiveIndex()
Index of the intersected primitive. Undefined if the ray does not intersect a primitive or if the intersection type is MPSIntersectionTypeAny.
-
setPrimitiveIndex
public void setPrimitiveIndex(int value)
Index of the intersected primitive. Undefined if the ray does not intersect a primitive or if the intersection type is MPSIntersectionTypeAny.
-
bufferIndex
public int bufferIndex()
Buffer index of the intersected primitive. Undefined if the ray does not intersect a primitive or if the intersection type is MPSIntersectionTypeAny.
-
setBufferIndex
public void setBufferIndex(int value)
Buffer index of the intersected primitive. Undefined if the ray does not intersect a primitive or if the intersection type is MPSIntersectionTypeAny.
-
instanceIndex
public int instanceIndex()
Index of the intersected instance. Undefined if the ray does not intersect a primitive, if the acceleration structure is not an instance acceleration structure, or if the intersection type is MPSIntersectionTypeAny.
-
setInstanceIndex
public void setInstanceIndex(int value)
Index of the intersected instance. Undefined if the ray does not intersect a primitive, if the acceleration structure is not an instance acceleration structure, or if the intersection type is MPSIntersectionTypeAny.
-
-