public static int SizeOfMarshalDirect(this VkCommandPoolCreateInfo s) { if (s == null) { throw new InvalidOperationException("Trying to directly marshal a null."); } return (s.Next.SizeOfMarshalIndirect()); }
public static VkCommandPoolCreateInfo.Raw *MarshalIndirect(this VkCommandPoolCreateInfo s, ref byte *unmanaged) { if (s == null) { return((VkCommandPoolCreateInfo.Raw *) 0); } var result = (VkCommandPoolCreateInfo.Raw *)unmanaged; unmanaged += VkCommandPoolCreateInfo.Raw.SizeInBytes; *result = s.MarshalDirect(ref unmanaged); return(result); }
public static VkCommandPoolCreateInfo.Raw MarshalDirect(this VkCommandPoolCreateInfo s, ref byte *unmanaged) { if (s == null) { throw new InvalidOperationException("Trying to directly marshal a null."); } var pNext = s.Next.MarshalIndirect(ref unmanaged); VkCommandPoolCreateInfo.Raw result; result.sType = VkStructureType.CommandPoolCreateInfo; result.pNext = pNext; result.flags = s.Flags; result.queueFamilyIndex = s.QueueFamilyIndex; return(result); }
public static int SizeOfMarshalIndirect(this VkCommandPoolCreateInfo s) => s == null ? 0 : s.SizeOfMarshalDirect() + VkCommandPoolCreateInfo.Raw.SizeInBytes;