public void TestBreak() { Mount(); var fileStream = VirtualFileSystem.OpenStream("/assets/shaders/UnrollBreak.hlsl", VirtualFileMode.Open, VirtualFileAccess.Read); var sr = new StreamReader(fileStream); string source = sr.ReadToEnd(); fileStream.Close(); var compiler = new SiliconStudio.Paradox.Graphics.ShaderCompiler.OpenGL.ShaderCompiler(true); compiler.Compile(source, "VSMain", "vs"); }
public void TestBreak() { Mount(); var fileStream = VirtualFileSystem.OpenStream("/assets/shaders/UnrollBreak.hlsl", VirtualFileMode.Open, VirtualFileAccess.Read); var sr = new StreamReader(fileStream); string source = sr.ReadToEnd(); fileStream.Close(); var compiler = new SiliconStudio.Paradox.Graphics.ShaderCompiler.OpenGL.ShaderCompiler(true); compiler.Compile(source, "VSMain", "vs"); }