Exemplo n.º 1
0
        public WriteDescriptorSetAccelerationStructureNV
        (
            StructureType?sType             = StructureType.WriteDescriptorSetAccelerationStructureNV,
            void *pNext                     = null,
            uint?accelerationStructureCount = null,
            AccelerationStructureNV *pAccelerationStructures = null
        ) : this()
        {
            if (sType is not null)
            {
                SType = sType.Value;
            }

            if (pNext is not null)
            {
                PNext = pNext;
            }

            if (accelerationStructureCount is not null)
            {
                AccelerationStructureCount = accelerationStructureCount.Value;
            }

            if (pAccelerationStructures is not null)
            {
                PAccelerationStructures = pAccelerationStructures;
            }
        }
Exemplo n.º 2
0
 /// <summary>To be documented.</summary>
 public static unsafe Result CreateAccelerationStructure(this NVRayTracing thisApi, [Count(Count = 0)] Device device, [Count(Count = 0), Flow(FlowDirection.In)] ReadOnlySpan <AccelerationStructureCreateInfoNV> pCreateInfo, [Count(Count = 0), Flow(FlowDirection.In)] ReadOnlySpan <AllocationCallbacks> pAllocator, [Count(Count = 0), Flow(FlowDirection.Out)] AccelerationStructureNV *pAccelerationStructure)
 {
     // SpanOverloader
     return(thisApi.CreateAccelerationStructure(device, in pCreateInfo.GetPinnableReference(), in pAllocator.GetPinnableReference(), pAccelerationStructure));
 }
Exemplo n.º 3
0
 public abstract unsafe Result CreateAccelerationStructure([Count(Count = 0)] Device device, [Count(Count = 0), Flow(FlowDirection.In)] AccelerationStructureCreateInfoNV *pCreateInfo, [Count(Count = 0), Flow(FlowDirection.In)] AllocationCallbacks *pAllocator, [Count(Count = 0), Flow(FlowDirection.Out)] AccelerationStructureNV *pAccelerationStructure);