Skip to content

Commit fa6cbc8

Browse files
committed
[Direct3D11] Remove using of "ref" in constructors to support VB
1 parent 8c706c7 commit fa6cbc8

File tree

3 files changed

+0
-39
lines changed

3 files changed

+0
-39
lines changed

Source/SharpDX.Direct3D11/BlendState1.cs

-12
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,6 @@ public BlendState1(Device1 device, SharpDX.Direct3D11.BlendStateDescription1 des
3535
{
3636
device.CreateBlendState1(ref description, this);
3737
}
38-
39-
/// <summary>
40-
/// Constructs a new <see cref = "T:SharpDX.Direct3D11.BlendState1" /> based on the specified description.
41-
/// </summary>
42-
/// <param name = "device">The device with which to associate the state object.</param>
43-
/// <param name = "description">The state description.</param>
44-
/// <returns>The newly created object.</returns>
45-
public BlendState1(Device1 device, ref BlendStateDescription1 description)
46-
: base(IntPtr.Zero)
47-
{
48-
device.CreateBlendState1(ref description, this);
49-
}
5038
}
5139
}
5240
#endif

Source/SharpDX.Direct3D11/RaterizerState1.cs

-12
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,6 @@ public RasterizerState1(Device1 device, RasterizerStateDescription1 description)
3535
{
3636
device.CreateRasterizerState1(ref description, this);
3737
}
38-
39-
/// <summary>
40-
/// Constructs a new <see cref = "T:SharpDX.Direct3D11.RasterizerState1" /> based on the specified description.
41-
/// </summary>
42-
/// <param name = "device">The device with which to associate the state object.</param>
43-
/// <param name = "description">The state description.</param>
44-
/// <returns>The newly created object.</returns>
45-
public RasterizerState1(Device1 device, ref RasterizerStateDescription1 description)
46-
: base(IntPtr.Zero)
47-
{
48-
device.CreateRasterizerState1(ref description, this);
49-
}
5038
}
5139
}
5240
#endif

Source/SharpDX.Direct3D11/SamplerState.cs

-15
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,5 @@ public SamplerState(Device device, SamplerStateDescription description)
3737
{
3838
device.CreateSamplerState(ref description, this);
3939
}
40-
41-
/// <summary>
42-
/// Constructs a new <see cref = "T:SharpDX.Direct3D11.SamplerState" /> based on the specified description.
43-
/// </summary>
44-
/// <param name = "device">The device with which to associate the state object.</param>
45-
/// <param name = "description">The state description.</param>
46-
/// <returns>The newly created object.</returns>
47-
/// <msdn-id>ff476518</msdn-id>
48-
/// <unmanaged>HRESULT ID3D11Device::CreateSamplerState([In] const D3D11_SAMPLER_DESC* pSamplerDesc,[Out, Fast] ID3D11SamplerState** ppSamplerState)</unmanaged>
49-
/// <unmanaged-short>ID3D11Device::CreateSamplerState</unmanaged-short>
50-
public SamplerState(Device device, ref SamplerStateDescription description)
51-
: base(IntPtr.Zero)
52-
{
53-
device.CreateSamplerState(ref description, this);
54-
}
5540
}
5641
}

0 commit comments

Comments
 (0)