Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Indexing removed on variable-sized array if index is zero #58

Open
Malacath92 opened this issue Sep 7, 2017 · 1 comment
Open

Indexing removed on variable-sized array if index is zero #58

Malacath92 opened this issue Sep 7, 2017 · 1 comment

Comments

@Malacath92
Copy link

Malacath92 commented Sep 7, 2017

Another problem with variable-sized arrays. The following shader's output from LunarGOO.exe, seen below is also erroneous:

#version 450
layout (binding = 0) buffer IntBuffer {
   int IntList[];
};
layout (location = 0) out int outInt;
void main() {
    outInt = IntList[0];
}

becomes

#version 450 core
// LunarGOO output
layout(binding=0) buffer IntBuffer {
        int IntList[];
} ;
layout(location=0) out int outInt;
void main(){
        outInt = IntList;
}

So LunarGLASS just removed the sub-scripting. Again it doesn't do so for fixed-sized arrays. The problem again shows up after translateTopToBottom.

@Silverlan
Copy link

Can confirm that this still happens with the latest commit (012965a)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants