Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 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);
 }
Esempio n. 3
0
 public static int SizeOfMarshalIndirect(this VkDescriptorBufferInfo s) =>
 s.SizeOfMarshalDirect() + VkDescriptorBufferInfo.Raw.SizeInBytes;
Esempio n. 4
0
 public static int SizeOfMarshalDirect(this VkDescriptorBufferInfo s)
 {
     return(0);
 }