Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PixelShader"/> class.
 /// </summary>
 /// <param name="device">The device.</param>
 /// <param name="function">The function.</param>
 /// <unmanaged>HRESULT IDirect3DDevice9::CreatePixelShader([In] const void* pFunction,[Out, Fast] IDirect3DPixelShader9** ppShader)</unmanaged>
 public PixelShader(Device device, ShaderBytecode function)
 {
     device.CreatePixelShader(function.BufferPointer, this);
     this.function = function;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PixelShader"/> class.
 /// </summary>
 /// <param name="device">The device.</param>
 /// <param name="function">The function.</param>
 /// <unmanaged>HRESULT IDirect3DDevice9::CreatePixelShader([In] const void* pFunction,[Out, Fast] IDirect3DPixelShader9** ppShader)</unmanaged>	
 public PixelShader(Device device, ShaderBytecode function)
 {
     device.CreatePixelShader(function.BufferPointer, this);
     this.function = function;
 }