Example #1
0
        public BuildRaytracingAccelerationStructureInputs
        (
            RaytracingAccelerationStructureType?type        = null,
            RaytracingAccelerationStructureBuildFlags?flags = null,
            uint?numDescs = null,
            ElementsLayout?descsLayout = null,
            BuildRaytracingAccelerationStructureInputsUnion?anonymous = null,
            ulong?instanceDescs = null,
            RaytracingGeometryDesc *pGeometryDescs   = null,
            RaytracingGeometryDesc **ppGeometryDescs = null
        ) : this()
        {
            if (type is not null)
            {
                Type = type.Value;
            }

            if (flags is not null)
            {
                Flags = flags.Value;
            }

            if (numDescs is not null)
            {
                NumDescs = numDescs.Value;
            }

            if (descsLayout is not null)
            {
                DescsLayout = descsLayout.Value;
            }

            if (anonymous is not null)
            {
                Anonymous = anonymous.Value;
            }

            if (instanceDescs is not null)
            {
                InstanceDescs = instanceDescs.Value;
            }

            if (pGeometryDescs is not null)
            {
                PGeometryDescs = pGeometryDescs;
            }

            if (ppGeometryDescs is not null)
            {
                PpGeometryDescs = ppGeometryDescs;
            }
        }
Example #2
0
        public AnonymousRecordD3d12L12497C5
        (
            ulong?instanceDescs = null,
            RaytracingGeometryDesc *pGeometryDescs   = null,
            RaytracingGeometryDesc **ppGeometryDescs = null
        ) : this()
        {
            if (instanceDescs is not null)
            {
                InstanceDescs = instanceDescs.Value;
            }

            if (pGeometryDescs is not null)
            {
                PGeometryDescs = pGeometryDescs;
            }

            if (ppGeometryDescs is not null)
            {
                PpGeometryDescs = ppGeometryDescs;
            }
        }
Example #3
0
        public BuildRaytracingAccelerationStructureInputsUnion
        (
            ulong?instanceDescs = null,
            RaytracingGeometryDesc *pGeometryDescs   = null,
            RaytracingGeometryDesc **ppGeometryDescs = null
        ) : this()
        {
            if (instanceDescs is not null)
            {
                InstanceDescs = instanceDescs.Value;
            }

            if (pGeometryDescs is not null)
            {
                PGeometryDescs = pGeometryDescs;
            }

            if (ppGeometryDescs is not null)
            {
                PpGeometryDescs = ppGeometryDescs;
            }
        }