java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.template.Ref
com.github.stephengold.joltjni.HairShadersRef
- All Implemented Interfaces:
ConstJoltPhysicsObject,AutoCloseable,Comparable<JoltPhysicsObject>
A counted reference to a
HairShaders object. (native type:
Ref<HairShaders>)-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPtr()Temporarily access the referencedHairShaders.voidinit(ComputeSystem computeSystem) Loads all shaders for the specified compute system.longtargetVa()Return the address of the nativeHairShaders.toRef()Create another counted reference to the nativeHairShaders.Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, isCleanerStarted, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, toString, va
-
Constructor Details
-
HairShadersRef
public HairShadersRef()Instantiate an empty reference.
-
-
Method Details
-
init
Loads all shaders for the specified compute system. Note that if you want to simulate on the CPU you must invokehairRegisterShaders()first.- Parameters:
computeSystem- the compute system to use (notnull)
-
getPtr
Temporarily access the referencedHairShaders. -
targetVa
public long targetVa()Return the address of the nativeHairShaders. No objects are affected.- Specified by:
targetVain interfaceConstJoltPhysicsObject- Overrides:
targetVain classJoltPhysicsObject- Returns:
- a virtual address (not zero)
-
toRef
Create another counted reference to the nativeHairShaders.
-