Hash :
b0f9c01e
Author :
Date :
2023-05-01T12:54:10
metal: adds feature that minimizes generated shader differences This adds a feature (enabled by default) that results in generating the same code regardless of whether emulateAlphaToCoverage is enabled or addExplicitBoolCasts. This is done to maximize cache sharing. Bug: chromium:1423136 Change-Id: Ia491f13469c750fc2c45aecf1f93fed53b782dc5 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4496254 Reviewed-by: Alexey Knyazev <lexa.knyazev@gmail.com> Reviewed-by: Kenneth Russell <kbr@chromium.org> Commit-Queue: Scott Violet <sky@chromium.org>
//
// Copyright 2022 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.
//
// ConstantNames:
// Implementation of constant values used by the metal backend.
#include <stdio.h>
#include "GLSLANG/ShaderLang.h"
namespace sh
{
namespace mtl
{
/** extern */
const char kMultisampledRenderingConstName[] = "ANGLEMultisampledRendering";
const char kRasterizerDiscardEnabledConstName[] = "ANGLERasterizerDisabled";
const char kDepthWriteEnabledConstName[] = "ANGLEDepthWriteEnabled";
const char kEmulateAlphaToCoverageConstName[] = "ANGLEEmulateAlphaToCoverage";
} // namespace mtl
} // namespace sh