public static int SizeOfMarshalDirect(this VkBufferViewCreateInfo s) { if (s == null) { throw new InvalidOperationException("Trying to directly marshal a null."); } return (s.Next.SizeOfMarshalIndirect()); }
public static VkBufferViewCreateInfo.Raw *MarshalIndirect(this VkBufferViewCreateInfo s, ref byte *unmanaged) { if (s == null) { return((VkBufferViewCreateInfo.Raw *) 0); } var result = (VkBufferViewCreateInfo.Raw *)unmanaged; unmanaged += VkBufferViewCreateInfo.Raw.SizeInBytes; *result = s.MarshalDirect(ref unmanaged); return(result); }
public static VkBufferViewCreateInfo.Raw MarshalDirect(this VkBufferViewCreateInfo s, ref byte *unmanaged) { if (s == null) { throw new InvalidOperationException("Trying to directly marshal a null."); } var pNext = s.Next.MarshalIndirect(ref unmanaged); VkBufferViewCreateInfo.Raw result; result.sType = VkStructureType.BufferViewCreateInfo; result.pNext = pNext; result.flags = s.Flags; result.buffer = s.Buffer?.Handle ?? VkBuffer.HandleType.Null; result.format = s.Format; result.offset = s.Offset; result.range = s.Range; return(result); }
public static int SizeOfMarshalIndirect(this VkBufferViewCreateInfo s) => s == null ? 0 : s.SizeOfMarshalDirect() + VkBufferViewCreateInfo.Raw.SizeInBytes;