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