コード例 #1
0
ファイル: CubeTexture.cs プロジェクト: Ziriax/SharpDX
 /// <summary>
 /// Initializes a new instance of the <see cref="CubeTexture"/> class.
 /// </summary>
 /// <param name="device">The device.</param>
 /// <param name="edgeLength">Length of the edge.</param>
 /// <param name="levelCount">The level count.</param>
 /// <param name="usage">The usage.</param>
 /// <param name="format">The format.</param>
 /// <param name="pool">The pool.</param>
 /// <param name="sharedHandle">The shared handle.</param>
 public CubeTexture(Device device, int edgeLength, int levelCount, Usage usage, Format format, Pool pool, ref IntPtr sharedHandle) : base(IntPtr.Zero)
 {
     unsafe
     {
         fixed (void* pSharedHandle = &sharedHandle)
             device.CreateCubeTexture(edgeLength, levelCount, (int)usage, format, pool, this, (IntPtr)pSharedHandle);
     }
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CubeTexture"/> class.
 /// </summary>
 /// <param name="device">The device.</param>
 /// <param name="edgeLength">Length of the edge.</param>
 /// <param name="levelCount">The level count.</param>
 /// <param name="usage">The usage.</param>
 /// <param name="format">The format.</param>
 /// <param name="pool">The pool.</param>
 /// <param name="sharedHandle">The shared handle.</param>
 public CubeTexture(Device device, int edgeLength, int levelCount, Usage usage, Format format, Pool pool, ref IntPtr sharedHandle) : base(IntPtr.Zero)
 {
     unsafe
     {
         fixed(void *pSharedHandle = &sharedHandle)
         device.CreateCubeTexture(edgeLength, levelCount, (int)usage, format, pool, this, (IntPtr)pSharedHandle);
     }
 }
コード例 #3
0
ファイル: CubeTexture.cs プロジェクト: Ziriax/SharpDX
 /// <summary>
 /// Initializes a new instance of the <see cref="CubeTexture"/> class.
 /// </summary>
 /// <param name="device">The device.</param>
 /// <param name="edgeLength">Length of the edge.</param>
 /// <param name="levelCount">The level count.</param>
 /// <param name="usage">The usage.</param>
 /// <param name="format">The format.</param>
 /// <param name="pool">The pool.</param>
 public CubeTexture(Device device, int edgeLength, int levelCount, Usage usage, Format format, Pool pool = Pool.Managed) : base(IntPtr.Zero)
 {
     device.CreateCubeTexture(edgeLength, levelCount, (int)usage, format, pool, this, IntPtr.Zero);
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CubeTexture"/> class.
 /// </summary>
 /// <param name="device">The device.</param>
 /// <param name="edgeLength">Length of the edge.</param>
 /// <param name="levelCount">The level count.</param>
 /// <param name="usage">The usage.</param>
 /// <param name="format">The format.</param>
 /// <param name="pool">The pool.</param>
 public CubeTexture(Device device, int edgeLength, int levelCount, Usage usage, Format format, Pool pool = Pool.Managed) : base(IntPtr.Zero)
 {
     device.CreateCubeTexture(edgeLength, levelCount, (int)usage, format, pool, this, IntPtr.Zero);
 }