Ejemplo n.º 1
0
        private static IShaderConfig GetShader(string shaderFile)
        {
            var shaderDataFilePath = Path.Combine(ShaderCache.ShaderPathRoot, "Common");

            return(new Shader(DefinitionHelper.FromFile(Path.Combine(shaderDataFilePath, shaderFile))));
        }
Ejemplo n.º 2
0
 protected ShaderFromFile FromFile(string shaderFileName, string profile = "ps_3_0", string entryPoint = "main", string compilerOptions = null)
 {
     return(DefinitionHelper.FromFile(Path.Combine(ShaderDataFilePath, shaderFileName), profile, entryPoint, compilerOptions));
 }
Ejemplo n.º 3
0
        private static IShaderConfig GetShader()
        {
            var shaderDataFilePath = Path.Combine(ShaderCache.ShaderPathRoot, "Common");

            return(new Shader(DefinitionHelper.FromFile(Path.Combine(shaderDataFilePath, "MergeChromaYZFromSource.hlsl"))));
        }