sharpdx / SharpDX

SharpDX GitHub Repository
http://sharpdx.org
MIT License
1.69k stars 641 forks source link

ShaderBytecode.Compile crashes on byte order mark. #952

Closed Axiverse closed 6 years ago

Axiverse commented 6 years ago

CompileFromFile properly reads files including the byte order mark, however compile from a byte buffer crashes when the file starts with a byte order mark EF BB BF in this case for UTF-8.

xoofx commented 6 years ago

Yes, this is a bug in DirectCompiler itself, not sure we can do anything about this.