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