D3D12_RAYTRACING_GEOMETRY_DESC structure (d3d12.h)

Describes a set of geometry that is used in the D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS structure to provide input data to a raytracing acceleration structure build operation.

Syntax

typedef struct D3D12_RAYTRACING_GEOMETRY_DESC {
  D3D12_RAYTRACING_GEOMETRY_TYPE  Type;
  D3D12_RAYTRACING_GEOMETRY_FLAGS Flags;
  union {
    D3D12_RAYTRACING_GEOMETRY_TRIANGLES_DESC Triangles;
    D3D12_RAYTRACING_GEOMETRY_AABBS_DESC     AABBs;
  };
} D3D12_RAYTRACING_GEOMETRY_DESC;

Members

Type

The type of geometry.

Flags

The geometry flags

Triangles

A D3D12_RAYTRACING_GEOMETRY_TRIANGLES_DESC describing triangle geometry, if Type is D3D12_RAYTRACING_GEOMETRY_TYPE_TRIANGLES. Otherwise this parameter is unused.

AABBs

A D3D12_RAYTRACING_GEOMETRY_AABBS_DESC describing triangle geometry, if Type is D3D12_RAYTRACING_GEOMETRY_TYPE_PROCEDURAL_PRIMITIVE_AABBS. Otherwise this parameter is unused.

Requirements

Requirement Value
Header d3d12.h