summaryrefslogtreecommitdiffstats
path: root/external/slang-tint-headers/slang-tint.h
blob: ee70b5607090d7e27bb482b98d325dcb4f4e712a (plain)
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 <stddef.h>
#include <stdint.h>

struct tint_CompileRequest
{
    const char* wgslCode;
    size_t wgslCodeLength;
};

struct tint_CompileResult
{
    const uint8_t* buffer;
    size_t bufferSize;
    const char* error;
};


typedef int (*tint_CompileFunc)(tint_CompileRequest* request, tint_CompileResult* result);

typedef void (*tint_FreeResultFunc)(tint_CompileResult* result);