Simplify blit helper shader vertex order

This commit is contained in:
Billy Laws 2022-08-10 15:43:16 +01:00
parent c32bec071c
commit bf491f71f9
2 changed files with 6 additions and 6 deletions

View File

@ -58,7 +58,7 @@ namespace skyline::gpu {
.polygonMode = vk::PolygonMode::eFill,
.lineWidth = 1.0f,
.cullMode = vk::CullModeFlagBits::eNone,
.frontFace = vk::FrontFace::eCounterClockwise,
.frontFace = vk::FrontFace::eClockwise,
.depthBiasEnable = false
}, {
.provokingVertexMode = vk::ProvokingVertexModeEXT::eFirstVertex

View File

@ -9,12 +9,12 @@ layout (push_constant) uniform constants {
void main() {
const vec2 lut[6] = vec2[6](
vec2(1, 0),
vec2(1, 1),
vec2(0, 1),
vec2(0, 1),
vec2(0, 0),
vec2(1, 0)
vec2(0, 1),
vec2(1, 1),
vec2(1, 1),
vec2(1, 0),
vec2(0, 0)
);
dstPosition = lut[gl_VertexIndex];