public static VkSparseImageMemoryBindInfo.Raw *MarshalIndirect(this VkSparseImageMemoryBindInfo s, ref byte *unmanaged) { var result = (VkSparseImageMemoryBindInfo.Raw *)unmanaged; unmanaged += VkSparseImageMemoryBindInfo.Raw.SizeInBytes; *result = s.MarshalDirect(ref unmanaged); return(result); }
public static VkSparseImageMemoryBindInfo.Raw MarshalDirect(this VkSparseImageMemoryBindInfo s, ref byte *unmanaged) { var pBinds = s.Binds.MarshalDirect(ref unmanaged); VkSparseImageMemoryBindInfo.Raw result; result.image = s.Image?.Handle ?? VkImage.HandleType.Null; result.bindCount = s.Binds?.Count ?? 0; result.pBinds = pBinds; return(result); }
public static int SizeOfMarshalIndirect(this VkSparseImageMemoryBindInfo s) => s.SizeOfMarshalDirect() + VkSparseImageMemoryBindInfo.Raw.SizeInBytes;
public static int SizeOfMarshalDirect(this VkSparseImageMemoryBindInfo s) { return (s.Binds.SizeOfMarshalDirect()); }