| 1078 | vk::ImageLayout::eTransferDstOptimal, |
| 1079 | reinterpret_cast<std::vector<vk::ImageResolve> const &>(regions)); |
| 1080 | } |
| 1081 | } |
| 1082 | |
| 1083 | template <vkb::BindingType bindingType> |
| 1084 | inline void CommandBuffer<bindingType>::set_blend_constants(std::array<float, 4> const &blend_constants) |
| 1085 | { |
| 1086 | this->get_resource().setBlendConstants(blend_constants.data()); |
| 1087 | } |
| 1088 | |
| 1089 | template <vkb::BindingType bindingType> |
| 1090 | inline void CommandBuffer<bindingType>::set_color_blend_state(vkb::rendering::ColorBlendState<bindingType> const &state_info) |
| 1091 | { |
| 1092 | if constexpr (bindingType == vkb::BindingType::Cpp) |
| 1093 | { |
| 1094 | pipeline_state.set_color_blend_state(state_info); |
| 1095 | } |
| 1096 | else |
| 1097 | { |
| 1098 | pipeline_state.set_color_blend_state(reinterpret_cast<vkb::rendering::ColorBlendStateCpp const &>(state_info)); |
no test coverage detected