Skip to content

Commit

Permalink
Add the screenshot option to all the kfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Sep 27, 2024
1 parent 3cbbc45 commit 5c6005a
Show file tree
Hide file tree
Showing 20 changed files with 100 additions and 0 deletions.
5 changes: 5 additions & 0 deletions 00_empty/kfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ project.addFile('Sources/**');
project.addKongDir('Shaders');
project.setDebugDir('Deployment');

if (Options.screenshot) {
project.addDefine('SCREENSHOT');
project.addDefine('KOPE_D3D12_FORCE_WARP');
}

project.flatten();

resolve(project);
5 changes: 5 additions & 0 deletions 01_triangle/kfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ project.addFile('Sources/**');
project.addKongDir('Shaders');
project.setDebugDir('Deployment');

if (Options.screenshot) {
project.addDefine('SCREENSHOT');
project.addDefine('KOPE_D3D12_FORCE_WARP');
}

project.flatten();

resolve(project);
5 changes: 5 additions & 0 deletions 02_matrix/kfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ project.addFile('Sources/**');
project.addKongDir('Shaders');
project.setDebugDir('Deployment');

if (Options.screenshot) {
project.addDefine('SCREENSHOT');
project.addDefine('KOPE_D3D12_FORCE_WARP');
}

project.flatten();

resolve(project);
5 changes: 5 additions & 0 deletions 03_colored_cube/kfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ project.addFile('Sources/**');
project.addKongDir('Shaders');
project.setDebugDir('Deployment');

if (Options.screenshot) {
project.addDefine('SCREENSHOT');
project.addDefine('KOPE_D3D12_FORCE_WARP');
}

project.flatten();

resolve(project);
5 changes: 5 additions & 0 deletions 04_textured_cube/kfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ project.addFile('Sources/**');
project.addKongDir('Shaders');
project.setDebugDir('Deployment');

if (Options.screenshot) {
project.addDefine('SCREENSHOT');
project.addDefine('KOPE_D3D12_FORCE_WARP');
}

project.flatten();

resolve(project);
5 changes: 5 additions & 0 deletions 05_camera_controls/kfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ project.addFile('Sources/**');
project.addKongDir('Shaders');
project.setDebugDir('Deployment');

if (Options.screenshot) {
project.addDefine('SCREENSHOT');
project.addDefine('KOPE_D3D12_FORCE_WARP');
}

project.flatten();

resolve(project);
5 changes: 5 additions & 0 deletions 06_render_targets/kfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ project.addFile('Sources/**');
project.addKongDir('Shaders');
project.setDebugDir('Deployment');

if (Options.screenshot) {
project.addDefine('SCREENSHOT');
project.addDefine('KOPE_D3D12_FORCE_WARP');
}

project.flatten();

resolve(project);
5 changes: 5 additions & 0 deletions 07_multiple_render_targets/kfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ project.addFile('Sources/**');
project.addKongDir('Shaders');
project.setDebugDir('Deployment');

if (Options.screenshot) {
project.addDefine('SCREENSHOT');
project.addDefine('KOPE_D3D12_FORCE_WARP');
}

project.flatten();

resolve(project);
5 changes: 5 additions & 0 deletions 08_float_render_targets/kfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ project.addFile('Sources/**');
project.addKongDir('Shaders');
project.setDebugDir('Deployment');

if (Options.screenshot) {
project.addDefine('SCREENSHOT');
project.addDefine('KOPE_D3D12_FORCE_WARP');
}

project.flatten();

resolve(project);
5 changes: 5 additions & 0 deletions 09_depth_render_targets/kfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ project.addFile('Sources/**');
project.addKongDir('Shaders');
project.setDebugDir('Deployment');

if (Options.screenshot) {
project.addDefine('SCREENSHOT');
project.addDefine('KOPE_D3D12_FORCE_WARP');
}

project.flatten();

resolve(project);
5 changes: 5 additions & 0 deletions 10_cubemap/kfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ project.addFile('Sources/**');
project.addKongDir('Shaders');
project.setDebugDir('Deployment');

if (Options.screenshot) {
project.addDefine('SCREENSHOT');
project.addDefine('KOPE_D3D12_FORCE_WARP');
}

project.flatten();

resolve(project);
5 changes: 5 additions & 0 deletions 11_instanced_rendering/kfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ project.addFile('Sources/**');
project.addKongDir('Shaders');
project.setDebugDir('Deployment');

if (Options.screenshot) {
project.addDefine('SCREENSHOT');
project.addDefine('KOPE_D3D12_FORCE_WARP');
}

project.flatten();

resolve(project);
5 changes: 5 additions & 0 deletions 12_set_render_target_depth/kfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ project.addFile('Sources/**');
project.addKongDir('Shaders');
project.setDebugDir('Deployment');

if (Options.screenshot) {
project.addDefine('SCREENSHOT');
project.addDefine('KOPE_D3D12_FORCE_WARP');
}

project.flatten();

resolve(project);
5 changes: 5 additions & 0 deletions 13_generate_mipmaps/kfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ project.addFile('Sources/**');
project.addKongDir('Shaders');
project.setDebugDir('Deployment');

if (Options.screenshot) {
project.addDefine('SCREENSHOT');
project.addDefine('KOPE_D3D12_FORCE_WARP');
}

project.flatten();

resolve(project);
5 changes: 5 additions & 0 deletions 14_set_mipmap/kfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ project.addFile('Sources/**');
project.addKongDir('Shaders');
project.setDebugDir('Deployment');

if (Options.screenshot) {
project.addDefine('SCREENSHOT');
project.addDefine('KOPE_D3D12_FORCE_WARP');
}

project.flatten();

resolve(project);
5 changes: 5 additions & 0 deletions 15_deinterleaved_buffers/kfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ project.addFile('Sources/**');
project.addKongDir('Shaders');
project.setDebugDir('Deployment');

if (Options.screenshot) {
project.addDefine('SCREENSHOT');
project.addDefine('KOPE_D3D12_FORCE_WARP');
}

project.flatten();

resolve(project);
5 changes: 5 additions & 0 deletions MultiWindow/kfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ project.addFile('Sources/**');
project.addFile('Shaders/**');
project.setDebugDir('Deployment');

if (Options.screenshot) {
project.addDefine('SCREENSHOT');
project.addDefine('KOPE_D3D12_FORCE_WARP');
}

project.flatten();

resolve(project);
5 changes: 5 additions & 0 deletions PlayVideo/kfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ project.addFile('Sources/**');
project.addFile('Shaders/**');
project.setDebugDir('Deployment');

if (Options.screenshot) {
project.addDefine('SCREENSHOT');
project.addDefine('KOPE_D3D12_FORCE_WARP');
}

project.flatten();

resolve(project);
5 changes: 5 additions & 0 deletions Raytracing/kfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ project.setDebugDir('Deployment');
project.addLib('../nvapi/amd64/nvapi64');
project.addDefine('KOPE_NVAPI');*/

if (Options.screenshot) {
project.addDefine('SCREENSHOT');
//project.addDefine('KOPE_D3D12_FORCE_WARP');
}

project.flatten();

resolve(project);
5 changes: 5 additions & 0 deletions RuntimeShaderCompilation/kfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ await project.addProject('../Kinc');
project.addFile('Sources/**');
project.setDebugDir('Deployment');

if (Options.screenshot) {
project.addDefine('SCREENSHOT');
project.addDefine('KOPE_D3D12_FORCE_WARP');
}

project.flatten();

resolve(project);

0 comments on commit 5c6005a

Please sign in to comment.