Hash :
65f4d2a4
Author :
Date :
2023-04-17T10:08:18
Adds features to enable loading/saving metallibs to blobcache CompileMetalShaders results in the appropriate command line tool being run to generate metallib blobs from shader source. DisableProgramCaching results in not saving programs to BlobCache LoadMetalShadersFromBlobCache results in trying to load metallibs from BlobCache. Bug: chromium:1423136 Change-Id: I01a4d7a5d60ed5ac978fb99db01b741e0f19e76b Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4434293 Reviewed-by: Geoff Lang <geofflang@chromium.org> Commit-Queue: Scott Violet <sky@chromium.org>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
//
// Copyright 2023 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.
//
// process.h:
// Process manages a child process. This is largely copied from chrome.
//
#ifndef LIBANGLE_RENDERER_METAL_PROCESS_H_
#define LIBANGLE_RENDERER_METAL_PROCESS_H_
#include <sys/types.h>
#include <string>
#include <vector>
namespace rx
{
namespace mtl
{
class Process
{
public:
Process(const std::vector<std::string> &argv);
Process(const Process &) = delete;
Process &operator=(const Process &) = delete;
~Process();
bool WaitForExit(int &exit_code);
bool DidLaunch() const;
private:
const pid_t pid_;
};
} // namespace mtl
} // namespace rx
#endif /* LIBANGLE_RENDERER_METAL_PROCESS_H_ */