// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved.
#pragma once
#if COMPILE_WITH_D3D_SHADER_COMPILER
#include "Engine/ShadersCompilation/ShaderCompiler.h"
///
/// Implementation of shaders compiler for DirectX platform using D3DCompiler.
///
class ShaderCompilerD3D : public ShaderCompiler
{
private:
Array _funcNameDefineBuffer;
uint32 _flags;
public:
///
/// Initializes a new instance of the class.
///
/// The profile.
ShaderCompilerD3D(ShaderProfile profile);
protected:
// [ShaderCompiler]
bool CompileShader(ShaderFunctionMeta& meta, WritePermutationData customDataWrite = nullptr) override;
bool OnCompileBegin() override;
};
#endif