Skip to content

Latest commit

 

History

History
78 lines (56 loc) · 2.22 KB

ns-d3d12umddi-d3d12ddi_raytracing_instance_desc_0054.md

File metadata and controls

78 lines (56 loc) · 2.22 KB
UID title description ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.lib req.dll req.ddi-compliance req.unicode-ansi req.max-support req.typenames targetos tech.root ms.custom f1_keywords topic_type api_type api_location api_name dev_langs
NS:d3d12umddi.D3D12DDI_RAYTRACING_INSTANCE_DESC_0054
D3D12DDI_RAYTRACING_INSTANCE_DESC_0054 (d3d12umddi.h)
Describes a ray tracing instance.
10/19/2018
D3D12DDI_RAYTRACING_INSTANCE_DESC_0054 structure
D3D12DDI_RAYTRACING_INSTANCE_DESC_0054, D3D12DDI_RAYTRACING_INSTANCE_DESC_0054,
d3d12umddi.h
Windows 10, version 1809
D3D12DDI_RAYTRACING_INSTANCE_DESC_0054
Windows
display
RS5
D3D12DDI_RAYTRACING_INSTANCE_DESC_0054
d3d12umddi/D3D12DDI_RAYTRACING_INSTANCE_DESC_0054
apiref
HeaderDef
d3d12umddi.h
D3D12DDI_RAYTRACING_INSTANCE_DESC_0054
c++

D3D12DDI_RAYTRACING_INSTANCE_DESC_0054 structure

-description

Describes a ray tracing instance. This data structure is used in GPU memory during acceleration structure build, and is useful if generating instance data on the CPU first then uploading to the GPU.

-struct-fields

-field Transform

A 3x4 transform matrix in row major layout representing the instance-to-world transformation.

-field InstanceID

An arbitrary 24-bit value in shader types.

-field InstanceMask

An 8-bit mask assigned to the instance, which can be used to include or reject groups of instances on a per-ray basis. If the value is zero, the instance will never be included. Set this value to a nonzero value.

-field InstanceContributionToHitGroupIndex

Per-instance contribution to add into shader table indexing to select the hit group to use.

-field Flags

Flags to apply to the instance.

-field AccelerationStructure

Address of the bottom-level acceleration structure that is being instanced. The address must be aligned to 256 bytes.

The memory pointed to must be in resource state D3D12DDI_RESOURCE_STATE_RAYTRACING_ACCELERATION_STRUCTURE.

-remarks

-see-also