8#include <unordered_map>
9#include <Metal/Metal.hpp>
10#include <Foundation/NSBundle.hpp>
26 MTL::Library*
getLibrary(MTL::Device* device,
const NS::Bundle* bundle, NS::Error** error);
29 std::string _sourceCode;
30 std::unordered_map<MTL::Device*, MTL::Library*> _libraries;
Abstract GPU interface for resource creation, state management, and draw submission.
GraphicsDevice * graphicsDevice() const
Shader(GraphicsDevice *graphicsDevice, const ShaderDefinition &definition)