// // Copyright 2021 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. // // RewriteR32fImages: Change images qualified with r32f to use r32ui instead. The only supported // operation on these images is imageAtomicExchange(), which works identically with r32ui. This // avoids requiring atomic operations support for the R32_FLOAT format in Vulkan. #ifndef COMPILER_TRANSLATOR_TREEOPS_VULKAN_REWRITER32FIMAGES_H_ #define COMPILER_TRANSLATOR_TREEOPS_VULKAN_REWRITER32FIMAGES_H_ #include "common/angleutils.h" namespace sh { class TCompiler; class TIntermBlock; class TSymbolTable; ANGLE_NO_DISCARD bool RewriteR32fImages(TCompiler *compiler, TIntermBlock *root, TSymbolTable *symbolTable); } // namespace sh #endif // COMPILER_TRANSLATOR_TREEOPS_VULKAN_REWRITER32FIMAGES_H_