internal unsafe void MarshalTo(SharpVk.Interop.CopyDescriptorSet *pointer)
 {
     pointer->SType                   = StructureType.CopyDescriptorSet;
     pointer->Next                    = null;
     pointer->SourceSet               = this.SourceSet?.handle ?? default(SharpVk.Interop.DescriptorSet);
     pointer->SourceBinding           = this.SourceBinding;
     pointer->SourceArrayElement      = this.SourceArrayElement;
     pointer->DestinationSet          = this.DestinationSet?.handle ?? default(SharpVk.Interop.DescriptorSet);
     pointer->DestinationBinding      = this.DestinationBinding;
     pointer->DestinationArrayElement = this.DestinationArrayElement;
     pointer->DescriptorCount         = this.DescriptorCount;
 }
        internal static unsafe CopyDescriptorSet MarshalFrom(SharpVk.Interop.CopyDescriptorSet *pointer)
        {
            CopyDescriptorSet result = default(CopyDescriptorSet);

            result.SourceSet               = new SharpVk.DescriptorSet(default(SharpVk.DescriptorPool), pointer->SourceSet);
            result.SourceBinding           = pointer->SourceBinding;
            result.SourceArrayElement      = pointer->SourceArrayElement;
            result.DestinationSet          = new SharpVk.DescriptorSet(default(SharpVk.DescriptorPool), pointer->DestinationSet);
            result.DestinationBinding      = pointer->DestinationBinding;
            result.DestinationArrayElement = pointer->DestinationArrayElement;
            result.DescriptorCount         = pointer->DescriptorCount;
            return(result);
        }
Beispiel #3
0
 public static extern void vkUpdateDescriptorSets(SharpVk.Interop.Device device, uint descriptorWriteCount, SharpVk.Interop.WriteDescriptorSet *descriptorWrites, uint descriptorCopyCount, SharpVk.Interop.CopyDescriptorSet *descriptorCopies);