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>)-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPtr()Access the targeted shaders, if any.voidinit(ComputeSystem computeSystem) Loads all shaders for the specified compute system.longtargetVa()Return the address of the nativeHairShaders.toRef()Create an additional counted reference to the targeted shaders.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
Access the targeted shaders, if any. -
targetVa
public long targetVa()Return the address of the nativeHairShaders. No objects are affected.- Specified by:
targetVain interfaceConstJoltPhysicsObject- Overrides:
targetVain classJoltPhysicsObject- Returns:
- the virtual address, or zero if the reference is empty
-
toRef
Create an additional counted reference to the targeted shaders.
-