Class HairShadersRef

All Implemented Interfaces:
ConstJoltPhysicsObject, AutoCloseable, Comparable<JoltPhysicsObject>

public final class HairShadersRef extends Ref
A counted reference to a HairShaders object. (native type: Ref<HairShaders>)
  • Constructor Details

    • HairShadersRef

      public HairShadersRef()
      Instantiate an empty reference.
  • Method Details

    • init

      public void init(ComputeSystem computeSystem)
      Loads all shaders for the specified compute system. Note that if you want to simulate on the CPU you must invoke hairRegisterShaders() first.
      Parameters:
      computeSystem - the compute system to use (not null)
    • getPtr

      public HairShaders getPtr()
      Temporarily access the referenced HairShaders.
      Specified by:
      getPtr in class Ref
      Returns:
      a new JVM object with the pre-existing native object assigned
    • targetVa

      public long targetVa()
      Return the address of the native HairShaders. No objects are affected.
      Specified by:
      targetVa in interface ConstJoltPhysicsObject
      Overrides:
      targetVa in class JoltPhysicsObject
      Returns:
      a virtual address (not zero)
    • toRef

      public HairShadersRef toRef()
      Create another counted reference to the native HairShaders.
      Specified by:
      toRef in class Ref
      Returns:
      a new JVM object with a new native object assigned