| 1237 | template <vkb::BindingType bindingType> |
| 1238 | inline void CommandBuffer<bindingType>::set_viewport_state(vkb::rendering::ViewportState const &state_info) |
| 1239 | { |
| 1240 | pipeline_state.set_viewport_state(state_info); |
| 1241 | } |
| 1242 | |
| 1243 | template <vkb::BindingType bindingType> |
| 1244 | inline void CommandBuffer<bindingType>::update_buffer(vkb::core::Buffer<bindingType> const &buffer, DeviceSizeType offset, std::vector<uint8_t> const &data) |
| 1245 | { |
| 1246 | if constexpr (bindingType == vkb::BindingType::Cpp) |
| 1247 | { |
| 1248 | this->get_resource().template updateBuffer<uint8_t>(buffer.get_handle(), offset, data); |
| 1249 | } |
| 1250 | else |
| 1251 | { |
| 1252 | this->get_resource().template updateBuffer<uint8_t>(buffer.get_resource(), static_cast<vk::DeviceSize>(offset), data); |