Exemple #1
0
        static ShaderFlags FromShaderConfiguration()
        {
            ShaderConfiguration configuration = Settings.Default.DefaultShaderConfiguration;

            switch (configuration)
            {
            case ShaderConfiguration.Debug:
                return(ShaderFlags.Debug);

            default:
            case ShaderConfiguration.Release:
                return(ShaderFlags.None);
            }
        }
Exemple #2
0
 public static void UnpackShader(int packedShaderIndex, out int localShaderIndex, out ShaderConfiguration shaderType)
 {
     shaderType       = (ShaderConfiguration)(packedShaderIndex / 1000);
     localShaderIndex = packedShaderIndex % 1000;
 }
Exemple #3
0
 public static int PackShader(int localShaderIndex, ShaderConfiguration shaderType)
 {
     return(localShaderIndex + (int)shaderType * 1000);
 }