Fix for building with Windows/MSVC

This commit is contained in:
leblane 2023-04-28 19:09:20 +03:00
parent 6b8cb94ce4
commit 5678ef8d83
2 changed files with 6 additions and 1 deletions

View file

@ -20,6 +20,10 @@
// IN THE SOFTWARE.
////////////////////////////////////////////////////////////////////////////////
#if defined(_MSC_VER)
#include <intrin.h>
#endif
#include "ispc_texcomp.h"
#include "kernel_ispc.h"
#include <memory.h> // memcpy

View file

@ -11,6 +11,7 @@ incdirs = include_directories([
])
dependencies = [
dependency('vulkan')
]
ispc_kernel = custom_target('ipsc_kernel', input: ['ispc_texcomp/kernel.ispc'], output: ['kernel_ispc.o', 'kernel_ispc_avx2.o', 'kernel_ispc_sse4.o', 'kernel_ispc.h'], command: ['ispc', '-O3', '--arch=x86_64', '--target=sse4,avx2', '--opt=fast-math', '--pic', '@INPUT@', '-h', '@OUTDIR@/kernel_ispc.h', '-o', '@OUTPUT0@'])