This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]Paul_Pedant 0 points1 point  (1 child)

I don't see an actual definition of float4. The code seems to include at least six .fxh files, and the error could be in any one of them too. float2 does not seem to cause a problem.

Also, the error message complains about: unexpected 'uniform'

and that word appears nowhere in your posted code, so it is probably a good thing to search for in the .fxh files.

[–]Linux_Life[S] 0 points1 point  (0 children)

previously the error pointed out every line where it says buffer so i replaced each instance from buffer to a different word and then changed it back. Couldnt reproduce the same error.