Fix for building with Windows/MSVC
This commit is contained in:
parent
6b8cb94ce4
commit
5678ef8d83
2 changed files with 6 additions and 1 deletions
|
@ -20,6 +20,10 @@
|
||||||
// IN THE SOFTWARE.
|
// IN THE SOFTWARE.
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
#include <intrin.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "ispc_texcomp.h"
|
#include "ispc_texcomp.h"
|
||||||
#include "kernel_ispc.h"
|
#include "kernel_ispc.h"
|
||||||
#include <memory.h> // memcpy
|
#include <memory.h> // memcpy
|
||||||
|
|
|
@ -11,6 +11,7 @@ incdirs = include_directories([
|
||||||
])
|
])
|
||||||
|
|
||||||
dependencies = [
|
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@'])
|
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@'])
|
||||||
|
|
Loading…
Reference in a new issue