Subject | Hash | Author | Date (UTC) |
---|---|---|---|
removed old unmaintained directory | 75b147dd4dc5d3592da21a707ac301cd46eaaf3d | Jackalope | 2020-03-19 19:35:03 |
shader specialization constants support | 932cd42ce93f89bd2c6b0a3a37eb9b74482f0d13 | Jackalope | 2020-03-09 04:58:58 |
compute module staging support | 99a1a110c75a021e956b8ad5c481f269d693e078 | Jackalope | 2020-03-06 07:06:36 |
changed compute stage flag name (was wrong) | 0e21df1430ac55c1dbc8a0f1969ffb1ec303b870 | Jackalope | 2020-03-06 06:59:38 |
changed compute interface to support reading after and writting before computing, staging is not supported yet | 173f29331f5ebb5206f4086d58e93689eb85df96 | Jackalope | 2020-03-06 05:35:16 |
added staging allocation to Bindings | b74e1cc5e8d80528e48e4f00ae215c547c685211 | Jackalope | 2020-03-06 05:34:04 |
Separate ComputeCmdUnit for cmds and syncs | 9dc0a4a62e6fa68e60cfbd420eff61d8ee4334f0 | Jackalope | 2020-03-06 04:02:24 |
Compute descriptor set improvement, support for different descriptor types | 5aad5ee0e4304b2035a652f4d4ca28e7a75bc93d | Jackalope | 2020-02-29 16:10:50 |
changed doxygen commentary style in DevMemUse description | 9e9a548d6c50363a841af5d4897268aadba6ebed | Jackalope | 2020-02-29 16:08:33 |
make buffer functions const | 24e343bc583629d08fad4d3dadb36a2fd72a4ca7 | Jackalope | 2020-02-29 16:08:04 |
added missing check in draw_drame | cc6483e804d463fe4d1c41746692ec98bfbe53e8 | Jackalope | 2020-02-19 12:40:19 |
solved freee bug, draw data have pointer to user light data instead of applying every frame | f60e7d3908651512a90488966141620306d54151 | Jackalope | 2020-02-19 10:50:22 |
solved lights flickefing issue | c5cad408d3d9d908ac52760ebf1c42e7d578e61e | Jackalope | 2020-02-19 10:48:46 |
apply camera and frustum in single function | ac6b09e32f0afa65eef918fb7bdb935cb99da2d8 | Jackalope | 2020-02-18 16:32:41 |
draw data wrong camera aspect fix | 5d9270631a2ff3232c4928d811d55079ee30e6af | Jackalope | 2020-02-18 16:27:11 |
release macro fixed | ebf6d8302ac06701d5fed4d4e153e0bc5c332990 | Jackalope | 2020-02-18 16:26:21 |
vkw memory barrier and buffer memory barrier | 1df196563968fe2d0ab53f989b54b502500709e1 | Jackalope | 2020-02-17 18:31:15 |
removed forgotten redundand lines | 24427796fde68c4d8a92b528ee876136da9ff365 | Jackalope | 2020-02-17 04:28:57 |
fix wrong cmd buffer begin flag | f02a4272c22bfe918e4df881531699c723cf1156 | Jackalope | 2020-02-17 04:15:22 |
add temporary fix for some validation layers false-positives | 9787cf6494ee83fe8c7313d0d3e7ce96ad0190e4 | Jackalope | 2020-02-17 06:34:31 |
File | Lines added | Lines deleted |
---|---|---|
unit_tests/CMakeLists.txt | 0 | 12 |
unit_tests/templates/mtl.h | 0 | 14 |
unit_tests/templates/queue.h | 0 | 8 |
unit_tests/templates/stack.h | 0 | 75 |
unit_tests/unit_tests.cpp | 0 | 7 |
File unit_tests/CMakeLists.txt deleted (index 4686b1c..0000000) | |||
1 | cmake_minimum_required(VERSION 3.5) | ||
2 | |||
3 | |||
4 | add_executable(UNIT_TESTS | ||
5 | |||
6 | unit_tests.cpp | ||
7 | templates/mtl.h | ||
8 | templates/stack.h | ||
9 | templates/queue.h | ||
10 | ) | ||
11 | |||
12 | target_link_libraries(UNIT_TESTS TOOLS) |
File unit_tests/templates/mtl.h deleted (index 310298d..0000000) | |||
1 | #pragma once | ||
2 | |||
3 | #include "stack.h" | ||
4 | #include "queue.h" | ||
5 | |||
6 | namespace mtl | ||
7 | { | ||
8 | inline bool test() | ||
9 | { | ||
10 | io::out<io::FORMAT::S_N>("mtl", io::LIGHT_CYAN); | ||
11 | return test_stack(); | ||
12 | } | ||
13 | } | ||
14 |
File unit_tests/templates/queue.h deleted (index cf641d7..0000000) | |||
1 | #pragma once | ||
2 | |||
3 | #include "../../templates/queue.h" | ||
4 | |||
5 | namespace mtl | ||
6 | { | ||
7 | |||
8 | } |
File unit_tests/templates/stack.h deleted (index 3d3994b..0000000) | |||
1 | #pragma once | ||
2 | |||
3 | #include "../../templates/stack.h" | ||
4 | |||
5 | #include "../../tools/io.h" | ||
6 | |||
7 | namespace mtl | ||
8 | { | ||
9 | template<typename value_t> inline | ||
10 | unsigned int fill_stack(unsigned int count, stack<value_t> &stack) | ||
11 | { | ||
12 | value_t void_; unsigned int i; | ||
13 | for(i = 0; i < count; ++i) | ||
14 | if (!stack.append(void_)) | ||
15 | break; | ||
16 | return i; | ||
17 | } | ||
18 | |||
19 | template<typename value_t> inline | ||
20 | unsigned int unfill_stack(unsigned int count, stack<value_t> &stack) | ||
21 | { | ||
22 | value_t void_; unsigned int i; | ||
23 | for(i = 0; i < count; ++i) | ||
24 | if (!stack.pop(void_)) | ||
25 | break; | ||
26 | return i; | ||
27 | } | ||
28 | |||
29 | template<typename value_t> inline | ||
30 | bool counter_add(stack<unsigned int> &counter, stack<value_t> &stack, unsigned int count) | ||
31 | { | ||
32 | return counter.append(fill_stack(count, stack)); | ||
33 | } | ||
34 | |||
35 | template<typename value_t> inline | ||
36 | bool counter_remove(stack<unsigned int> &counter, stack<value_t> &stack) | ||
37 | { | ||
38 | unsigned int count; | ||
39 | if (!counter.pop(count)) | ||
40 | return false; | ||
41 | return count == unfill_stack(count, stack); | ||
42 | } | ||
43 | |||
44 | template<typename value_t> inline | ||
45 | bool cancel(const char* message, stack<unsigned int> &counter, stack<value_t> &stack) | ||
46 | { | ||
47 | counter.destroy(); | ||
48 | stack.destroy(); | ||
49 | io::out<io::FORMAT::S_N>(message, io::RED); | ||
50 | return false; | ||
51 | } | ||
52 | |||
53 | inline bool test_stack() | ||
54 | { | ||
55 | io::out<io::FORMAT::S_N>("stack test ... ", io::DARK_GRAY); | ||
56 | |||
57 | stack<unsigned int> counter; | ||
58 | counter.init(); | ||
59 | stack<int> stack; | ||
60 | stack.init(); | ||
61 | |||
62 | unsigned int i = 100; | ||
63 | while (--i > 0) | ||
64 | { | ||
65 | if (!counter_add(counter, stack, 100)) | ||
66 | return cancel("ENOMEM", counter, stack); | ||
67 | if (!counter_remove(counter, stack)) | ||
68 | return cancel("failed", counter, stack); | ||
69 | } | ||
70 | counter.destroy(); | ||
71 | stack.destroy(); | ||
72 | io::out<io::FORMAT::S_N>("ok", io::GREEN); | ||
73 | return true; | ||
74 | } | ||
75 | } |
File unit_tests/unit_tests.cpp deleted (index c566a5a..0000000) | |||
1 | #include "templates/mtl.h" | ||
2 | |||
3 | |||
4 | int main() | ||
5 | { | ||
6 | return mtl::test() == true ? 0 : 1; | ||
7 | } |