ImageGen.h 481 Bytes
Newer Older
Nianchen Deng's avatar
Nianchen Deng committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once
#include "../utils/common.h"
#include "InferPipeline.h"
#include "View.h"
#include "Enhancement.h"

class ImageGen {
public:
    ImageGen(glm::uvec2 res);

    void run(sptr<CudaArray<glm::vec4>> colors);

    GLuint getGlResultTexture() { return _glResultTexture; }

protected:
    glm::uvec2 _res;
    GLuint _glResultTexture;
    GLuint _glResultBuffer;

    GLuint _createGlResultTexture(glm::uvec2 res);
    GLuint _createGlResultBuffer(unsigned int elements);
};