mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
FIx the SSBO usage on amd, needed a bit more explanation on the glsl side
This commit is contained in:
parent
0a615f35a7
commit
733e268391
2 changed files with 4 additions and 2 deletions
|
@ -124,7 +124,8 @@ layout(std140) buffer transformObjectBuffer {
|
|||
TransformObject _object[];
|
||||
};
|
||||
TransformObject getTransformObject() {
|
||||
return _object[_drawCallInfo.x];
|
||||
TransformObject transformObject = _object[_drawCallInfo.x];
|
||||
return transformObject;
|
||||
}
|
||||
#else
|
||||
uniform samplerBuffer transformObjectBuffer;
|
||||
|
|
|
@ -40,7 +40,8 @@ layout(std140) buffer ssbo0Buffer {
|
|||
ItemBound bounds[];
|
||||
};
|
||||
ItemBound getItemBound(int i) {
|
||||
return bounds[i];
|
||||
ItemBound bound = bounds[i];
|
||||
return bound;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue