yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
509409ef1
master
1#pragma once 2 3#include <stddef.h> 4#include <stdint.h> 5 6struct tint_CompileRequest 7{ 8const char * wgslCode ; 9size_t wgslCodeLength ; 10}; 11 12struct tint_CompileResult 13{ 14const uint8_t * buffer ; 15size_t bufferSize ; 16const char * error ; 17}; 18 19 20typedef int (* tint_CompileFunc )(tint_CompileRequest * request ,tint_CompileResult * result ); 21 22typedef void (* tint_FreeResultFunc )(tint_CompileResult * result );