render_parameters.hpp

1
2
3
4
5
6
7
#pragma once


#include <planet/vk/commands.hpp>


namespace planet::vk::engine {

Parameters needed by a graphics pipeline

11
12
13
    struct render_parameters {
        engine::renderer &renderer;
        command_buffer &cb;

Frame number

Always between zero and max_frames_in_flight - 1

16
17
        std::size_t current_frame;
    };

Blend mode for render pipeline

21
22
23
24
    enum class blend_mode { none, multiply, add };


}