mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-12-16 20:26:33 +00:00
Merge pull request #12978 from liamwhite/ffs-qcom
host_shaders: add vendor workaround for adreno drivers
This commit is contained in:
commit
999ec5739d
@ -19,15 +19,13 @@ layout (push_constant) uniform PushConstants {
|
|||||||
// Any member of a push constant block that is declared as an
|
// Any member of a push constant block that is declared as an
|
||||||
// array must only be accessed with dynamically uniform indices.
|
// array must only be accessed with dynamically uniform indices.
|
||||||
ScreenRectVertex GetVertex(int index) {
|
ScreenRectVertex GetVertex(int index) {
|
||||||
switch (index) {
|
if (index < 1) {
|
||||||
case 0:
|
|
||||||
default:
|
|
||||||
return vertices[0];
|
return vertices[0];
|
||||||
case 1:
|
} else if (index < 2) {
|
||||||
return vertices[1];
|
return vertices[1];
|
||||||
case 2:
|
} else if (index < 3) {
|
||||||
return vertices[2];
|
return vertices[2];
|
||||||
case 3:
|
} else {
|
||||||
return vertices[3];
|
return vertices[3];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user