HeavenWu / slimdx

Automatically exported from code.google.com/p/slimdx
MIT License
0 stars 0 forks source link

D3D11.Effect constructor should use existsing enum instead of an integer #614

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The new 

LoadEffect(D3D11.Device device, 
           string fileName, 
           string profile,  
           D3D11.EffectFlags effectFlags)
{
  D3D11.ShaderBytecode sbc = D3D11.ShaderBytecode.CompileFromFile(
                           fileName,                     
                           "main", 
                           profile, 
                           D3D11.ShaderFlags.None, 
                           effectFlags);

  D3D11.Effect effect = new D3D11.Effect(
                           device, 
                           sbc, 
                           (int) effectFlags); // <- should be enum 

Original issue reported on code.google.com by enriko.r...@gmail.com on 27 Jan 2010 at 5:38

GoogleCodeExporter commented 8 years ago

Original comment by josh.petrie on 30 Jan 2010 at 7:20