This repository has been archived by the owner on Mar 30, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 639
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
AndrewSt
committed
Apr 9, 2017
1 parent
f7b0bb5
commit fd878cc
Showing
4 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System; | ||
|
||
namespace SharpDX.Direct3D11 | ||
{ | ||
public partial class Device5 | ||
{ | ||
/// <summary> | ||
/// Opens a handle for a shared fence by using resourceHandle. | ||
/// </summary> | ||
/// <param name="resourceHandle">The handle that was returned by a call to ID3D11Fence::CreateSharedHandle or ID3D12Device::CreateSharedHandle</param> | ||
/// <returns>Fence</returns> | ||
public Fence OpenSharedFence(IntPtr resourceHandle) | ||
{ | ||
IntPtr temp; | ||
OpenSharedFence(resourceHandle, Utilities.GetGuidFromType(typeof(Fence)), out temp); | ||
return CppObject.FromPointer<Fence>(temp); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System; | ||
|
||
namespace SharpDX.Direct3D11 | ||
{ | ||
public partial class Fence | ||
{ | ||
/// <summary> | ||
/// Constructs a new <see cref = "T:SharpDX.Direct3D11.Fence" /> | ||
/// </summary> | ||
/// <param name = "device">The device with which to associate the state object.</param> | ||
/// <param name="initialValue">The initial value for the fence.</param> | ||
/// <param name="flags">A combination of FenceFlags values that are combined by using a bitwise OR operation. The resulting value specifies options for the fence.</param> | ||
/// <returns>The newly created object.</returns> | ||
public Fence(Device5 device, long initialValue, FenceFlags flags) | ||
: base(IntPtr.Zero) | ||
{ | ||
device.CreateFence(initialValue, flags, Utilities.GetGuidFromType(typeof(Fence)), this); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.