diff --git a/Sources/libs/dxc/lib/x64/dxcompiler.lib b/Sources/libs/dxc/lib/x64/dxcompiler.lib index b59818f..6bff550 100644 Binary files a/Sources/libs/dxc/lib/x64/dxcompiler.lib and b/Sources/libs/dxc/lib/x64/dxcompiler.lib differ diff --git a/kfile.js b/kfile.js index aef897e..dcc35f0 100644 --- a/kfile.js +++ b/kfile.js @@ -25,4 +25,6 @@ if (platform === Platform.Windows) { project.addLib('Sources/libs/dxc/lib/x64/dxcompiler'); } +project.setDebugDir('Deployment'); + resolve(project); diff --git a/tests/dxcompiler.dll b/tests/dxcompiler.dll new file mode 100644 index 0000000..30e6f68 Binary files /dev/null and b/tests/dxcompiler.dll differ diff --git a/tests/dxil.dll b/tests/dxil.dll new file mode 100644 index 0000000..db5a1ce Binary files /dev/null and b/tests/dxil.dll differ diff --git a/tests/frag.c b/tests/frag.c deleted file mode 100644 index 29ff5a5..0000000 --- a/tests/frag.c +++ /dev/null @@ -1,4 +0,0 @@ -#include "frag.h" - -uint8_t *kong_frag_code = "DXBCS\000\370\a\225p\224[\335wJ\354P\077+\372\001\000\000\000\230\001\000\000\005\000\000\0004\000\000\000\200\000\000\000\264\000\000\000\350\000\000\000\034\001\000\000RDEFD\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\034\000\000\000\000\004\377\377\000\001\000\000\034\000\000\000Microsoft\040(R)\040HLSL\040Shader\040Compiler\04010.1\000ISGN,\000\000\000\001\000\000\000\b\000\000\000\040\000\000\000\000\000\000\000\001\000\000\000\003\000\000\000\000\000\000\000\017\000\000\000SV_POSITION\000OSGN,\000\000\000\001\000\000\000\b\000\000\000\040\000\000\000\000\000\000\000\000\000\000\000\003\000\000\000\000\000\000\000\017\016\000\000SV_Target\000\253\253SHDR,\000\000\000\100\000\000\000\v\000\000\000e\000\000\003\022\040\020\000\000\000\000\0006\000\000\005\022\040\020\000\000\000\000\000\001\100\000\000\000\000\200\077>\000\000\001STATt\000\000\000\002\000\000\000\000\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"; -size_t kong_frag_code_size = 408; diff --git a/tests/frag.h b/tests/frag.h deleted file mode 100644 index 775de8e..0000000 --- a/tests/frag.h +++ /dev/null @@ -1,4 +0,0 @@ -#include - -extern uint8_t *kong_frag_code; -extern size_t kong_frag_code_size; diff --git a/tests/test.c b/tests/test.c deleted file mode 100644 index 250ca19..0000000 --- a/tests/test.c +++ /dev/null @@ -1,32 +0,0 @@ -#include "test.h" - -#include "vert.h" -#include "frag.h" - -kinc_g4_pipeline_t Pipe; - -kinc_g4_vertex_structure_t VertexIn_structure; -kinc_g4_vertex_structure_t FragmentIn_structure; - -void kong_init(void) { - kinc_g4_pipeline_init(&Pipe); - - kinc_g4_shader_t pos; - kinc_g4_shader_init(&pos, kong_vert_code, kong_vert_code_size, KINC_G4_SHADER_TYPE_VERTEX); - Pipe.vertex_shader = &pos; - - kinc_g4_shader_t pixel; - kinc_g4_shader_init(&pixel, kong_frag_code, kong_frag_code_size, KINC_G4_SHADER_TYPE_FRAGMENT); - Pipe.fragment_shader = &pixel; - - kinc_g4_vertex_structure_init(&VertexIn_structure); - kinc_g4_vertex_structure_add(&VertexIn_structure, "position", KINC_G4_VERTEX_DATA_F32_3X); - - kinc_g4_vertex_structure_init(&FragmentIn_structure); - kinc_g4_vertex_structure_add(&FragmentIn_structure, "position", KINC_G4_VERTEX_DATA_F32_4X); - - Pipe.input_layout[0] = &VertexIn_structure; - Pipe.input_layout[1] = NULL; - - kinc_g4_pipeline_compile(&Pipe); -} diff --git a/tests/test.h b/tests/test.h deleted file mode 100644 index a8dd046..0000000 --- a/tests/test.h +++ /dev/null @@ -1,20 +0,0 @@ -#include -#include -#include - -typedef struct VertexIn { - kinc_vector3_t position; -} VertexIn; - -extern kinc_g4_vertex_structure_t VertexIn_structure; - -typedef struct FragmentIn { - kinc_vector4_t position; -} FragmentIn; - -extern kinc_g4_vertex_structure_t FragmentIn_structure; - -void kong_init(void); - -extern kinc_g4_pipeline_t Pipe; - diff --git a/tests/vert.c b/tests/vert.c deleted file mode 100644 index e69de29..0000000 diff --git a/tests/vert.h b/tests/vert.h deleted file mode 100644 index 12ed37a..0000000 --- a/tests/vert.h +++ /dev/null @@ -1,4 +0,0 @@ -#include - -extern uint8_t *kong_vert_code; -extern size_t kong_vert_code_size;