blob: ebe5a121b231cd55c6aca79cf94cade8e5efe65f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#pragma once
#include "Shader.hpp"
namespace amalgine {
class CompiledPixelShader;
using PixelShaderMainFunc = std::function<void()>;
class PixelShader : public Shader
{
DISABLE_COPY(PixelShader)
friend class ShaderProgram;
public:
PixelShader();
void defineMain(PixelShaderMainFunc mainFunc);
Result<CompiledPixelShader*> compile();
};
}
|