Hash :
b0ee4239
Author :
Date :
2025-10-01T16:46:10
Translator: Validate clip/cull distance size during parse ... instead of in a post-parse pass. In this process, these array sizes are determined during parse itself, and so can be applied to the IR earlier. Bug: angleproject:349994211 Change-Id: I542970f9262e346fd7443e48d780e8abfec95315 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/7003832 Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org> Reviewed-by: Geoff Lang <geofflang@chromium.org>
//
// Copyright 2025 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.
//
// The SizeClipCullDistance function redeclares gl_ClipDistance and gl_CullDistance when implicitly
// sized.
//
#ifndef COMPILER_TRANSLATOR_SIZECLIPCULLDISTANCE_H_
#define COMPILER_TRANSLATOR_SIZECLIPCULLDISTANCE_H_
#include "GLSLANG/ShaderVars.h"
#include "compiler/translator/Compiler.h"
namespace sh
{
class TIntermBlock;
bool SizeClipCullDistance(TCompiler *compiler,
TIntermBlock *root,
const ImmutableString &name,
uint8_t size);
} // namespace sh
#endif // COMPILER_TRANSLATOR_SIZECLIPCULLDISTANCE_H_