mirror of
https://github.com/skyline-emu/skyline.git
synced 2025-01-11 17:09:11 +01:00
Simplify blit helper shader vertex order
This commit is contained in:
parent
c32bec071c
commit
bf491f71f9
@ -58,7 +58,7 @@ namespace skyline::gpu {
|
|||||||
.polygonMode = vk::PolygonMode::eFill,
|
.polygonMode = vk::PolygonMode::eFill,
|
||||||
.lineWidth = 1.0f,
|
.lineWidth = 1.0f,
|
||||||
.cullMode = vk::CullModeFlagBits::eNone,
|
.cullMode = vk::CullModeFlagBits::eNone,
|
||||||
.frontFace = vk::FrontFace::eCounterClockwise,
|
.frontFace = vk::FrontFace::eClockwise,
|
||||||
.depthBiasEnable = false
|
.depthBiasEnable = false
|
||||||
}, {
|
}, {
|
||||||
.provokingVertexMode = vk::ProvokingVertexModeEXT::eFirstVertex
|
.provokingVertexMode = vk::ProvokingVertexModeEXT::eFirstVertex
|
||||||
|
@ -9,12 +9,12 @@ layout (push_constant) uniform constants {
|
|||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
const vec2 lut[6] = vec2[6](
|
const vec2 lut[6] = vec2[6](
|
||||||
vec2(1, 0),
|
|
||||||
vec2(1, 1),
|
|
||||||
vec2(0, 1),
|
|
||||||
vec2(0, 1),
|
|
||||||
vec2(0, 0),
|
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];
|
dstPosition = lut[gl_VertexIndex];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user