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