FCT
载入中...
搜索中...
未找到
VK_BlendState.h
浏览该文件的文档.
1//
2// Created by Administrator on 2025/3/23.
3//
4#include "../ThirdParty.h"
5#include "./BlendState.h"
6#ifndef VK_BLENDSTATE_H
7#define VK_BLENDSTATE_H
8
9namespace FCT
10{
11 class VK_Context;
12 class VK_BlendState : public BlendState {
13 public:
15 void create() override;
16 vk::PipelineColorBlendStateCreateInfo& colorBlendStateCreateInfo() { return m_createInfo; }
17 private:
19 std::vector<vk::PipelineColorBlendAttachmentState> m_attachmentStates;
20 vk::PipelineColorBlendStateCreateInfo m_createInfo;
21
22 vk::BlendFactor convertBlendFactor(BlendFactor factor) const;
23 vk::BlendOp convertBlendOp(BlendOp op) const;
24 vk::LogicOp convertLogicOp(LogicOp op) const;
25 };
26}
27
28#endif //VK_BLENDSTATE_H
BlendState & op(BlendOp operation, int target=-1)
vk::PipelineColorBlendStateCreateInfo m_createInfo
vk::BlendOp convertBlendOp(BlendOp op) const
vk::PipelineColorBlendStateCreateInfo & colorBlendStateCreateInfo()
VK_BlendState(VK_Context *ctx)
vk::LogicOp convertLogicOp(LogicOp op) const
vk::BlendFactor convertBlendFactor(BlendFactor factor) const
std::vector< vk::PipelineColorBlendAttachmentState > m_attachmentStates