Beispiel #1
0
 public static unsafe void CreateBlob(PointerSize size, Blob blobOut)
 {
     IntPtr num = IntPtr.Zero;
       Result result = (Result) D3DCommon.D3DCreateBlob_((void*) size, (void*) &num);
       blobOut.NativePointer = num;
       result.CheckError();
 }
Beispiel #2
0
 /// <summary>
 ///   Determines whether the specified <see cref = "PointerSize" /> is equal to this instance.
 /// </summary>
 /// <param name = "other">The <see cref = "PointerSize" /> to compare with this instance.</param>
 /// <returns>
 ///   <c>true</c> if the specified <see cref = "PointerSize" /> is equal to this instance; otherwise, <c>false</c>.
 /// </returns>
 public bool Equals(PointerSize other)
 {
     return(_size == other._size);
 }
Beispiel #3
0
 /// <summary>
 ///   Determines whether the specified <see cref = "PointerSize" /> is equal to this instance.
 /// </summary>
 /// <param name = "other">The <see cref = "PointerSize" /> to compare with this instance.</param>
 /// <returns>
 ///   <c>true</c> if the specified <see cref = "PointerSize" /> is equal to this instance; otherwise, <c>false</c>.
 /// </returns>
 public bool Equals(PointerSize other)
 {
     return _size == other._size;
 }
Beispiel #4
0
 /// <summary>
 /// Converts the pointer size to MiB
 /// </summary>
 /// <param name="size">Size in bytes</param>
 /// <returns>Size in MiBs</returns>
 private PointerSize ToMB(PointerSize size)
 {
     return size / (1024 * 1024);
 }