[vulkan] Fix incorrect bsp sky constant ids

I guess I got things a little tangled when cleaning up my bindless
attempt.
Fixes black default skies.
This commit is contained in:
Bill Currie 2022-02-18 01:15:38 +09:00
parent 4e229169ec
commit 1447d9297d
2 changed files with 5 additions and 5 deletions

View file

@ -793,11 +793,11 @@
specializationInfo = {
mapEntries = (
// doSkyBox
{ size = 4; offset = 4; constantID = 0; },
{ size = 4; offset = 0; constantID = 0; },
// doSkySheet
{ size = 4; offset = 0; constantID = 1; },
{ size = 4; offset = 4; constantID = 1; },
);
data = "array(0, 1)";
data = "array(1, 0)";
};
},
);

View file

@ -1,7 +1,7 @@
#version 450
layout (constant_id = 1) const bool doSkyBox = false;
layout (constant_id = 2) const bool doSkySheet = false;
layout (constant_id = 0) const bool doSkyBox = false;
layout (constant_id = 1) const bool doSkySheet = false;
layout (set = 1, binding = 0) uniform sampler2DArray SkySheet;
layout (set = 2, binding = 0) uniform samplerCube SkyBox;