yum-mirror/slang

Making it easier to work with shaders

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

Anders LeinoAdd WGSL support for slang-test (#5174)509409ef1

master
404 B22 linesraw
1#pragma once
2
3#include <stddef.h>
4#include <stdint.h>
5
6struct tint_CompileRequest
7{
8    const char* wgslCode;
9    size_t wgslCodeLength;
10};
11
12struct tint_CompileResult
13{
14    const uint8_t* buffer;
15    size_t bufferSize;
16    const char* error;
17};
18
19
20typedef int (*tint_CompileFunc)(tint_CompileRequest* request, tint_CompileResult* result);
21
22typedef void (*tint_FreeResultFunc)(tint_CompileResult* result);