// Copyright (C) 2009-2020, Panagiotis Christopoulos Charitos and contributors. // All rights reserved. // Code licensed under the BSD License. // http://www.anki3d.org/LICENSE #include #include ANKI_TEST(Gr, ShaderCompiler) { HeapAllocator alloc(allocAligned, nullptr); ShaderCompilerCache cache(alloc, "./"); const char* SRC = R"( void main() { })"; DynamicArrayAuto bin(alloc); ShaderCompilerOptions options; options.m_outLanguage = ShaderLanguage::SPIRV; ANKI_TEST_EXPECT_NO_ERR(cache.compile(SRC, nullptr, options, bin)); }