yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

Ellie Hermaszewskaextend fiddle to allow custom lua splices in more places (#7559)5120c1cd0

master
612 B29 linesraw
1// slang-fiddle-script.h
2#pragma once
3
4#include "compiler-core/slang-source-loc.h"
5#include "core/slang-list.h"
6#include "core/slang-string.h"
7#include "lua/lapi.h"
8#include "lua/lauxlib.h"
9#include "slang-fiddle-diagnostics.h"
10#include "slang-fiddle-scrape.h"
11
12namespace fiddle
13{
14using namespace Slang;
15
16lua_State* getLuaState();
17
18String evaluateScriptCode(
19    SourceLoc loc,
20    String originalFileName,
21    String scriptSource,
22    DiagnosticSink* sink);
23
24String evaluateLuaExpression(
25    SourceLoc loc,
26    String originalFileName,
27    String scriptSource,
28    DiagnosticSink* sink);
29} // namespace fiddle