Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
269 commits
Select commit Hold shift + click to select a range
c698bb7
Merge branch 'master' into new_debug_draw
keptsecret Jul 8, 2025
61b1c00
removed old mesh loaders
keptsecret Jul 8, 2025
4f1fabd
add debug aabb draws around mesh
keptsecret Jul 9, 2025
b31cfba
merge master, fix conflicts
keptsecret Aug 18, 2025
bfd286e
refactor debug_draw namespace
keptsecret Aug 18, 2025
8518c2b
refactor remove usage of legacy matrices
keptsecret Aug 19, 2025
323c782
refactor examples with latest DrawAabb changes
keptsecret Aug 20, 2025
f75dc21
use draw modes
keptsecret Aug 20, 2025
83a71a8
Merge branch 'master' into new_debug_draw
keptsecret Aug 21, 2025
fdd9b0c
Add Draw OBB to example 12
Sep 6, 2025
347933d
merge master, fix conflicts
keptsecret Sep 8, 2025
3b1016e
don't EXCLUDE_ALL new example
keptsecret Sep 8, 2025
36171d7
Merge branch 'master' into new_debug_draw
keptsecret Sep 16, 2025
d35ab87
Add example 72
Sep 16, 2025
850ca5d
start example 14
Sep 27, 2025
d68e5bd
draft the test
Sep 27, 2025
5a57a6b
input scene txt parser
Sep 27, 2025
7ade89f
move the stub along
Oct 9, 2025
38be9e2
refuse load-as-buffer
Oct 9, 2025
bfcff8a
adjust to change in CMitsubaLoader ctor
Oct 9, 2025
c3b463a
NSC integration for IES Viewer example's shaders, enable CI, port com…
AnastaZIuk Oct 10, 2025
29f64a2
port IES vertex & pixel shaders
AnastaZIuk Oct 10, 2025
c393f69
save 50. example refactor work, add AppInputParser.cpp/.hpp, update i…
AnastaZIuk Oct 14, 2025
31dfe2a
I had wrong pointer for media to some 2023 commit?
AnastaZIuk Oct 14, 2025
59a9962
need to inspect metadata, non asset did load correctly
AnastaZIuk Oct 14, 2025
02924fb
update logging
AnastaZIuk Oct 15, 2025
7e4399a
reorganize struct for holding IES asset resources, create GPU images
AnastaZIuk Oct 15, 2025
23174cc
add buffer creation
AnastaZIuk Oct 15, 2025
03a97f1
handle PCs, add debug info for gpu resources & events
AnastaZIuk Oct 16, 2025
5145763
save work, graphics pipeline, flushing buffers, going bindless
AnastaZIuk Oct 16, 2025
1500ce0
specify alignment explicitly for vk::RawBufferLoad call, although nee…
AnastaZIuk Oct 16, 2025
a2268de
nbl::hlsl::bda is way more sexy
AnastaZIuk Oct 16, 2025
27674bf
bindless for compute though, silent DXC warnings thou I need to think…
AnastaZIuk Oct 16, 2025
07f3fbd
write descriptors
AnastaZIuk Oct 16, 2025
b97424c
precompile FullScreenTriangle ext with NSC, use with IES shaders, get…
AnastaZIuk Oct 17, 2025
7d50d65
compute pipeline creation, single layout and descriptor to rule them,…
AnastaZIuk Oct 19, 2025
c46f8f8
get some IES on screen, update init & render code. TODO: I need barri…
AnastaZIuk Oct 20, 2025
3e02a71
add pipeline barriers for an active image in render loop, I also need…
AnastaZIuk Oct 20, 2025
ceada5e
transition undefined images' layout on init, get rid of validations e…
AnastaZIuk Oct 20, 2025
adeaca2
get test imgui window on screen with IES input, fix some runtime bugs…
AnastaZIuk Oct 21, 2025
349a850
precompile imGUI shaders & use in IES example, O3 optimization for HL…
AnastaZIuk Oct 21, 2025
bdbae93
a little of UI, will add a few more controls
AnastaZIuk Oct 22, 2025
ac85bdb
shorten json payload
AnastaZIuk Oct 22, 2025
bd25aa9
Merge branch 'master' of github.com:Devsh-Graphics-Programming/Nabla-…
AnastaZIuk Oct 24, 2025
b5edbda
split sources, I will need to add framebuffers + UI integration befor…
AnastaZIuk Oct 27, 2025
776f925
rename 50. ex project directory, move ctor to main.cpp
AnastaZIuk Oct 27, 2025
06b2d09
add framebuffers, display 2D plot in separate imgui window
AnastaZIuk Oct 28, 2025
7d0b0db
some room for 3d render, now need mesh sphere input and a shader
AnastaZIuk Oct 29, 2025
6d2c3d4
new inject lambda for CGeometryCreatorScene, temporary use CSimpleDeb…
AnastaZIuk Oct 29, 2025
86a50c5
inject new Grid, pass validation and convert to polygon to GPU (testi…
AnastaZIuk Oct 31, 2025
d015685
add Grid geometry to CGeometryCreatorScene, update CSimpleDebugRender…
AnastaZIuk Nov 3, 2025
462bb54
sphere from grid geometry, add CSimpleIESRenderer.hpp and IES 3D (deb…
AnastaZIuk Nov 3, 2025
4cd5f02
IES Lat Plot
AnastaZIuk Nov 5, 2025
16f06ed
Removed core::matrixSIMD from example 09
Przemog1 Nov 21, 2025
65e0126
refactor 50. ex shaders, reduce from 5 -> 2 unified inputs, clear dup…
AnastaZIuk Nov 24, 2025
1a9b507
Fixed camera bug
Przemog1 Nov 24, 2025
e00a669
make 50. ex unified shaders compile
AnastaZIuk Nov 25, 2025
2c24970
Removed core::matrix from examples 12 and 61
Przemog1 Nov 25, 2025
8e1e6a9
Fixed example 61_UI
Przemog1 Nov 25, 2025
c256c8d
Removed core::matrixSIMD form example 70_FlipFludis
Przemog1 Nov 25, 2025
06bad17
make 50.ex compile after updates, need to fix some runtime bugs & hav…
AnastaZIuk Nov 26, 2025
c297eaa
Merge branch 'master' into new_debug_draw
keptsecret Nov 27, 2025
292cbbf
refactor link debug_draw lib
keptsecret Nov 27, 2025
8af6682
refactor link debug_draw lib in ex 12
keptsecret Nov 27, 2025
cc341e7
refactor draw aabb usage
keptsecret Nov 28, 2025
7a3af0a
Refactored ITester.h
Przemog1 Nov 29, 2025
b659f1a
fix push constants, split into 2 structs, update layouts with offsets…
AnastaZIuk Nov 30, 2025
d8f82f0
make use of rotation degree PC field in pixel shader, I can now make …
AnastaZIuk Nov 30, 2025
9c83531
fix CAssetConverter assert by making unique grid buffers, deduplicate…
AnastaZIuk Nov 30, 2025
8fdd1c1
Ditched idea of unifying the test shader, it was too much of a headache
Przemog1 Dec 1, 2025
158e588
Created utility class for converting test values to text
Przemog1 Dec 1, 2025
8842299
Replaced `TestValueToTextConverter` with `nbl::system::to_string`
Przemog1 Dec 1, 2025
8b69e0d
Modified msg for failed tests to print iteration index and seed
Przemog1 Dec 1, 2025
44fdbe8
Parallelized execution of the CPU tests
Przemog1 Dec 1, 2025
92784f3
remove some bindings, use nbl::hlsl::bda deref_restrict on ies textur…
AnastaZIuk Dec 3, 2025
f181602
New example, copy of 61_UI, updated a lot, visualizer, still not "sol…
karimsayedre Dec 3, 2025
49b18aa
SBufferBinding for texture info, wipe bindings not used anymore, mode…
AnastaZIuk Dec 4, 2025
57bcf32
replace old lat plot with octahedral utils
AnastaZIuk Dec 4, 2025
fa797e4
add new interpolate and false color modes to sphere plot, fix runtime…
AnastaZIuk Dec 5, 2025
93861bd
Make camera account for up direction, corrected framebuffer resolutio…
karimsayedre Dec 6, 2025
adb15ed
sphere arc "cube edge" in solid angle view, more reliable resizing of…
karimsayedre Dec 6, 2025
008e2ee
Scaling by pressing G to prevent conflict with WASD camera movement, …
karimsayedre Dec 6, 2025
4290f4a
better clipping of arcs behind the hemisphere
karimsayedre Dec 7, 2025
ba068c4
WIP quick push for shader code
karimsayedre Dec 8, 2025
91ae865
Fixed main camera aspect ratio, added 27 configurations for cube silh…
karimsayedre Dec 8, 2025
0124cc9
Shader fixes, bast uint16 resolutionf to float
karimsayedre Dec 8, 2025
a35eddd
Better color for non-silhouette edges
karimsayedre Dec 8, 2025
b253e4a
Fixed camera
Przemog1 Dec 9, 2025
aa8c079
Fixed another camera bug
Przemog1 Dec 10, 2025
1dec4de
Fixed multiple examples
Przemog1 Dec 10, 2025
8eeca4f
some crappy basic tests converting rot mat to quat and back
keptsecret Dec 12, 2025
d0650a3
Merge branch 'master' of github.com:Devsh-Graphics-Programming/Nabla-…
AnastaZIuk Dec 12, 2025
df06c15
Fixed a warning
Przemog1 Dec 15, 2025
0995b67
Resolved conflicts, merged master
Przemog1 Dec 15, 2025
cc4f871
Fixed compilation errors, adapted example 14 to new testing interface
Przemog1 Dec 15, 2025
ab5e466
Fixed ITester.h
Przemog1 Dec 15, 2025
c593979
Another ITester.h fix
Przemog1 Dec 15, 2025
8114cb0
Adepated example 22 to new testing interface
Przemog1 Dec 15, 2025
d3ac4cc
Merge branch 'master' into new_debug_draw
keptsecret Dec 17, 2025
2a7a800
Implemented relative approx compare
Przemog1 Dec 17, 2025
ab4ae7d
Testers now save logs to files
Przemog1 Dec 17, 2025
1c6458d
A lot more debuggability, and:
karimsayedre Dec 17, 2025
2e306fc
better (still not perfect) manual inverse of rotation matrix
karimsayedre Dec 17, 2025
12486d4
Fixed faster inverse of rotation matrix, thanks Matt!
karimsayedre Dec 17, 2025
ec1f5a5
Example 22 now uses precompiled shaders
Przemog1 Dec 18, 2025
e4366b1
removed commented out bits
keptsecret Dec 19, 2025
ee9913d
Examples 14 and 22 now use precompiled shaders
Przemog1 Dec 19, 2025
04627c7
Every ILogger::log call now uses string literal as its first argument
Przemog1 Dec 19, 2025
5acd059
All shaders in example 22 are precompiled shaders now
Przemog1 Dec 19, 2025
1961a89
Fast clipping, less branches, also
karimsayedre Dec 20, 2025
1cf7c7c
refactor with new changes
keptsecret Dec 22, 2025
12b3de5
removed unused files, removed unused vars in ex 34
keptsecret Dec 22, 2025
b8b2c63
removed unused files in ex 12
keptsecret Dec 22, 2025
2d59279
Merge branch 'master' of github.com:Devsh-Graphics-Programming/Nabla-…
Przemog1 Dec 22, 2025
d20b9c6
update Mitsuba unit test cases
Dec 22, 2025
f84ef33
Merge pull request #229 from Devsh-Graphics-Programming/unified_testi…
Przemog1 Dec 22, 2025
b5d8abc
Merge branch 'master' into solid-angle-vis
karimsayedre Dec 23, 2025
8609610
Merge branch 'master' into new_debug_draw
keptsecret Dec 23, 2025
86bd5e2
Merge branch 'master' into solid-angle-vis
karimsayedre Dec 23, 2025
4180f3c
Merge pull request #202 from Devsh-Graphics-Programming/new_debug_draw
AnastaZIuk Dec 23, 2025
8333763
can parse all public mitsuba scenes!
Dec 24, 2025
513c5a7
oopsie pushed a dangling submodule pointer last commit
Dec 24, 2025
3db6e3c
make example 14 text parser compatible with CI inputs for odl example 22
Dec 24, 2025
84fcc87
renumber Mitsuba Loader example to 15
Dec 24, 2025
c5e28aa
Merge remote-tracking branch 'remotes/origin/master' into material_co…
Dec 24, 2025
b7b7961
Merge branch 'master' of github.com:Devsh-Graphics-Programming/Nabla-…
AnastaZIuk Dec 27, 2025
0a32a90
UI updates & new modes
AnastaZIuk Dec 28, 2025
0968e7f
Resolve merge conflict
Dec 28, 2025
59a434c
more updates
AnastaZIuk Dec 28, 2025
8144983
correct namespaces
AnastaZIuk Dec 28, 2025
096030d
Change geometry_inspector example number from 72 to 73
Dec 29, 2025
95e057f
Fix example after merge
Dec 29, 2025
ab85572
Updated obbInst transform calculation to use math::linalg::promoted_mul
Dec 29, 2025
5df2175
Merge pull request #237 from Devsh-Graphics-Programming/material_comp…
devshgraphicsprogramming Dec 29, 2025
d669573
start the example
Dec 29, 2025
14e236b
Merge branch 'master' of github.com:Devsh-Graphics-Programming/Nabla-…
AnastaZIuk Dec 29, 2025
3155c5c
remove whats not needed
Dec 29, 2025
b0c3479
Draft out the Scene class a little bit
Dec 29, 2025
57fcb0d
add the loaders, link mitsuba loader
Dec 29, 2025
d0a5575
delete uneccessary files
Dec 30, 2025
2aa93fd
start loading scenes, ZIP included
Dec 30, 2025
3bcb747
print GitInfo in ex 40, flesh out the loaded Sensor struct
Dec 30, 2025
086af9e
Sample and visualize samples on the OBB,
karimsayedre Dec 31, 2025
a52cdb6
sensors and sessions
Dec 31, 2025
58b42cf
remove all DEPENDS for NSC rules, now we have depfiles
AnastaZIuk Jan 3, 2026
4c4e5e8
Merge pull request #239 from Devsh-Graphics-Programming/depfiles
AnastaZIuk Jan 5, 2026
2e8f42d
merge master, fix conflicts
keptsecret Jan 5, 2026
f90e266
fix bug in ITester
keptsecret Jan 6, 2026
b70d472
setup quaternion unit test + some basic tests
keptsecret Jan 6, 2026
efedbf6
add lerp test
keptsecret Jan 6, 2026
06c6764
Merge remote-tracking branch 'origin/hlsl_path_tracer' into solid-ang…
karimsayedre Jan 6, 2026
15e4d5d
added benchmark code for sampling, visualization of rays in 3D view, …
karimsayedre Jan 6, 2026
18a3a07
slerp test
keptsecret Jan 7, 2026
c670bc3
added create from rot mat test
keptsecret Jan 7, 2026
8c96b6c
fix test value ranges
keptsecret Jan 7, 2026
e78ae9e
normalize quaternion test values
keptsecret Jan 7, 2026
194df8a
Created ZIP archive loader test
Przemog1 Jan 7, 2026
6df2ffb
Changed number of the ZIP archive loader test example
Przemog1 Jan 7, 2026
465c77a
get the sensors loading more or less
Jan 7, 2026
0772b53
Fix example to remove CDrawAABB::getTransformFromOBB
Jan 8, 2026
f387455
flesh out raygen for all sensor types
Jan 8, 2026
671d1f1
Fixed example 22
Przemog1 Jan 8, 2026
da9d247
Merge branch 'master' into quaternion_tests
keptsecret Jan 13, 2026
6fa0521
refactor changes to quaternion usage
keptsecret Jan 13, 2026
20cdd2a
Merge branch 'master' of github.com:Devsh-Graphics-Programming/Nabla-…
AnastaZIuk Jan 13, 2026
55afb97
improve 16_ZipArchiveLoaderTest, make CI friendly
AnastaZIuk Jan 13, 2026
25996a7
Merge pull request #240 from Devsh-Graphics-Programming/new_zip_archi…
AnastaZIuk Jan 13, 2026
a11816d
removed commented out and obsolete code
keptsecret Jan 14, 2026
bf95ca4
added more tests for scaled quaternions
keptsecret Jan 14, 2026
72e2105
removed redundant lines
keptsecret Jan 14, 2026
a2b692e
Merge branch 'master' of github.com:Devsh-Graphics-Programming/Nabla-…
AnastaZIuk Jan 14, 2026
363330b
link mitsuba to 73
AnastaZIuk Jan 14, 2026
9795b5d
one more correction
AnastaZIuk Jan 14, 2026
6c083cb
Merge pull request #222 from Devsh-Graphics-Programming/obb_calculati…
AnastaZIuk Jan 14, 2026
b475d20
fix how quat from scaled mat is created
keptsecret Jan 15, 2026
7c26b03
Merge branch 'master' into quaternion_tests
keptsecret Jan 15, 2026
4c9ce18
fixes rotation-scale matrix calc on glm because quat_cast only takes …
keptsecret Jan 15, 2026
656bd44
test slerp and flerp quaternion values by orientation
keptsecret Jan 15, 2026
bafe60a
use orientation comparator for all quaternions, except scaled
keptsecret Jan 16, 2026
15eab06
only supply RH orientation matrix to a future camera, handle Left-han…
Jan 16, 2026
5c3d56e
deduce zoom speed
Jan 16, 2026
0656746
scaled quats test use compare length as well
keptsecret Jan 16, 2026
2fee54a
Merge pull request #241 from Devsh-Graphics-Programming/quaternion_tests
AnastaZIuk Jan 16, 2026
0f8ca47
Session init and deinit done, but without Scramble Key Texture filling
Jan 16, 2026
e0b9aac
Resolved conflicts, merged master
Przemog1 Jan 17, 2026
4b65e70
Corrected quaternion tests
Przemog1 Jan 17, 2026
6ec25cc
Fixed examples 30 and 71
Przemog1 Jan 17, 2026
6576208
Fixed quaternion tests
Przemog1 Jan 19, 2026
4dfd279
Removed scalar matrix multiplication test
Przemog1 Jan 19, 2026
1ca5358
Fixed example 34
Przemog1 Jan 19, 2026
587cbff
Fixed example 73
Przemog1 Jan 19, 2026
6e96a2f
Merge pull request #228 from Devsh-Graphics-Programming/remove_core_m…
Przemog1 Jan 19, 2026
edd1e0b
add beauty target
Jan 19, 2026
966ec20
correct last commit
Jan 19, 2026
9536512
move common stuff to HLSL files
Jan 19, 2026
e83e34c
precompile my own shaders!
Jan 19, 2026
1b9b080
ok figure out we'll only have 3 path tracing pipelines
Jan 19, 2026
adcf860
the training wheels come off, lets make a path tracer!
Jan 20, 2026
3e39f03
Projected Parallelogram sampling
karimsayedre Jan 21, 2026
1f24efb
prep for cropping in the presentation
Jan 23, 2026
418e89b
work on the presenter and resolver
Jan 23, 2026
4d85705
add the image views as sample-able descriptors to the Session DS, als…
Jan 23, 2026
51a63fe
fix tiny bugs and create the presentation pipelines
Jan 23, 2026
00e3812
Merge branch 'master' of github.com:Devsh-Graphics-Programming/Nabla-…
AnastaZIuk Jan 25, 2026
739a7a2
get the presenter and headless mode fleshed out
Jan 26, 2026
483dd78
attempt to test the non-headless mode
Jan 26, 2026
c7c54d2
finish some of the headless mode stuff
Jan 26, 2026
11b3b46
get the resizing to work
Jan 26, 2026
49d1a6e
Merge remote-tracking branch 'remotes/origin/master' into new_pt
Jan 26, 2026
4a011d5
post merge fixes
Jan 26, 2026
ae80ef1
handle window closing in ex 40
Jan 27, 2026
4d917dd
changes to ex 71 to align with RT pipeline improvements
Jan 27, 2026
c2ef646
precompile fri ext
AnastaZIuk Jan 27, 2026
acb025f
Merge branch 'new_pt' of github.com:Devsh-Graphics-Programming/Nabla-…
AnastaZIuk Jan 27, 2026
5a6727d
those 2 `-I` actually not needed
AnastaZIuk Jan 27, 2026
cb7b0e7
get to the SBT stage
Jan 27, 2026
924b870
houston we have a visual
Jan 27, 2026
2262b7e
fix all the little bugs
Jan 27, 2026
1db3221
init quantized sequence test
keptsecret Jan 28, 2026
c402793
test create, get/set in qs
keptsecret Jan 28, 2026
0d2afe0
add tests for encode/decode
keptsecret Jan 28, 2026
533a90e
removed cmake builtin resource block
keptsecret Jan 28, 2026
5366705
test create/set/get uint16 types
keptsecret Jan 29, 2026
fd49d0a
cleanup
AnastaZIuk Jan 29, 2026
8485356
added more encode/decode tests
keptsecret Jan 29, 2026
1e132d9
have ITester interface return if test pass
keptsecret Jan 29, 2026
88e0fd1
refactor quantized sequence example
keptsecret Jan 29, 2026
40bc21a
refactor old examples to return pass test
keptsecret Jan 29, 2026
f9e3554
update examples using fri ext
AnastaZIuk Jan 29, 2026
cf8231a
Merge branch 'new_pt' of github.com:Devsh-Graphics-Programming/Nabla-…
AnastaZIuk Jan 29, 2026
63f0079
fix examples broken by ITester change that weren't changed properly
keptsecret Jan 30, 2026
301fb40
use &= to make bool usage look better
keptsecret Jan 30, 2026
a2bb607
Merge pull request #246 from Devsh-Graphics-Programming/quantized_seq…
AnastaZIuk Jan 30, 2026
1ba06b6
correct a small bug
Jan 30, 2026
79053ed
Merge remote-tracking branch 'remotes/origin/fri_precomp_new_pt' into…
Jan 30, 2026
11e54fd
Merge remote-tracking branch 'remotes/origin/master' into new_pt
Jan 31, 2026
870dc85
adjust to comments
AnastaZIuk Jan 31, 2026
9dd2ffe
Merge branch 'master' of github.com:Devsh-Graphics-Programming/Nabla-…
AnastaZIuk Jan 31, 2026
779ce1f
Merge pull request #244 from Devsh-Graphics-Programming/new_pt
devshgraphicsprogramming Jan 31, 2026
b784970
cleanup
AnastaZIuk Feb 1, 2026
599d6ab
Merge branch 'master' of github.com:Devsh-Graphics-Programming/Nabla-…
AnastaZIuk Feb 2, 2026
bf34d4e
pull master, resolve conflicts (+ adjust)
AnastaZIuk Feb 2, 2026
e7c20f7
use precompiled fri ext
AnastaZIuk Feb 2, 2026
d45d20c
Merge pull request #247 from Devsh-Graphics-Programming/mCleanup
devshgraphicsprogramming Feb 2, 2026
f90ce30
adjust to comments
AnastaZIuk Feb 2, 2026
63bb614
Merge pull request #248 from Devsh-Graphics-Programming/mCleanup
devshgraphicsprogramming Feb 5, 2026
9723c5f
Merge pull request #242 from Devsh-Graphics-Programming/ies
devshgraphicsprogramming Feb 5, 2026
fcb43e6
fix interaction between two merges
Feb 5, 2026
16ba43a
Merge branch 'master' into solid-angle-vis
karimsayedre Feb 17, 2026
2b034eb
huge shader refactor, more debug UI, also:
karimsayedre Feb 17, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions 05_StreamingAndBufferDeviceAddressApp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@ if(NBL_EMBED_BUILTIN_RESOURCES)
endif()

set(OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/auto-gen")
set(DEPENDS
app_resources/common.hlsl
app_resources/shader.comp.hlsl
)
target_sources(${EXECUTABLE_NAME} PRIVATE ${DEPENDS})
set_source_files_properties(${DEPENDS} PROPERTIES HEADER_FILE_ONLY ON)

set(SM 6_8)
set(JSON [=[
Expand All @@ -50,7 +44,6 @@ set(COMPILE_OPTIONS
NBL_CREATE_NSC_COMPILE_RULES(
TARGET ${EXECUTABLE_NAME}SPIRV
LINK_TO ${EXECUTABLE_NAME}
DEPENDS ${DEPENDS}
BINARY_DIR ${OUTPUT_DIRECTORY}
MOUNT_POINT_DEFINE NBL_THIS_EXAMPLE_BUILD_MOUNT_POINT
COMMON_OPTIONS ${COMPILE_OPTIONS}
Expand All @@ -66,4 +59,4 @@ NBL_CREATE_RESOURCE_ARCHIVE(
LINK_TO ${EXECUTABLE_NAME}
BIND ${OUTPUT_DIRECTORY}
BUILTINS ${KEYS}
)
)
9 changes: 1 addition & 8 deletions 07_StagingAndMultipleQueues/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@ if(NBL_EMBED_BUILTIN_RESOURCES)
endif()

set(OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/auto-gen")
set(DEPENDS
app_resources/common.hlsl
app_resources/comp_shader.hlsl
)
target_sources(${EXECUTABLE_NAME} PRIVATE ${DEPENDS})
set_source_files_properties(${DEPENDS} PROPERTIES HEADER_FILE_ONLY ON)

set(SM 6_8)
set(JSON [=[
Expand All @@ -50,7 +44,6 @@ set(COMPILE_OPTIONS
NBL_CREATE_NSC_COMPILE_RULES(
TARGET ${EXECUTABLE_NAME}SPIRV
LINK_TO ${EXECUTABLE_NAME}
DEPENDS ${DEPENDS}
BINARY_DIR ${OUTPUT_DIRECTORY}
MOUNT_POINT_DEFINE NBL_THIS_EXAMPLE_BUILD_MOUNT_POINT
COMMON_OPTIONS ${COMPILE_OPTIONS}
Expand All @@ -66,4 +59,4 @@ NBL_CREATE_RESOURCE_ARCHIVE(
LINK_TO ${EXECUTABLE_NAME}
BIND ${OUTPUT_DIRECTORY}
BUILTINS ${KEYS}
)
)
16 changes: 6 additions & 10 deletions 09_GeometryCreator/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// This file is part of the "Nabla Engine".
// For conditions of distribution and use, see copyright notice in nabla.h

#include <nbl/builtin/hlsl/math/thin_lens_projection.hlsl>

#include "common.hpp"

Expand Down Expand Up @@ -73,7 +74,7 @@ class GeometryCreatorApp final : public MonoWindowApplication, public BuiltinRes
{
core::vectorSIMDf cameraPosition(-5.81655884, 2.58630896, -4.23974705);
core::vectorSIMDf cameraTarget(-0.349590302, -0.213266611, 0.317821503);
matrix4SIMD projectionMatrix = matrix4SIMD::buildProjectionMatrixPerspectiveFovLH(core::radians(60.0f), float(m_initialResolution.x)/float(m_initialResolution.y), 0.1, 10000);
float32_t4x4 projectionMatrix = hlsl::math::thin_lens::lhPerspectiveFovMatrix<float>(core::radians(60.0f), float(m_initialResolution.x) / m_initialResolution.y, 0.1f, 10000.0f);
camera = Camera(cameraPosition, cameraTarget, projectionMatrix, 1.069f, 0.4f);
}

Expand Down Expand Up @@ -139,13 +140,8 @@ class GeometryCreatorApp final : public MonoWindowApplication, public BuiltinRes
cb->beginRenderPass(info, IGPUCommandBuffer::SUBPASS_CONTENTS::INLINE);
}

float32_t3x4 viewMatrix;
float32_t4x4 viewProjMatrix;
// TODO: get rid of legacy matrices
{
memcpy(&viewMatrix,camera.getViewMatrix().pointer(),sizeof(viewMatrix));
memcpy(&viewProjMatrix,camera.getConcatenatedMatrix().pointer(),sizeof(viewProjMatrix));
}
float32_t3x4 viewMatrix = camera.getViewMatrix();
float32_t4x4 viewProjMatrix = camera.getConcatenatedMatrix();
const auto viewParams = CSimpleDebugRenderer::SViewParams(viewMatrix,viewProjMatrix);

// tear down scene every frame
Expand Down Expand Up @@ -251,7 +247,7 @@ class GeometryCreatorApp final : public MonoWindowApplication, public BuiltinRes
InputSystem::ChannelReader<IKeyboardEventChannel> keyboard;

//
Camera camera = Camera(core::vectorSIMDf(0, 0, 0), core::vectorSIMDf(0, 0, 0), core::matrix4SIMD());
Camera camera = Camera(core::vectorSIMDf(0, 0, 0), core::vectorSIMDf(0, 0, 0), hlsl::float32_t4x4());

uint16_t gcIndex = {};

Expand All @@ -270,4 +266,4 @@ class GeometryCreatorApp final : public MonoWindowApplication, public BuiltinRes
}
};

NBL_MAIN_FUNC(GeometryCreatorApp)
NBL_MAIN_FUNC(GeometryCreatorApp)
8 changes: 0 additions & 8 deletions 10_CountingSort/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@ if(NBL_EMBED_BUILTIN_RESOURCES)
endif()

set(OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/auto-gen")
set(DEPENDS
app_resources/common.hlsl
app_resources/prefix_sum_shader.comp.hlsl
app_resources/scatter_shader.comp.hlsl
)
target_sources(${EXECUTABLE_NAME} PRIVATE ${DEPENDS})
set_source_files_properties(${DEPENDS} PROPERTIES HEADER_FILE_ONLY ON)

set(SM 6_8)
set(REQUIRED_CAPS [=[
Expand Down Expand Up @@ -72,7 +65,6 @@ set(COMPILE_OPTIONS
NBL_CREATE_NSC_COMPILE_RULES(
TARGET ${EXECUTABLE_NAME}SPIRV
LINK_TO ${EXECUTABLE_NAME}
DEPENDS ${DEPENDS}
BINARY_DIR ${OUTPUT_DIRECTORY}
MOUNT_POINT_DEFINE NBL_THIS_EXAMPLE_BUILD_MOUNT_POINT
COMMON_OPTIONS ${COMPILE_OPTIONS}
Expand Down
9 changes: 1 addition & 8 deletions 11_FFT/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@ if(NBL_EMBED_BUILTIN_RESOURCES)
endif()

set(OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/auto-gen")
set(DEPENDS
app_resources/common.hlsl
app_resources/shader.comp.hlsl
)
target_sources(${EXECUTABLE_NAME} PRIVATE ${DEPENDS})
set_source_files_properties(${DEPENDS} PROPERTIES HEADER_FILE_ONLY ON)

set(SM 6_8)
set(JSON [=[
Expand All @@ -50,7 +44,6 @@ set(COMPILE_OPTIONS
NBL_CREATE_NSC_COMPILE_RULES(
TARGET ${EXECUTABLE_NAME}SPIRV
LINK_TO ${EXECUTABLE_NAME}
DEPENDS ${DEPENDS}
BINARY_DIR ${OUTPUT_DIRECTORY}
MOUNT_POINT_DEFINE NBL_THIS_EXAMPLE_BUILD_MOUNT_POINT
COMMON_OPTIONS ${COMPILE_OPTIONS}
Expand All @@ -66,4 +59,4 @@ NBL_CREATE_RESOURCE_ARCHIVE(
LINK_TO ${EXECUTABLE_NAME}
BIND ${OUTPUT_DIRECTORY}
BUILTINS ${KEYS}
)
)
5 changes: 5 additions & 0 deletions 12_MeshLoaders/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,10 @@ nbl_create_executable_project("" "" "${NBL_INCLUDE_SERACH_DIRECTORIES}" "${NBL_L
# TODO: Arek temporarily disabled cause I haven't figured out how to make this target yet
# LINK_BUILTIN_RESOURCES_TO_TARGET(${EXECUTABLE_NAME} nblExamplesGeometrySpirvBRD)

if (NBL_BUILD_DEBUG_DRAW)
target_link_libraries(${EXECUTABLE_NAME} PRIVATE Nabla::ext::DebugDraw)
endif()


add_dependencies(${EXECUTABLE_NAME} argparse)
target_include_directories(${EXECUTABLE_NAME} PUBLIC $<TARGET_PROPERTY:argparse,INTERFACE_INCLUDE_DIRECTORIES>)
Loading