Example #1
0
 /// <summary>
 ///   Initializes a new instance of the <see cref = "T:SharpDX.Direct3D10.PixelShader" /> class.
 /// </summary>
 /// <param name = "device">The device used to create the shader.</param>
 /// <param name = "shaderBytecode">The compiled shader bytecode.</param>
 public unsafe PixelShader(Device device, byte[] shaderBytecode)
     : base(IntPtr.Zero)
 {
     fixed(void *ptr = shaderBytecode)
     device.CreatePixelShader((IntPtr)ptr, shaderBytecode.Length, this);
 }