Пример #1
0
 /// <summary>
 /// Vertex Shader
 /// </summary>
 /// <param name="device"></param>
 /// <param name="name"></param>
 /// <param name="byteCode"></param>
 public ComputeShader(Device device, string name, byte[] byteCode)
     : base(name, ShaderStage.Compute)
 {
     Shader = Collect(new global::SharpDX.Direct3D11.ComputeShader(device, byteCode));
 }
Пример #2
0
 /// <summary>
 /// Vertex Shader
 /// </summary>
 /// <param name="device"></param>
 /// <param name="name"></param>
 /// <param name="byteCode"></param>
 public ComputeShader(Device device, string name, byte[] byteCode)
     : base(name, ShaderStage.Compute)
 {
     shader           = new global::SharpDX.Direct3D11.ComputeShader(device, byteCode);
     shader.DebugName = name;
 }