1#ifndef LIBSBX_GRAPHICS_BUFFERS_PUSH_HANDLER_HPP_
2#define LIBSBX_GRAPHICS_BUFFERS_PUSH_HANDLER_HPP_
9#include <libsbx/graphics/pipeline/shader.hpp>
10#include <libsbx/graphics/pipeline/pipeline.hpp>
12#include <libsbx/graphics/commands/command_buffer.hpp>
14namespace sbx::graphics {
24 template<
typename Type>
25 auto push(
const Type&
object, std::size_t size, std::size_t offset) -> void;
27 template<
typename Type>
28 auto push(
const std::string& uniform_name,
const Type&
object, std::size_t size = 0) -> void;
36 std::optional<shader::uniform_block> _uniform_block;
37 std::unique_ptr<std::uint8_t[]> _data;
38 VkPipelineLayout _pipeline_layout;
44#include <libsbx/graphics/buffers/push_handler.ipp>
Definition: command_buffer.hpp:14
Definition: pipeline.hpp:18
Definition: push_handler.hpp:16