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

Method bind_input

framework/core/command_buffer.h:546–556  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

544template <vkb::BindingType bindingType>
545inline void CommandBuffer<bindingType>::bind_lighting(vkb::rendering::LightingState<bindingType> &lighting_state, uint32_t set, uint32_t binding)
546{
547 bind_buffer(lighting_state.light_buffer.get_buffer(), lighting_state.light_buffer.get_offset(), lighting_state.light_buffer.get_size(), set, binding, 0);
548
549 set_specialization_constant(0, to_u32(lighting_state.directional_lights.size()));
550 set_specialization_constant(1, to_u32(lighting_state.point_lights.size()));
551 set_specialization_constant(2, to_u32(lighting_state.spot_lights.size()));
552}
553
554template <vkb::BindingType bindingType>
555inline void CommandBuffer<bindingType>::bind_pipeline_layout(PipelineLayoutType &pipeline_layout)
556{
557 if constexpr (bindingType == vkb::BindingType::Cpp)
558 {
559 pipeline_state.set_pipeline_layout(pipeline_layout);

Callers 2

drawMethod · 0.45
drawMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected