// Jolt Physics Library (https://github.com/jrouwe/JoltPhysics) // SPDX-FileCopyrightText: 2026 Jorrit Rouwe // SPDX-License-Identifier: MIT #pragma once #include #include JPH_NAMESPACE_BEGIN /// This class loads the shaders used by the hair system. This can be shared among all hair instances. class JPH_EXPORT HairShaders : public RefTarget { public: /// Loads all shaders /// Note that if you want to run the sim on CPU you need call HairRegisterShaders first. void Init(ComputeSystem *inComputeSystem); Ref mTeleportCS; Ref mApplyDeltaTransformCS; Ref mSkinVerticesCS; Ref mSkinRootsCS; Ref mApplyGlobalPoseCS; Ref mCalculateCollisionPlanesCS; Ref mGridClearCS; Ref mGridAccumulateCS; Ref mGridNormalizeCS; Ref mIntegrateCS; Ref mUpdateRootsCS; Ref mUpdateStrandsCS; Ref mUpdateVelocityCS; Ref mUpdateVelocityIntegrateCS; Ref mCalculateRenderPositionsCS; }; JPH_NAMESPACE_END