blob: 5eaf5bee34a418258ed7689c54eaec0746988df0 [file] [log] [blame]
//
// Copyright 2024 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// RemoveUnusedFramebufferFetch.h:
// If the shader declares |inout| variables but only ever assigns to all their channels, the
// variable is turned into a regular |out| variable.
#ifndef COMPILER_TRANSLATOR_TREEOPS_REMOVEUNUSEDFRAMEBUFFERFETCH_H_
#define COMPILER_TRANSLATOR_TREEOPS_REMOVEUNUSEDFRAMEBUFFERFETCH_H_
#include "common/angleutils.h"
namespace sh
{
class TCompiler;
class TIntermBlock;
class TSymbolTable;
[[nodiscard]] bool RemoveUnusedFramebufferFetch(TCompiler *compiler,
TIntermBlock *root,
TSymbolTable *symbolTable);
} // namespace sh
#endif // COMPILER_TRANSLATOR_TREEOPS_REMOVEUNUSEDFRAMEBUFFERFETCH_H_