light/modules/renderer/public/dx/blender.hpp
light7734 cd886aa8c9
Some checks reported errors
continuous-integration/drone/push Build was killed
refactor: flatten directory structure
2025-07-20 04:46:15 +03:30

30 lines
527 B
C++

#pragma once
#include <d3d11.h>
#include <renderer/blender.hpp>
#include <wrl.h>
namespace lt {
class dxSharedContext;
class dxBlender: public Blender
{
public:
dxBlender(Ref<dxSharedContext> sharedContext);
void enable(BlendFactor srcFactor, BlendFactor dstFactor) override;
void disable() override;
private:
Ref<dxSharedContext> m_context;
const std::unordered_map<BlendFactor, D3D11_BLEND> m_factor_map;
Microsoft::WRL::ComPtr<ID3D11BlendState> m_blend_state;
D3D11_BLEND_DESC m_desc;
};
} // namespace lt