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