working on event system

This commit is contained in:
kbz_8
2023-04-04 12:40:47 +02:00
parent e444856964
commit d360c8fb6a
11 changed files with 122 additions and 57 deletions

View File

@@ -6,13 +6,14 @@
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/03/31 13:18:50 by maldavid #+# #+# */
/* Updated: 2023/04/01 17:26:46 by maldavid ### ########.fr */
/* Updated: 2023/04/03 14:22:35 by maldavid ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef __MLX_PIXEL_PUT__
#define __MLX_PIXEL_PUT__
#include <renderer/images/texture.h>
#include <renderer/descriptors/vk_descriptor_set.h>
namespace mlx
@@ -20,7 +21,7 @@ namespace mlx
class PixelPutPipeline
{
public:
PixelPutPipeline();
PixelPutPipeline() = default;
void init(uint32_t width, uint32_t height, class Renderer& renderer) noexcept;
@@ -36,8 +37,12 @@ namespace mlx
~PixelPutPipeline();
private:
struct _Pimpl;
std::unique_ptr<_Pimpl> _impl;
Texture _texture;
Buffer _buffer;
void* _map = nullptr;
uint32_t _width = 0;
uint32_t _height = 0;
bool _has_been_modified = true;
};
}