/// <summary> /// Initializes a new instance of the <see cref="RaytracingGeometryDescription"/> struct. /// </summary> /// <param name="aabbs">A <see cref="RaytracingGeometryAabbsDescription"/> describing triangle geometry.</param> /// <param name="flags">The geometry flags.</param> public RaytracingGeometryDescription(RaytracingGeometryAabbsDescription aabbs, RaytracingGeometryFlags flags = RaytracingGeometryFlags.None) : this() { Type = RaytracingGeometryType.ProceduralPrimitiveAabbs; Flags = flags; AABBs = aabbs; }
/// <summary> /// Initializes a new instance of the <see cref="RaytracingGeometryDescription"/> struct. /// </summary> /// <param name="triangles">A <see cref="RaytracingGeometryTrianglesDescription"/> describing triangle geometry.</param> /// <param name="flags">The geometry flags.</param> public RaytracingGeometryDescription(RaytracingGeometryTrianglesDescription triangles, RaytracingGeometryFlags flags = RaytracingGeometryFlags.None) : this() { Type = RaytracingGeometryType.Triangles; Flags = flags; Triangles = triangles; }