Function TRAP::Graphics::API::UtilToBlendDesc#
Function Documentation#
-
constexpr VkPipelineColorBlendStateCreateInfo TRAP::Graphics::API::UtilToBlendDesc(const RendererAPI::BlendStateDesc &desc, std::vector<VkPipelineColorBlendAttachmentState> &attachments)#
Utility to create the VkPipelineColorBlendStateCreateInfo struct from a RendererAPI::BlendStateDesc and color blend attachments.
- Parameters:
desc – BlendStateDesc.
attachments – Color blend attachments.
- Returns:
Created VkPipelineColorBlendStateCreateInfo.