Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
シェーダのコンパイル部分コード
private Effect CompileShader(string path)
{
using (var shader = ShaderBytecode.CompileFromFile(path,
"fx_5_0",
ShaderFlags.None,
EffectFlags.None))
{
return new Effect(device, shader);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment