コード例 #1
0
 public CommandBufferBeginInfo
 (
     StructureType sType           = StructureType.CommandBufferBeginInfo,
     void *pNext                   = default,
     CommandBufferUsageFlags flags = default,
     CommandBufferInheritanceInfo *pInheritanceInfo = default
 )
 {
     SType            = sType;
     PNext            = pNext;
     Flags            = flags;
     PInheritanceInfo = pInheritanceInfo;
 }
コード例 #2
0
        protected static void BeginCommandBuffer(CommandBuffer buffer, CommandBufferUsageFlags flags, CommandBufferInheritanceInfo *inheritInfo)
        {
            var info = new CommandBufferBeginInfo
            {
                SType            = StructureType.CommandBufferBeginInfo,
                Flags            = flags,
                PInheritanceInfo = inheritInfo
            };

            var res = VkApi.BeginCommandBuffer(buffer, &info);

            if (res != Result.Success)
            {
                throw new VMASharp.VulkanResultException("Failed to begin Command Buffer recording!", res);
            }
        }
コード例 #3
0
 //Helper methods for other examples
 protected static void BeginCommandBuffer(CommandBuffer buffer, CommandBufferUsageFlags flags = default)
 {
     BeginCommandBuffer(buffer, flags, null);
 }