Пример #1
0
 internal unsafe void MarshalTo(Interop.ImageMemoryBarrier *pointer)
 {
     pointer->SType = StructureType.ImageMemoryBarrier;
     pointer->Next  = null;
     this.Image?.MarshalTo(&pointer->Image);
     pointer->SourceAccessMask            = this.SourceAccessMask;
     pointer->DestinationAccessMask       = this.DestinationAccessMask;
     pointer->OldLayout                   = this.OldLayout;
     pointer->NewLayout                   = this.NewLayout;
     pointer->SourceQueueFamilyIndex      = this.SourceQueueFamilyIndex;
     pointer->DestinationQueueFamilyIndex = this.DestinationQueueFamilyIndex;
     pointer->SubresourceRange            = this.SubresourceRange;
 }
Пример #2
0
 internal ImageMemoryBarrier(Interop.ImageMemoryBarrier* ptr)
 {
     m = ptr;
     Initialize ();
 }
Пример #3
0
 public ImageMemoryBarrier()
 {
     m = (Interop.ImageMemoryBarrier*) Interop.Structure.Allocate (typeof (Interop.ImageMemoryBarrier));
     Initialize ();
 }