-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
glsl-reduce enhancement: based on perses #1179
Comments
@AaronGhost For the second one, "Removing the outer array in an array index expression", are you able to paste the necessary buffer block declarations? |
Improves the reducer's ability to reduce array indexing expressions, by being less conservative about l-values. Part of #1179.
I am not quite sure to understand the question. The buffer block could be something like this: layout(std430, binding = 0) buffer buffer_0
{
int ext_1;
uint ext_3[10];
int ext_4[2];
int ext_5[3];
}; A value of ext_4[0] = 0 for example leads to a "loop" behaviour. |
Improves the reducer's ability to reduce array indexing expressions, by being less conservative about l-values. Part of #1179.
Adds support for simplifying, shortening and removing swizzles. Part of #1179.
I have been experimenting with both glsl-reduce and perses as reducers. It seems that Perses performs more reduction opportunities than glsl-reduce, especially in reducing more aggressively array indexes. Please find below some examples of structures reduced first with glsl-reduce and then with perses.
glsl-reduce
perses
glsl-reduce
perses
glsl-reduce
perses
glsl-reduce
perses
The text was updated successfully, but these errors were encountered: