Example #1
0
        public static VkSparseImageOpaqueMemoryBindInfo.Raw *MarshalIndirect(this VkSparseImageOpaqueMemoryBindInfo s, ref byte *unmanaged)
        {
            var result = (VkSparseImageOpaqueMemoryBindInfo.Raw *)unmanaged;

            unmanaged += VkSparseImageOpaqueMemoryBindInfo.Raw.SizeInBytes;
            *result = s.MarshalDirect(ref unmanaged);
            return(result);
        }
Example #2
0
        public static VkSparseImageOpaqueMemoryBindInfo.Raw MarshalDirect(this VkSparseImageOpaqueMemoryBindInfo s, ref byte *unmanaged)
        {
            var pBinds = s.Binds.MarshalDirect(ref unmanaged);

            VkSparseImageOpaqueMemoryBindInfo.Raw result;
            result.image     = s.Image?.Handle ?? VkImage.HandleType.Null;
            result.bindCount = s.Binds?.Count ?? 0;
            result.pBinds    = pBinds;
            return(result);
        }
Example #3
0
 public static int SizeOfMarshalIndirect(this VkSparseImageOpaqueMemoryBindInfo s) =>
 s.SizeOfMarshalDirect() + VkSparseImageOpaqueMemoryBindInfo.Raw.SizeInBytes;
Example #4
0
 public static int SizeOfMarshalDirect(this VkSparseImageOpaqueMemoryBindInfo s)
 {
     return
         (s.Binds.SizeOfMarshalDirect());
 }