public static VkDescriptorBufferInfo.Raw *MarshalIndirect(this VkDescriptorBufferInfo s, ref byte *unmanaged) { var result = (VkDescriptorBufferInfo.Raw *)unmanaged; unmanaged += VkDescriptorBufferInfo.Raw.SizeInBytes; *result = s.MarshalDirect(ref unmanaged); return(result); }
public static VkDescriptorBufferInfo.Raw MarshalDirect(this VkDescriptorBufferInfo s, ref byte *unmanaged) { VkDescriptorBufferInfo.Raw result; result.sampler = s.Sampler?.Handle ?? VkSampler.HandleType.Null; result.imageView = s.ImageView?.Handle ?? VkImageView.HandleType.Null; result.imageLayout = s.ImageLayout; return(result); }
public static int SizeOfMarshalIndirect(this VkDescriptorBufferInfo s) => s.SizeOfMarshalDirect() + VkDescriptorBufferInfo.Raw.SizeInBytes;
public static int SizeOfMarshalDirect(this VkDescriptorBufferInfo s) { return(0); }