コード例 #1
0
        public void Begin(VkCommandBufferUsageFlag Flags)
        {
            VkCommandBufferBeginInfo CommandBufferBeginInfo = new VkCommandBufferBeginInfo();

            CommandBufferBeginInfo.flags           = Flags;
            CommandBufferBeginInfo.inheritanceInfo = null;
            Begin(ref CommandBufferBeginInfo);
        }
コード例 #2
0
 protected void BeginRecording(VkCommandBufferUsageFlag usage,
                               VkCommandBufferInheritanceInfo?inheritance = null)
 {
     AssertValid();
     Debug.Assert(_state == State.Allocated);
     unsafe
     {
         var inherit = inheritance ?? default(VkCommandBufferInheritanceInfo);
         var info    = new VkCommandBufferBeginInfo()
         {
             SType            = VkStructureType.CommandBufferBeginInfo,
             PNext            = IntPtr.Zero,
             Flags            = usage,
             PInheritanceInfo = inheritance.HasValue ? &inherit : (VkCommandBufferInheritanceInfo *)0
         };
         Handle.BeginCommandBuffer(&info);
         _state = State.Building;
     }
 }
コード例 #3
0
 public CommandBufferRecorder RecordCommands(VkCommandBufferUsageFlag usage,
                                             VkCommandBufferInheritanceInfo?inheritance = null)
 {
     BeginRecording(usage, inheritance);
     return(new CommandBufferRecorder(this));
 }