コード例 #1
0
ファイル: VertexShader.cs プロジェクト: zmtzawqlp/SharpDX
 /// <summary>
 /// Initializes a new instance of the <see cref="VertexShader"/> class.
 /// </summary>
 /// <param name="device">The device.</param>
 /// <param name="function">The function.</param>
 /// <unmanaged>HRESULT IDirect3DDevice9::CreateVertexShader([In] const void* pFunction,[Out, Fast] IDirect3DVertexShader9** ppShader)</unmanaged>
 public VertexShader(Device device, ShaderBytecode function)
 {
     device.CreateVertexShader(function.BufferPointer, this);
     this.function = function;
 }
コード例 #2
0
ファイル: VertexShader.cs プロジェクト: alexey-bez/SharpDX
 /// <summary>
 /// Initializes a new instance of the <see cref="VertexShader"/> class.
 /// </summary>
 /// <param name="device">The device.</param>
 /// <param name="function">The function.</param>
 /// <unmanaged>HRESULT IDirect3DDevice9::CreateVertexShader([In] const void* pFunction,[Out, Fast] IDirect3DVertexShader9** ppShader)</unmanaged>	
 public VertexShader(Device device, ShaderBytecode function)
 {
     device.CreateVertexShader(function.BufferPointer, this);
     this.function = function;
 }