Beispiel #1
0
 /// <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;
 }
Beispiel #2
0
 /// <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;
 }