예제 #1
0
 internal unsafe void MarshalTo(Interop.ImageBlit *pointer)
 {
     Validate.CheckLength(this.SourceOffsets, 2, "SourceOffsets");
     MemUtil.WriteToPtr((IntPtr)(&pointer->SourceOffsets), this.SourceOffsets, 0, 2);
     Validate.CheckLength(this.DestinationOffsets, 2, "DestinationOffsets");
     MemUtil.WriteToPtr((IntPtr)(&pointer->DestinationOffsets), this.DestinationOffsets, 0, 2);
     pointer->SourceSubresource      = this.SourceSubresource;
     pointer->DestinationSubresource = this.DestinationSubresource;
 }
예제 #2
0
 internal ImageBlit(Interop.ImageBlit* ptr)
 {
     m = ptr;
 }
예제 #3
0
 public ImageBlit()
 {
     m = (Interop.ImageBlit*) Interop.Structure.Allocate (typeof (Interop.ImageBlit));
 }