summaryrefslogtreecommitdiff
path: root/tools/render-test/slang-support.h
blob: a9b8c8871b1e2f01503ac9ca3ccbbfc1a0065f09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// slang-support.h
#pragma once

#include "render.h"

#include <slang.h>

#include "shader-input-layout.h"

namespace renderer_test {

struct ShaderCompiler
{
    RefPtr<Renderer>        renderer;
    SlangCompileTarget      target;
    SlangSourceLanguage     sourceLanguage;
    SlangPassThrough        passThrough;
    char const*             profile;
    SlangSession*           slangSession;
    
    RefPtr<ShaderProgram> compileProgram(    
        ShaderCompileRequest const& request);
};


} // renderer_test