Esempio n. 1
0
        public SubmitInfo
        (
            StructureType?sType                   = StructureType.SubmitInfo,
            void *pNext                           = null,
            uint?waitSemaphoreCount               = null,
            Semaphore *pWaitSemaphores            = null,
            PipelineStageFlags *pWaitDstStageMask = null,
            uint?commandBufferCount               = null,
            CommandBuffer *pCommandBuffers        = null,
            uint?signalSemaphoreCount             = null,
            Semaphore *pSignalSemaphores          = null
        ) : this()
        {
            if (sType is not null)
            {
                SType = sType.Value;
            }

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

            if (waitSemaphoreCount is not null)
            {
                WaitSemaphoreCount = waitSemaphoreCount.Value;
            }

            if (pWaitSemaphores is not null)
            {
                PWaitSemaphores = pWaitSemaphores;
            }

            if (pWaitDstStageMask is not null)
            {
                PWaitDstStageMask = pWaitDstStageMask;
            }

            if (commandBufferCount is not null)
            {
                CommandBufferCount = commandBufferCount.Value;
            }

            if (pCommandBuffers is not null)
            {
                PCommandBuffers = pCommandBuffers;
            }

            if (signalSemaphoreCount is not null)
            {
                SignalSemaphoreCount = signalSemaphoreCount.Value;
            }

            if (pSignalSemaphores is not null)
            {
                PSignalSemaphores = pSignalSemaphores;
            }
        }
Esempio n. 2
0
 public SubmitInfo
 (
     StructureType sType                   = StructureType.SubmitInfo,
     void *pNext                           = default,
     uint waitSemaphoreCount               = default,
     Semaphore *pWaitSemaphores            = default,
     PipelineStageFlags *pWaitDstStageMask = default,
     uint commandBufferCount               = default,
     CommandBuffer *pCommandBuffers        = default,
     uint signalSemaphoreCount             = default,
     Semaphore *pSignalSemaphores          = default
 )
 {
     SType = sType;
     PNext = pNext;
     WaitSemaphoreCount   = waitSemaphoreCount;
     PWaitSemaphores      = pWaitSemaphores;
     PWaitDstStageMask    = pWaitDstStageMask;
     CommandBufferCount   = commandBufferCount;
     PCommandBuffers      = pCommandBuffers;
     SignalSemaphoreCount = signalSemaphoreCount;
     PSignalSemaphores    = pSignalSemaphores;
 }