@@ -506,46 +506,14 @@ class hiprtSceneTraversalAnyHitCustomStack
506506 m_impl;
507507};
508508
509- /* * \brief Returns the object to world transformation for a given instance and time in the form of the SRT frame.
510- *
511- * \param scene A scene.
512- * \param instanceID Instance ID.
513- * \param time The time.
514- */
515- HIPRT_DEVICE hiprtFrameSRT hiprtGetObjectToWorldFrameSRT ( hiprtScene scene, uint32_t instanceID, float time = 0 .0f );
516-
517- /* * \brief Returns the world to object transformation for a given instance and time in the form of the SRT frame.
518- *
519- * \param scene A scene.
520- * \param instanceID Instance ID.
521- * \param time The time.
522- */
523- HIPRT_DEVICE hiprtFrameSRT hiprtGetWorldToObjectFrameSRT ( hiprtScene scene, uint32_t instanceID, float time = 0 .0f );
524-
525- /* * \brief Returns the object to world transformation for a given instance and time in the form of the matrix.
526- *
527- * \param scene A scene.
528- * \param instanceID Instance ID.
529- * \param time The time.
530- */
531- HIPRT_DEVICE hiprtFrameMatrix hiprtGetObjectToWorldFrameMatrix ( hiprtScene scene, uint32_t instanceID, float time = 0 .0f );
532-
533- /* * \brief Returns the world to object transformation for a given instance and time in the form of the matrix.
534- *
535- * \param scene A scene.
536- * \param instanceID Instance ID.
537- * \param time The time.
538- */
539- HIPRT_DEVICE hiprtFrameMatrix hiprtGetWorldToObjectFrameMatrix ( hiprtScene scene, uint32_t instanceID, float time = 0 .0f );
540-
541509/* * \brief Transforms a point from the object space to the world space.
542510 *
543511 * \param point A point in the object space.
544512 * \param scene A scene.
545513 * \param instanceID Instance ID.
546514 * \param time The time.
547515 */
548- HIPRT_DEVICE float3 hiprtPointObjectToWorld ( float3 point, hiprtScene scene, uint32_t instanceID, float time = 0 .0f );
516+ HIPRT_DEVICE float3 hiprtPointObjectToWorld ( const float3& point, hiprtScene scene, uint32_t instanceID, float time = 0 .0f );
549517
550518/* * \brief Transforms a point from the world space to the object space.
551519 *
@@ -554,7 +522,7 @@ HIPRT_DEVICE float3 hiprtPointObjectToWorld( float3 point, hiprtScene scene, uin
554522 * \param instanceID Instance ID.
555523 * \param time The time.
556524 */
557- HIPRT_DEVICE float3 hiprtPointWorldToObject ( float3 point, hiprtScene scene, uint32_t instanceID, float time = 0 .0f );
525+ HIPRT_DEVICE float3 hiprtPointWorldToObject ( const float3& point, hiprtScene scene, uint32_t instanceID, float time = 0 .0f );
558526
559527/* * \brief Transforms a vector from the object space to the world space.
560528 *
@@ -563,7 +531,7 @@ HIPRT_DEVICE float3 hiprtPointWorldToObject( float3 point, hiprtScene scene, uin
563531 * \param instanceID Instance ID.
564532 * \param time The time.
565533 */
566- HIPRT_DEVICE float3 hiprtVectorObjectToWorld ( float3 vector, hiprtScene scene, uint32_t instanceID, float time = 0 .0f );
534+ HIPRT_DEVICE float3 hiprtVectorObjectToWorld ( const float3& vector, hiprtScene scene, uint32_t instanceID, float time = 0 .0f );
567535
568536/* * \brief Transforms a vector from the world space to the object space.
569537 *
@@ -572,43 +540,7 @@ HIPRT_DEVICE float3 hiprtVectorObjectToWorld( float3 vector, hiprtScene scene, u
572540 * \param instanceID Instance ID.
573541 * \param time The time.
574542 */
575- HIPRT_DEVICE float3 hiprtVectorWorldToObject ( float3 vector, hiprtScene scene, uint32_t instanceID, float time = 0 .0f );
576-
577- /* * \brief Returns the object to world transformation for a given instance and time in the form of the SRT frame.
578- *
579- * \param scene A scene.
580- * \param instanceIDs Instance IDs (multi-level instancing).
581- * \param time The time.
582- */
583- HIPRT_DEVICE hiprtFrameSRT
584- hiprtGetObjectToWorldFrameSRT ( hiprtScene scene, const uint32_t ( &instanceIDs )[hiprtMaxInstanceLevels], float time = 0.0f );
585-
586- /* * \brief Returns the world to object transformation for a given instance and time in the form of the SRT frame.
587- *
588- * \param scene A scene.
589- * \param instanceIDs Instance IDs (multi-level instancing).
590- * \param time The time.
591- */
592- HIPRT_DEVICE hiprtFrameSRT
593- hiprtGetWorldToObjectFrameSRT ( hiprtScene scene, const uint32_t ( &instanceIDs )[hiprtMaxInstanceLevels], float time = 0.0f );
594-
595- /* * \brief Returns the object to world transformation for a given instance and time in the form of the matrix.
596- *
597- * \param scene A scene.
598- * \param instanceIDs Instance IDs (multi-level instancing).
599- * \param time The time.
600- */
601- HIPRT_DEVICE hiprtFrameMatrix hiprtGetObjectToWorldFrameMatrix (
602- hiprtScene scene, const uint32_t ( &instanceIDs )[hiprtMaxInstanceLevels], float time = 0.0f );
603-
604- /* * \brief Returns the world to object transformation for a given instance and time in the form of the matrix.
605- *
606- * \param scene A scene.
607- * \param instanceIDs Instance IDs (multi-level instancing).
608- * \param time The time.
609- */
610- HIPRT_DEVICE hiprtFrameMatrix hiprtGetWorldToObjectFrameMatrix (
611- hiprtScene scene, const uint32_t ( &instanceIDs )[hiprtMaxInstanceLevels], float time = 0.0f );
543+ HIPRT_DEVICE float3 hiprtVectorWorldToObject ( const float3& vector, hiprtScene scene, uint32_t instanceID, float time = 0 .0f );
612544
613545/* * \brief Transforms a point from the object space to the world space.
614546 *
@@ -618,7 +550,7 @@ HIPRT_DEVICE hiprtFrameMatrix hiprtGetWorldToObjectFrameMatrix(
618550 * \param time The time.
619551 */
620552HIPRT_DEVICE float3 hiprtPointObjectToWorld (
621- float3 point, hiprtScene scene, const uint32_t ( &instanceIDs )[hiprtMaxInstanceLevels], float time = 0.0f );
553+ const float3& point, hiprtScene scene, const uint32_t ( &instanceIDs )[hiprtMaxInstanceLevels], float time = 0.0f );
622554
623555/* * \brief Transforms a point from the world space to the object space.
624556 *
@@ -628,7 +560,7 @@ HIPRT_DEVICE float3 hiprtPointObjectToWorld(
628560 * \param time The time.
629561 */
630562HIPRT_DEVICE float3 hiprtPointWorldToObject (
631- float3 point, hiprtScene scene, const uint32_t ( &instanceIDs )[hiprtMaxInstanceLevels], float time = 0.0f );
563+ const float3& point, hiprtScene scene, const uint32_t ( &instanceIDs )[hiprtMaxInstanceLevels], float time = 0.0f );
632564
633565/* * \brief Transforms a vector from the object space to the world space.
634566 *
@@ -638,7 +570,7 @@ HIPRT_DEVICE float3 hiprtPointWorldToObject(
638570 * \param time The time.
639571 */
640572HIPRT_DEVICE float3 hiprtVectorObjectToWorld (
641- float3 vector, hiprtScene scene, const uint32_t ( &instanceIDs )[hiprtMaxInstanceLevels], float time = 0.0f );
573+ const float3& vector, hiprtScene scene, const uint32_t ( &instanceIDs )[hiprtMaxInstanceLevels], float time = 0.0f );
642574
643575/* * \brief Transforms a vector from the world space to the object space.
644576 *
@@ -648,4 +580,4 @@ HIPRT_DEVICE float3 hiprtVectorObjectToWorld(
648580 * \param time The time.
649581 */
650582HIPRT_DEVICE float3 hiprtVectorWorldToObject (
651- float3 vector, hiprtScene scene, const uint32_t ( &instanceIDs )[hiprtMaxInstanceLevels], float time = 0.0f );
583+ const float3& vector, hiprtScene scene, const uint32_t ( &instanceIDs )[hiprtMaxInstanceLevels], float time = 0.0f );
0 commit comments