MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / set_viewport

Method set_viewport

framework/core/command_buffer.h:1239–1249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1237template <vkb::BindingType bindingType>
1238inline void CommandBuffer<bindingType>::set_viewport_state(vkb::rendering::ViewportState const &state_info)
1239{
1240 pipeline_state.set_viewport_state(state_info);
1241}
1242
1243template <vkb::BindingType bindingType>
1244inline 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);

Callers 1

drawMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected