mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-07-11 02:03:22 +00:00
Work on slang module compilation
This commit is contained in:
parent
50eb2c13f2
commit
9f85dfd6cc
2 changed files with 12 additions and 1 deletions
|
|
@ -6,7 +6,17 @@
|
|||
*/
|
||||
|
||||
#include <Python.h>
|
||||
#if __has_include("shader-slang/slang.h")
|
||||
#include <shader-slang/slang.h>
|
||||
#include <shader-slang/slang-com-ptr.h>
|
||||
#include <shader-slang/slang-com-helper.h>
|
||||
#else
|
||||
#include <slang.h>
|
||||
#include <slang-com-ptr.h>
|
||||
#include <slang-com-helper.h>
|
||||
#endif
|
||||
|
||||
using namespace slang;
|
||||
|
||||
static char doc[] = "Compile shaders";
|
||||
static PyMethodDef methods[] = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue