// Copyright (c) Wojciech Figat. All rights reserved. #pragma once #if COMPILE_WITH_DX_SHADER_COMPILER #include "Engine/ShadersCompilation/ShaderCompiler.h" /// /// Implementation of shaders compiler for DirectX platform using https://github.com/microsoft/DirectXShaderCompiler. /// class ShaderCompilerDX : public ShaderCompiler { private: Array _funcNameDefineBuffer; void* _compiler; void* _library; void* _containerReflection; public: /// /// Initializes a new instance of the class. /// /// The profile. ShaderCompilerDX(ShaderProfile profile); /// /// Finalizes an instance of the class. /// ~ShaderCompilerDX(); protected: // [ShaderCompiler] bool CompileShader(ShaderFunctionMeta& meta, WritePermutationData customDataWrite = nullptr) override; bool OnCompileBegin() override; }; #endif