Skip to content

Commit

Permalink
[FIX] : fix texture glitch after resize
Browse files Browse the repository at this point in the history
        some computes was with local group 8,8
        but with texture size not multiple of 8.
        now all computes are using 1,1 except those who not process textures
  • Loading branch information
aiekick committed Aug 2, 2024
1 parent db5671e commit 2f1794d
Show file tree
Hide file tree
Showing 48 changed files with 121 additions and 97 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ endif()
add_definitions(-DUSE_GLFW3)
add_definitions(-DUSE_STD_FILESYSTEM)
add_definitions(-DIMGUI_ENABLE_FREETYPE)
add_definitions(-DPROJECT_NAME="${PROJECT}")
add_definitions(-DVMA_VULKAN_VERSION=1002000)
add_definitions(-DIMGUI_DEFINE_MATH_OPERATORS)
add_definitions(-DGLM_FORCE_DEPTH_ZERO_TO_ONE)
Expand Down Expand Up @@ -214,6 +213,7 @@ target_compile_definitions(${PROJECT} PRIVATE BUILD_GAIA_SHARED_LIBS)
target_compile_definitions(${PROJECT} PRIVATE BUILD_CTOOLS_SHARED_LIBS)
target_compile_definitions(${PROJECT} PRIVATE BUILD_IMGUI_PACK_SHARED_LIBS)
target_compile_definitions(${PROJECT} PRIVATE BUILD_LUMO_BACKEND_SHARED_LIBS)
target_compile_definitions(${PROJECT} PRIVATE PROJECT_NAME="${PROJECT}")

