Skip to content

Commit

Permalink
fix vk device lost
Browse files Browse the repository at this point in the history
  • Loading branch information
jmorton06 committed Sep 14, 2024
1 parent 1da08de commit 2d57072
Show file tree
Hide file tree
Showing 25 changed files with 1,364 additions and 1,190 deletions.
14 changes: 13 additions & 1 deletion Lumos/Assets/Shaders/Buffers.glslh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ struct Light
float angle;
};

layout(set = 1,binding = 6) uniform UniformMaterialData
layout(set = 1, binding = 0) uniform sampler2D u_AlbedoMap;
layout(set = 1, binding = 1) uniform sampler2D u_MetallicMap;
layout(set = 1, binding = 2) uniform sampler2D u_RoughnessMap;
layout(set = 1, binding = 3) uniform sampler2D u_NormalMap;
layout(set = 1, binding = 4) uniform sampler2D u_AOMap;
layout(set = 1, binding = 5) uniform sampler2D u_EmissiveMap;
layout(set = 1, binding = 6) uniform UniformMaterialData
{
vec4 AlbedoColour;
float Roughness;
Expand All @@ -40,6 +46,12 @@ layout(set = 1,binding = 6) uniform UniformMaterialData
float workflow;
} u_MaterialData;


layout(set = 2, binding = 0) uniform sampler2DArray uShadowMap;
layout(set = 2, binding = 1) uniform samplerCube uEnvMap;
layout(set = 2, binding = 2) uniform samplerCube uIrrMap;
layout(set = 2, binding = 3) uniform sampler2D uBRDFLUT;
layout(set = 2, binding = 4) uniform sampler2D uSSAOMap;
layout(set = 2, binding = 5) uniform UniformSceneData
{
Light lights[MAX_LIGHTS];
Expand Down
Binary file modified Lumos/Assets/Shaders/CompiledSPV/Batch2D.frag.spv
Binary file not shown.
Binary file modified Lumos/Assets/Shaders/CompiledSPV/Batch2D.vert.spv
Binary file not shown.
Binary file modified Lumos/Assets/Shaders/CompiledSPV/DepthPrePass.frag.spv
Binary file not shown.
Binary file modified Lumos/Assets/Shaders/CompiledSPV/DepthPrePassAlpha.frag.spv
Binary file not shown.
Binary file modified Lumos/Assets/Shaders/CompiledSPV/ForwardPBR.vert.spv
Binary file not shown.
Binary file modified Lumos/Assets/Shaders/CompiledSPV/ForwardPBRAnim.vert.spv
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

constexpr uint32_t spirv_Batch2Dfragspv_size = 5584;
constexpr std::array<uint32_t, 1396> spirv_Batch2Dfragspv = {
0x07230203, 0x00010000, 0x000D000B, 0x00000101, 0x00000000, 0x00020011, 0x00000001, 0x0006000B,
0x07230203, 0x00010000, 0x000D000A, 0x00000101, 0x00000000, 0x00020011, 0x00000001, 0x0006000B,
0x00000001, 0x4C534C47, 0x6474732E, 0x3035342E, 0x00000000, 0x0003000E, 0x00000000, 0x00000001,
0x0007000F, 0x00000004, 0x00000004, 0x6E69616D, 0x00000000, 0x00000022, 0x000000FF, 0x00030010,
0x00000004, 0x00000007, 0x00030003, 0x00000002, 0x000001C2, 0x00090004, 0x415F4C47, 0x735F4252,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

constexpr uint32_t spirv_Batch2Dvertspv_size = 2012;
constexpr std::array<uint32_t, 503> spirv_Batch2Dvertspv = {
0x07230203, 0x00010000, 0x000D000B, 0x0000003E, 0x00000000, 0x00020011, 0x00000001, 0x0006000B,
0x07230203, 0x00010000, 0x000D000A, 0x0000003E, 0x00000000, 0x00020011, 0x00000001, 0x0006000B,
0x00000001, 0x4C534C47, 0x6474732E, 0x3035342E, 0x00000000, 0x0003000E, 0x00000000, 0x00000001,
0x000B000F, 0x00000000, 0x00000004, 0x6E69616D, 0x00000000, 0x0000000D, 0x00000019, 0x00000026,
0x0000002C, 0x00000033, 0x0000003B, 0x00030003, 0x00000002, 0x000001C2, 0x00090004, 0x415F4C47,
Expand Down
178 changes: 89 additions & 89 deletions Lumos/Assets/Shaders/CompiledSPV/Headers/DepthPrePassAlphafragspv.hpp

Large diffs are not rendered by default.

265 changes: 147 additions & 118 deletions Lumos/Assets/Shaders/CompiledSPV/Headers/DepthPrePassfragspv.hpp

Large diffs are not rendered by default.

498 changes: 264 additions & 234 deletions Lumos/Assets/Shaders/CompiledSPV/Headers/ForwardPBRAnimvertspv.hpp

Large diffs are not rendered by default.

359 changes: 194 additions & 165 deletions Lumos/Assets/Shaders/CompiledSPV/Headers/ForwardPBRvertspv.hpp

Large diffs are not rendered by default.

174 changes: 87 additions & 87 deletions Lumos/Assets/Shaders/CompiledSPV/Headers/ShadowAlphafragspv.hpp

Large diffs are not rendered by default.

455 changes: 242 additions & 213 deletions Lumos/Assets/Shaders/CompiledSPV/Headers/ShadowAnimvertspv.hpp

Large diffs are not rendered by default.

241 changes: 135 additions & 106 deletions Lumos/Assets/Shaders/CompiledSPV/Headers/Shadowfragspv.hpp

Large diffs are not rendered by default.

349 changes: 189 additions & 160 deletions Lumos/Assets/Shaders/CompiledSPV/Headers/Shadowvertspv.hpp

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Lumos/Assets/Shaders/CompiledSPV/Headers/Textfragspv.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

constexpr uint32_t spirv_Textfragspv_size = 8708;
constexpr std::array<uint32_t, 2177> spirv_Textfragspv = {
0x07230203, 0x00010000, 0x000D000B, 0x00000184, 0x00000000, 0x00020011, 0x00000001, 0x00020011,
0x07230203, 0x00010000, 0x000D000A, 0x00000184, 0x00000000, 0x00020011, 0x00000001, 0x00020011,
0x00000032, 0x0006000B, 0x00000001, 0x4C534C47, 0x6474732E, 0x3035342E, 0x00000000, 0x0003000E,
0x00000000, 0x00000001, 0x0007000F, 0x00000004, 0x00000004, 0x6E69616D, 0x00000000, 0x0000003F,
0x00000182, 0x00030010, 0x00000004, 0x00000007, 0x00030003, 0x00000002, 0x000001C2, 0x00090004,
Expand Down
Binary file modified Lumos/Assets/Shaders/CompiledSPV/Shadow.frag.spv
Binary file not shown.
Binary file modified Lumos/Assets/Shaders/CompiledSPV/Shadow.vert.spv
Binary file not shown.
Binary file modified Lumos/Assets/Shaders/CompiledSPV/ShadowAlpha.frag.spv
Binary file not shown.
Binary file modified Lumos/Assets/Shaders/CompiledSPV/ShadowAnim.vert.spv
Binary file not shown.
Binary file modified Lumos/Assets/Shaders/CompiledSPV/Text.frag.spv
Binary file not shown.
12 changes: 0 additions & 12 deletions Lumos/Assets/Shaders/PBRResources.glslh

This file was deleted.

3 changes: 1 addition & 2 deletions Lumos/Source/Lumos/Platform/Vulkan/VKRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -678,8 +678,7 @@ file.close();
//Decrease Pool capcity by 1
//Check if capacity is 0
//Add to free list if empty

return false;
return false;
}

void VKRenderer::ReleaseDescriptorPools()
Expand Down

0 comments on commit 2d57072

Please sign in to comment.