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

            unmanaged += VkDescriptorImageInfo.Raw.SizeInBytes;
            *result = s.MarshalDirect(ref unmanaged);
            return(result);
        }
Beispiel #2
0
 public static VkDescriptorImageInfo.Raw MarshalDirect(this VkDescriptorImageInfo s, ref byte *unmanaged)
 {
     VkDescriptorImageInfo.Raw result;
     result.buffer = s.Buffer?.Handle ?? VkBuffer.HandleType.Null;
     result.offset = s.Offset;
     result.range  = s.Range;
     return(result);
 }
Beispiel #3
0
 public static int SizeOfMarshalIndirect(this VkDescriptorImageInfo s) =>
 s.SizeOfMarshalDirect() + VkDescriptorImageInfo.Raw.SizeInBytes;
Beispiel #4
0
 public static int SizeOfMarshalDirect(this VkDescriptorImageInfo s)
 {
     return(0);
 }