if(USE_DEBUG_SANITIZER)
target_compile_options(${PROJECT} PRIVATE $<$<CONFIG:Debug>:-fsanitize=address -static-libasan>)
Expand Down
2 changes: 1 addition & 1 deletion Plugins/AudiArt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ add_definitions(-DCUSTOM_LUMO_BACKEND_CONFIG="${CMAKE_SOURCE_DIR}/src/Frontend/C
add_definitions(-DCUSTOM_IMWIDGETS_CONFIG="${CMAKE_SOURCE_DIR}/src/Frontend/CustomImWidgetsConfig.h")
add_definitions(-DUSE_IMGUI="${CMAKE_SOURCE_DIR}/libs/Gaia/3rdparty/ImGuiPack/3rdparty/imgui/imgui.h") # for use ImGuiPack
add_definitions(-DCUSTOM_IMGUIFILEDIALOG_CONFIG="${CMAKE_SOURCE_DIR}/src/Frontend/CustomImGuiFileDialogConfig.h")
add_definitions(-DPROJECT_NAME="${PROJECT}")
add_definitions(-DUSE_STD_FILESYSTEM)
add_definitions(-DUSE_VULKAN)

Expand Down Expand Up @@ -118,6 +117,7 @@ target_compile_definitions(${PROJECT} PRIVATE BUILD_GAIA_SHARED_LIBS)
target_compile_definitions(${PROJECT} PRIVATE BUILD_CTOOLS_SHARED_LIBS)
target_compile_definitions(${PROJECT} PRIVATE BUILD_IMGUI_PACK_SHARED_LIBS)
target_compile_definitions(${PROJECT} PRIVATE BUILD_LUMO_BACKEND_SHARED_LIBS)
target_compile_definitions(${PROJECT} PRIVATE PROJECT_NAME="${PROJECT}")

if(USE_DEBUG_SANITIZER)
target_compile_options(${PROJECT} PRIVATE $<$<CONFIG:Debug>:-fsanitize=address -static-libasan>)
Expand Down
4 changes: 2 additions & 2 deletions Plugins/AudiArt/src/Headers/AudiArtBuild.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#define AudiArt_Prefix "AudiArt"
#define AudiArt_BuildNumber 122
#define AudiArt_BuildNumber 123
#define AudiArt_MinorNumber 0
#define AudiArt_MajorNumber 0
#define AudiArt_BuildId "0.0.122"
#define AudiArt_BuildId "0.0.123"
2 changes: 1 addition & 1 deletion Plugins/CodeGenerator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ add_definitions(-DCUSTOM_LUMO_BACKEND_CONFIG="${CMAKE_SOURCE_DIR}/src/Frontend/C
add_definitions(-DCUSTOM_IMWIDGETS_CONFIG="${CMAKE_SOURCE_DIR}/src/Frontend/CustomImWidgetsConfig.h")
add_definitions(-DUSE_IMGUI="${CMAKE_SOURCE_DIR}/libs/Gaia/3rdparty/ImGuiPack/3rdparty/imgui/imgui.h") # for use ImGuiPack
add_definitions(-DCUSTOM_IMGUIFILEDIALOG_CONFIG="${CMAKE_SOURCE_DIR}/src/Frontend/CustomImGuiFileDialogConfig.h")
add_definitions(-DPROJECT_NAME="${PROJECT}")
add_definitions(-DUSE_STD_FILESYSTEM)
add_definitions(-DUSE_VULKAN)

Expand Down Expand Up @@ -115,6 +114,7 @@ target_compile_definitions(${PROJECT} PRIVATE BUILD_GAIA_SHARED_LIBS)
target_compile_definitions(${PROJECT} PRIVATE BUILD_CTOOLS_SHARED_LIBS)
target_compile_definitions(${PROJECT} PRIVATE BUILD_IMGUI_PACK_SHARED_LIBS)
target_compile_definitions(${PROJECT} PRIVATE BUILD_LUMO_BACKEND_SHARED_LIBS)
target_compile_definitions(${PROJECT} PRIVATE PROJECT_NAME="${PROJECT}")

if(USE_DEBUG_SANITIZER)
target_compile_options(${PROJECT} PRIVATE $<$<CONFIG:Debug>:-fsanitize=address -static-libasan>)
Expand Down
4 changes: 2 additions & 2 deletions Plugins/CodeGenerator/src/Headers/CodeGeneratorBuild.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#define CodeGenerator_Prefix "CodeGenerator"
#define CodeGenerator_BuildNumber 744
#define CodeGenerator_BuildNumber 745
#define CodeGenerator_MinorNumber 0
#define CodeGenerator_MajorNumber 0
#define CodeGenerator_BuildId "0.0.744"
#define CodeGenerator_BuildId "0.0.745"
2 changes: 1 addition & 1 deletion Plugins/Landscape/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ add_definitions(-DCUSTOM_LUMO_BACKEND_CONFIG="${CMAKE_SOURCE_DIR}/src/Frontend/C
add_definitions(-DCUSTOM_IMWIDGETS_CONFIG="${CMAKE_SOURCE_DIR}/src/Frontend/CustomImWidgetsConfig.h")
add_definitions(-DUSE_IMGUI="${CMAKE_SOURCE_DIR}/libs/Gaia/3rdparty/ImGuiPack/3rdparty/imgui/imgui.h") # for use ImGuiPack
add_definitions(-DCUSTOM_IMGUIFILEDIALOG_CONFIG="${CMAKE_SOURCE_DIR}/src/Frontend/CustomImGuiFileDialogConfig.h")
add_definitions(-DPROJECT_NAME="${PROJECT}")
add_definitions(-DUSE_STD_FILESYSTEM)
add_definitions(-DUSE_VULKAN)

Expand Down Expand Up @@ -115,6 +114,7 @@ target_compile_definitions(${PROJECT} PRIVATE BUILD_GAIA_SHARED_LIBS)
target_compile_definitions(${PROJECT} PRIVATE BUILD_CTOOLS_SHARED_LIBS)
target_compile_definitions(${PROJECT} PRIVATE BUILD_IMGUI_PACK_SHARED_LIBS)
target_compile_definitions(${PROJECT} PRIVATE BUILD_LUMO_BACKEND_SHARED_LIBS)
target_compile_definitions(${PROJECT} PRIVATE PROJECT_NAME="${PROJECT}")

if(USE_DEBUG_SANITIZER)
target_compile_options(${PROJECT} PRIVATE $<$<CONFIG:Debug>:-fsanitize=address -static-libasan>)
Expand Down
4 changes: 2 additions & 2 deletions Plugins/Landscape/src/Headers/LandscapeBuild.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#define Landscape_Prefix "Landscape"
#define Landscape_BuildNumber 25
#define Landscape_BuildNumber 26
#define Landscape_MinorNumber 0
#define Landscape_MajorNumber 0
#define Landscape_BuildId "0.0.25"
#define Landscape_BuildId "0.0.26"
2 changes: 1 addition & 1 deletion Plugins/Lighting/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ add_definitions(-DCUSTOM_LUMO_BACKEND_CONFIG="${CMAKE_SOURCE_DIR}/src/Frontend/C
add_definitions(-DCUSTOM_IMWIDGETS_CONFIG="${CMAKE_SOURCE_DIR}/src/Frontend/CustomImWidgetsConfig.h")
add_definitions(-DUSE_IMGUI="${CMAKE_SOURCE_DIR}/libs/Gaia/3rdparty/ImGuiPack/3rdparty/imgui/imgui.h") # for use ImGuiPack
add_definitions(-DCUSTOM_IMGUIFILEDIALOG_CONFIG="${CMAKE_SOURCE_DIR}/src/Frontend/CustomImGuiFileDialogConfig.h")
add_definitions(-DPROJECT_NAME="${PROJECT}")
add_definitions(-DUSE_STD_FILESYSTEM)
add_definitions(-DUSE_VULKAN)

Expand Down Expand Up @@ -115,6 +114,7 @@ target_compile_definitions(${PROJECT} PRIVATE BUILD_GAIA_SHARED_LIBS)
target_compile_definitions(${PROJECT} PRIVATE BUILD_CTOOLS_SHARED_LIBS)
target_compile_definitions(${PROJECT} PRIVATE BUILD_IMGUI_PACK_SHARED_LIBS)
target_compile_definitions(${PROJECT} PRIVATE BUILD_LUMO_BACKEND_SHARED_LIBS)
target_compile_definitions(${PROJECT} PRIVATE PROJECT_NAME="${PROJECT}")

if(USE_DEBUG_SANITIZER)
target_compile_options(${PROJECT} PRIVATE $<$<CONFIG:Debug>:-fsanitize=address -static-libasan>)
Expand Down
4 changes: 2 additions & 2 deletions Plugins/Lighting/src/Headers/LightingBuild.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#define Lighting_Prefix "Lighting"
#define Lighting_BuildNumber 654
#define Lighting_BuildNumber 656
#define Lighting_MinorNumber 0
#define Lighting_MajorNumber 0
#define Lighting_BuildId "0.0.654"
#define Lighting_BuildId "0.0.656"
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,13 @@ bool CellShadingModule_Comp_Pass::UpdateBufferInfoInRessourceDescriptor() {
std::string CellShadingModule_Comp_Pass::GetComputeShaderCode(std::string& vOutShaderName) {
vOutShaderName = "CellShadingModule_Comp_Pass";

SetLocalGroupSize(ct::uvec3(8U, 8U, 1U));
SetLocalGroupSize(ct::uvec3(1U, 1U, 1U));

return u8R"(
#version 450
#extension GL_ARB_separate_shader_objects : enable
layout (local_size_x = 8, local_size_y = 8, local_size_z = 1 ) in;
layout (local_size_x = 1, local_size_y = 1, local_size_z = 1 ) in;
layout(binding = 0, rgba32f) uniform writeonly image2D outColor;
)" + SceneLightGroup::GetBufferObjectStructureHeader(1U) +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,13 +206,13 @@ bool DiffuseModule_Comp_Pass::UpdateBufferInfoInRessourceDescriptor() {
std::string DiffuseModule_Comp_Pass::GetComputeShaderCode(std::string& vOutShaderName) {
vOutShaderName = "DiffuseModule_Comp_Pass";

SetLocalGroupSize(ct::uvec3(8U, 8U, 1U));
SetLocalGroupSize(ct::uvec3(1U, 1U, 1U));

return u8R"(
#version 450
#extension GL_ARB_separate_shader_objects : enable
layout (local_size_x = 8, local_size_y = 8, local_size_z = 1 ) in;
layout (local_size_x = 1, local_size_y = 1, local_size_z = 1 ) in;
layout(binding = 0, rgba32f) uniform writeonly image2D outColor;
)" + SceneLightGroup::GetBufferObjectStructureHeader(1U) +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,13 +208,13 @@ bool SpecularModule_Comp_Pass::UpdateBufferInfoInRessourceDescriptor() {
std::string SpecularModule_Comp_Pass::GetComputeShaderCode(std::string& vOutShaderName) {
vOutShaderName = "SpecularModule_Comp_Pass";

SetLocalGroupSize(ct::uvec3(8U, 8U, 1U));
SetLocalGroupSize(ct::uvec3(1U, 1U, 1U));

return u8R"(
#version 450
#extension GL_ARB_separate_shader_objects : enable
layout (local_size_x = 8, local_size_y = 8, local_size_z = 1 ) in;
layout (local_size_x = 1, local_size_y = 1, local_size_z = 1 ) in;
layout(binding = 0, rgba32f) uniform writeonly image2D outColor;
)" + CommonSystem::GetBufferObjectStructureHeader(1U) +
Expand Down
2 changes: 1 addition & 1 deletion Plugins/MeshGen/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ add_definitions(-DCUSTOM_LUMO_BACKEND_CONFIG="${CMAKE_SOURCE_DIR}/src/Frontend/C
add_definitions(-DCUSTOM_IMWIDGETS_CONFIG="${CMAKE_SOURCE_DIR}/src/Frontend/CustomImWidgetsConfig.h")
add_definitions(-DUSE_IMGUI="${CMAKE_SOURCE_DIR}/libs/Gaia/3rdparty/ImGuiPack/3rdparty/imgui/imgui.h") # for use ImGuiPack
add_definitions(-DCUSTOM_IMGUIFILEDIALOG_CONFIG="${CMAKE_SOURCE_DIR}/src/Frontend/CustomImGuiFileDialogConfig.h")
add_definitions(-DPROJECT_NAME="${PROJECT}")
add_definitions(-DUSE_STD_FILESYSTEM)
add_definitions(-DUSE_VULKAN)

Expand Down Expand Up @@ -117,6 +116,7 @@ target_compile_definitions(${PROJECT} PRIVATE BUILD_GAIA_SHARED_LIBS)
target_compile_definitions(${PROJECT} PRIVATE BUILD_CTOOLS_SHARED_LIBS)
target_compile_definitions(${PROJECT} PRIVATE BUILD_IMGUI_PACK_SHARED_LIBS)
target_compile_definitions(${PROJECT} PRIVATE BUILD_LUMO_BACKEND_SHARED_LIBS)
target_compile_definitions(${PROJECT} PRIVATE PROJECT_NAME="${PROJECT}")

if(USE_DEBUG_SANITIZER)
target_compile_options(${PROJECT} PRIVATE $<$<CONFIG:Debug>:-fsanitize=address -static-libasan>)
Expand Down
4 changes: 2 additions & 2 deletions Plugins/MeshGen/src/Headers/MeshGenBuild.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#define MeshGen_Prefix "MeshGen"
#define MeshGen_BuildNumber 409
#define MeshGen_BuildNumber 410
#define MeshGen_MinorNumber 0
#define MeshGen_MajorNumber 0
#define MeshGen_BuildId "0.0.409"
#define MeshGen_BuildId "0.0.410"
1 change: 0 additions & 1 deletion Plugins/Misc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ add_definitions(-DCUSTOM_LUMO_BACKEND_CONFIG="${CMAKE_SOURCE_DIR}/src/Frontend/C
add_definitions(-DCUSTOM_IMWIDGETS_CONFIG="${CMAKE_SOURCE_DIR}/src/Frontend/CustomImWidgetsConfig.h")
add_definitions(-DUSE_IMGUI="${CMAKE_SOURCE_DIR}/libs/Gaia/3rdparty/ImGuiPack/3rdparty/imgui/imgui.h") # for use ImGuiPack
add_definitions(-DCUSTOM_IMGUIFILEDIALOG_CONFIG="${CMAKE_SOURCE_DIR}/src/Frontend/CustomImGuiFileDialogConfig.h")
add_definitions(-DPROJECT_NAME="${PROJECT}")
add_definitions(-DUSE_STD_FILESYSTEM)
add_definitions(-DUSE_VULKAN)

Expand Down
4 changes: 2 additions & 2 deletions Plugins/Misc/src/Headers/MiscBuild.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#define Misc_Prefix "Misc"
#define Misc_BuildNumber 205
#define Misc_BuildNumber 207
#define Misc_MinorNumber 1
#define Misc_MajorNumber 0
#define Misc_BuildId "0.1.205"
#define Misc_BuildId "0.1.207"
Original file line number Diff line number Diff line change
Expand Up @@ -281,12 +281,12 @@ std::string SdfTextureModule_Comp_Pass::GetComputeShaderCode(std::string& vOutSh

vOutShaderName = "SdfTextureModule_Compute_Pass";

SetLocalGroupSize(ct::uvec3(8U, 8U, 1U));
SetLocalGroupSize(ct::uvec3(1U, 1U, 1U));

return u8R"(
#version 450
#extension GL_ARB_separate_shader_objects : enable
layout (local_size_x = 8, local_size_y = 8, local_size_z = 1 ) in;
layout (local_size_x = 1, local_size_y = 1, local_size_z = 1 ) in;
layout(binding = 0, rgba32f) uniform writeonly image2D outColor;
layout(binding = 1) uniform sampler2D input_map_sampler;
layout(push_constant) uniform constants { int iteration_count; };
Expand Down
2 changes: 1 addition & 1 deletion Plugins/Particles/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ add_definitions(-DCUSTOM_LUMO_BACKEND_CONFIG="${CMAKE_SOURCE_DIR}/src/Frontend/C
add_definitions(-DCUSTOM_IMWIDGETS_CONFIG="${CMAKE_SOURCE_DIR}/src/Frontend/CustomImWidgetsConfig.h")
add_definitions(-DUSE_IMGUI="${CMAKE_SOURCE_DIR}/libs/Gaia/3rdparty/ImGuiPack/3rdparty/imgui/imgui.h") # for use ImGuiPack
add_definitions(-DCUSTOM_IMGUIFILEDIALOG_CONFIG="${CMAKE_SOURCE_DIR}/src/Frontend/CustomImGuiFileDialogConfig.h")
add_definitions(-DPROJECT_NAME="${PROJECT}")
add_definitions(-DUSE_STD_FILESYSTEM)
add_definitions(-DUSE_VULKAN)

Expand Down Expand Up @@ -116,6 +115,7 @@ target_compile_definitions(${PROJECT} PRIVATE BUILD_GAIA_SHARED_LIBS)
target_compile_definitions(${PROJECT} PRIVATE BUILD_CTOOLS_SHARED_LIBS)
target_compile_definitions(${PROJECT} PRIVATE BUILD_IMGUI_PACK_SHARED_LIBS)
target_compile_definitions(${PROJECT} PRIVATE BUILD_LUMO_BACKEND_SHARED_LIBS)
target_compile_definitions(${PROJECT} PRIVATE PROJECT_NAME="${PROJECT}")

if(USE_DEBUG_SANITIZER)
target_compile_options(${PROJECT} PRIVATE $<$<CONFIG:Debug>:-fsanitize=address -static-libasan>)
Expand Down
4 changes: 2 additions & 2 deletions Plugins/Particles/src/Headers/ParticlesBuild.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#define Particles_Prefix "Particles"
#define Particles_BuildNumber 434
#define Particles_BuildNumber 435
#define Particles_MinorNumber 0
#define Particles_MajorNumber 0
#define Particles_BuildId "0.0.434"
#define Particles_BuildId "0.0.435"
2 changes: 1 addition & 1 deletion Plugins/PlanetSystem/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ add_definitions(-DCUSTOM_LUMO_BACKEND_CONFIG="${CMAKE_SOURCE_DIR}/src/Frontend/C
add_definitions(-DCUSTOM_IMWIDGETS_CONFIG="${CMAKE_SOURCE_DIR}/src/Frontend/CustomImWidgetsConfig.h")
add_definitions(-DUSE_IMGUI="${CMAKE_SOURCE_DIR}/libs/Gaia/3rdparty/ImGuiPack/3rdparty/imgui/imgui.h") # for use ImGuiPack
add_definitions(-DCUSTOM_IMGUIFILEDIALOG_CONFIG="${CMAKE_SOURCE_DIR}/src/Frontend/CustomImGuiFileDialogConfig.h")
add_definitions(-DPROJECT_NAME="${PROJECT}")
add_definitions(-DUSE_STD_FILESYSTEM)
add_definitions(-DUSE_VULKAN)

Expand Down Expand Up @@ -104,6 +103,7 @@ target_compile_definitions(${PROJECT} PRIVATE BUILD_GAIA_SHARED_LIBS)
target_compile_definitions(${PROJECT} PRIVATE BUILD_CTOOLS_SHARED_LIBS)
target_compile_definitions(${PROJECT} PRIVATE BUILD_IMGUI_PACK_SHARED_LIBS)
target_compile_definitions(${PROJECT} PRIVATE BUILD_LUMO_BACKEND_SHARED_LIBS)
target_compile_definitions(${PROJECT} PRIVATE PROJECT_NAME="${PROJECT}")

if(USE_DEBUG_SANITIZER)
target_compile_options(${PROJECT} PRIVATE $<$<CONFIG:Debug>:-fsanitize=address -static-libasan>)
Expand Down
4 changes: 2 additions & 2 deletions Plugins/PlanetSystem/src/Headers/PlanetSystemBuild.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#define PlanetSystem_Prefix "PlanetSystem"
#define PlanetSystem_BuildNumber 191
#define PlanetSystem_BuildNumber 192
#define PlanetSystem_MinorNumber 0
#define PlanetSystem_MajorNumber 0
#define PlanetSystem_BuildId "0.0.191"
#define PlanetSystem_BuildId "0.0.192"
2 changes: 1 addition & 1 deletion Plugins/PostProcessing/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ add_definitions(-DCUSTOM_LUMO_BACKEND_CONFIG="${CMAKE_SOURCE_DIR}/src/Frontend/C
add_definitions(-DCUSTOM_IMWIDGETS_CONFIG="${CMAKE_SOURCE_DIR}/src/Frontend/CustomImWidgetsConfig.h")
add_definitions(-DUSE_IMGUI="${CMAKE_SOURCE_DIR}/libs/Gaia/3rdparty/ImGuiPack/3rdparty/imgui/imgui.h") # for use ImGuiPack
add_definitions(-DCUSTOM_IMGUIFILEDIALOG_CONFIG="${CMAKE_SOURCE_DIR}/src/Frontend/CustomImGuiFileDialogConfig.h")
add_definitions(-DPROJECT_NAME="${PROJECT}")
add_definitions(-DUSE_STD_FILESYSTEM)
add_definitions(-DUSE_VULKAN)

Expand Down Expand Up @@ -115,6 +114,7 @@ target_compile_definitions(${PROJECT} PRIVATE BUILD_GAIA_SHARED_LIBS)
target_compile_definitions(${PROJECT} PRIVATE BUILD_CTOOLS_SHARED_LIBS)
target_compile_definitions(${PROJECT} PRIVATE BUILD_IMGUI_PACK_SHARED_LIBS)
target_compile_definitions(${PROJECT} PRIVATE BUILD_LUMO_BACKEND_SHARED_LIBS)
target_compile_definitions(${PROJECT} PRIVATE PROJECT_NAME="${PROJECT}")

if(USE_DEBUG_SANITIZER)
target_compile_options(${PROJECT} PRIVATE $<$<CONFIG:Debug>:-fsanitize=address -static-libasan>)
Expand Down
4 changes: 2 additions & 2 deletions Plugins/PostProcessing/src/Headers/PostProcessingBuild.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#define PostProcessing_Prefix "PostProcessing"
#define PostProcessing_BuildNumber 701
#define PostProcessing_BuildNumber 703
#define PostProcessing_MinorNumber 1
#define PostProcessing_MajorNumber 0
#define PostProcessing_BuildId "0.1.701"
#define PostProcessing_BuildId "0.1.703"
Original file line number Diff line number Diff line change
Expand Up @@ -405,13 +405,13 @@ bool BloomModule_Comp_2D_Pass::UpdateBufferInfoInRessourceDescriptor() {
std::string BloomModule_Comp_2D_Pass::GetComputeShaderCode(std::string& vOutShaderName) {
vOutShaderName = "BloomModule_Comp_2D_Pass";

SetLocalGroupSize(ct::uvec3(8U, 8U, 1U));
SetLocalGroupSize(ct::uvec3(1U, 1U, 1U));

return u8R"(
#version 450
#extension GL_ARB_separate_shader_objects : enable
layout (local_size_x = 8, local_size_y = 8, local_size_z = 1 ) in;
layout (local_size_x = 1, local_size_y = 1, local_size_z = 1 ) in;
// fixed
layout(std140, binding = 0) uniform UBO_Comp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -463,13 +463,13 @@ std::string BlurModule_Comp_2D_Pass::GetComputeShaderCode(std::string& vOutShade

vOutShaderName = "BlurModule_Compute_Pass";

SetLocalGroupSize(ct::uvec3(8U, 8U, 1U));
SetLocalGroupSize(ct::uvec3(1U, 1U, 1U));

return u8R"(
#version 450
#extension GL_ARB_separate_shader_objects : enable
layout (local_size_x = 8, local_size_y = 8, local_size_z = 1 ) in;
layout (local_size_x = 1, local_size_y = 1, local_size_z = 1 ) in;
layout(binding = 0, rgba32f) uniform writeonly image2D outColor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,13 +228,13 @@ bool ChromaticAberrationsModule_Comp_2D_Pass::UpdateBufferInfoInRessourceDescrip
std::string ChromaticAberrationsModule_Comp_2D_Pass::GetComputeShaderCode(std::string& vOutShaderName) {
vOutShaderName = "ChromaticAberrationsModule_Comp_2D_Pass_Compute";

SetLocalGroupSize(ct::uvec3(8U, 8U, 1U));
SetLocalGroupSize(ct::uvec3(1U, 1U, 1U));

return u8R"(
#version 450
#extension GL_ARB_separate_shader_objects : enable
layout (local_size_x = 8, local_size_y = 8, local_size_z = 1 ) in;
layout (local_size_x = 1, local_size_y = 1, local_size_z = 1 ) in;
layout(binding = 0, rgba32f) uniform image2D outColor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,12 +224,12 @@ bool DilationModule_Comp_2D_Pass::UpdateBufferInfoInRessourceDescriptor() {

std::string DilationModule_Comp_2D_Pass::GetComputeShaderCode(std::string& vOutShaderName) {
vOutShaderName = "DilationModule_Comp_2D_Pass_Compute";
SetLocalGroupSize(ct::uvec3(8U, 8U, 1U));
SetLocalGroupSize(ct::uvec3(1U, 1U, 1U));
return u8R"(
#version 450
#extension GL_ARB_separate_shader_objects : enable
layout (local_size_x = 8, local_size_y = 8, local_size_z = 1 ) in;
layout (local_size_x = 1, local_size_y = 1, local_size_z = 1 ) in;
layout(std140, binding = 0) uniform UBO_Comp {
int u_shape; // 0 : bokeh, 1 : circle, 2 : quad | default is 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,12 +298,12 @@ bool HeatMapModule_Comp_2D_Pass::UpdateBufferInfoInRessourceDescriptor() {

std::string HeatMapModule_Comp_2D_Pass::GetComputeShaderCode(std::string& vOutShaderName) {
vOutShaderName = "HeatMapModule_Comp_2D_Pass_Compute";
SetLocalGroupSize(ct::uvec3(8U, 8U, 1U));
SetLocalGroupSize(ct::uvec3(1U, 1U, 1U));
return u8R"(
#version 450
#extension GL_ARB_separate_shader_objects : enable
layout (local_size_x = 8, local_size_y = 8, local_size_z = 1 ) in;
layout (local_size_x = 1, local_size_y = 1, local_size_z = 1 ) in;
layout(std140, binding = 0) uniform UBO_Comp {
uint u_channel_idx; // 0..3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,13 +224,13 @@ bool SharpnessModule_Comp_2D_Pass::UpdateBufferInfoInRessourceDescriptor() {
std::string SharpnessModule_Comp_2D_Pass::GetComputeShaderCode(std::string& vOutShaderName) {
vOutShaderName = "SharpnessModule_Comp_2D_Pass_Compute";

SetLocalGroupSize(ct::uvec3(8U, 8U, 1U));
SetLocalGroupSize(ct::uvec3(1U, 1U, 1U));

return u8R"(
#version 450
#extension GL_ARB_separate_shader_objects : enable
layout (local_size_x = 8, local_size_y = 8, local_size_z = 1 ) in;
layout (local_size_x = 1, local_size_y = 1, local_size_z = 1 ) in;
layout(binding = 0, rgba32f) uniform image2D outColor;
Expand Down
Loading

0 comments on commit 2f1794d

Please sign in to comment.