mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-11-26 11:05:46 +01:00
Merge yuzu-emu#12978
This commit is contained in:
parent
eca5202c63
commit
f139ff1161
@ -19,15 +19,13 @@ layout (push_constant) uniform PushConstants {
|
||||
// Any member of a push constant block that is declared as an
|
||||
// array must only be accessed with dynamically uniform indices.
|
||||
ScreenRectVertex GetVertex(int index) {
|
||||
switch (index) {
|
||||
case 0:
|
||||
default:
|
||||
if (index < 1) {
|
||||
return vertices[0];
|
||||
case 1:
|
||||
} else if (index < 2) {
|
||||
return vertices[1];
|
||||
case 2:
|
||||
} else if (index < 3) {
|
||||
return vertices[2];
|
||||
case 3:
|
||||
} else {
|
||||
return vertices[3];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user