HitObject.MakeMotionHit
Description
See MakeHit but handles Motion Currently only supported on VK
Signature
/// Requires Capability Set 1: static HitObject HitObject.MakeMotionHit<attr_t>( RaytracingAccelerationStructure AccelerationStructure, uint InstanceIndex, uint GeometryIndex, uint PrimitiveIndex, uint HitKind, uint RayContributionToHitGroupIndex, uint MultiplierForGeometryContributionToHitGroupIndex, RayDesc Ray, float CurrentTime, attr_t attributes); /// Requires Capability Set 2: static HitObject HitObject.MakeMotionHit<attr_t>( uint HitGroupRecordIndex, RaytracingAccelerationStructure AccelerationStructure, uint InstanceIndex, uint GeometryIndex, uint PrimitiveIndex, uint HitKind, RayDesc Ray, float CurrentTime, attr_t attributes);
Generic Parameters
attr_t
Parameters
AccelerationStructure : RaytracingAccelerationStructure
InstanceIndex : uint
GeometryIndex : uint
PrimitiveIndex : uint
HitKind : uint
RayContributionToHitGroupIndex : uint
MultiplierForGeometryContributionToHitGroupIndex : uint
Ray : RayDesc
CurrentTime : float
attributes : attr_t
HitGroupRecordIndex : uint
Availability and Requirements
Capability Set 1
Defined for the following targets:
hlsl
Available in stages: raygen
, closesthit
, miss
.
Requires capability: hlsl_nvapi
.
glsl
Available in stages: raygen
, closesthit
, miss
.
spirv
Available in stages: raygen
, closesthit
, miss
.
Requires capabilities: spvRayTracingMotionBlurNV
, spvRayTracingKHR
, spvShaderInvocationReorderNV
.
Capability Set 2
Defined for the following targets:
glsl
Available in stages: raygen
, closesthit
, miss
.
spirv
Available in stages: raygen
, closesthit
, miss
.
Requires capabilities: spvRayTracingMotionBlurNV
, spvRayTracingKHR
, spvShaderInvocationReorderNV
.