{"action":"created","issue":{"url":"https://api.github.com/repos/KhronosGroup/SPIRV-Cross/issues/494","repository_url":"https://api.github.com/repos/KhronosGroup/SPIRV-Cross","labels_url":"https://api.github.com/repos/KhronosGroup/SPIRV-Cross/issues/494/labels{/name}","comments_url":"https://api.github.com/repos/KhronosGroup/SPIRV-Cross/issues/494/comments","events_url":"https://api.github.com/repos/KhronosGroup/SPIRV-Cross/issues/494/events","html_url":"https://github.com/KhronosGroup/SPIRV-Cross/issues/494","id":303501037,"number":494,"title":"Bad GLSL code generated from optimized SPIR-V","user":{"login":"turol","id":805057,"avatar_url":"https://avatars0.githubusercontent.com/u/805057?v=4","gravatar_id":"","url":"https://api.github.com/users/turol","html_url":"https://github.com/turol","followers_url":"https://api.github.com/users/turol/followers","following_url":"https://api.github.com/users/turol/following{/other_user}","gists_url":"https://api.github.com/users/turol/gists{/gist_id}","starred_url":"https://api.github.com/users/turol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turol/subscriptions","organizations_url":"https://api.github.com/users/turol/orgs","repos_url":"https://api.github.com/users/turol/repos","events_url":"https://api.github.com/users/turol/events{/privacy}","received_events_url":"https://api.github.com/users/turol/received_events","type":"User","site_admin":false},"labels":[{"id":352397990,"url":"https://api.github.com/repos/KhronosGroup/SPIRV-Cross/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-03-08T14:35:56Z","updated_at":"2018-03-09T14:12:26Z","closed_at":"2018-03-09T14:00:23Z","author_association":"NONE","body":"SPIRV-Cross generates GLSL code with different behavior from two shaders which should be functionally equivalent. The only difference between these shaders is that the bad version has been run through the optimizer. When testing with Vulkan where SPIRV-cross is not used the shaders behave identically. Currently using revision c9516fa91709b68ac20fa614625e85e0ced3f23f but I don't see major changes to GLSL in master.\r\n\r\n[Good shader](https://gist.github.com/turol/5527f957a0c602c14a7f864ce061f442)\r\n[Bad shader](https://gist.github.com/turol/054fdfdd966a03ba09163eda1f2ba586)\r\n\r\nI originally thought this was a SPIRV-Tools optimizer bug https://github.com/KhronosGroup/SPIRV-Tools/issues/1388\r\n"},"comment":{"url":"https://api.github.com/repos/KhronosGroup/SPIRV-Cross/issues/comments/371822739","html_url":"https://github.com/KhronosGroup/SPIRV-Cross/issues/494#issuecomment-371822739","issue_url":"https://api.github.com/repos/KhronosGroup/SPIRV-Cross/issues/494","id":371822739,"user":{"login":"turol","id":805057,"avatar_url":"https://avatars0.githubusercontent.com/u/805057?v=4","gravatar_id":"","url":"https://api.github.com/users/turol","html_url":"https://github.com/turol","followers_url":"https://api.github.com/users/turol/followers","following_url":"https://api.github.com/users/turol/following{/other_user}","gists_url":"https://api.github.com/users/turol/gists{/gist_id}","starred_url":"https://api.github.com/users/turol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turol/subscriptions","organizations_url":"https://api.github.com/users/turol/orgs","repos_url":"https://api.github.com/users/turol/repos","events_url":"https://api.github.com/users/turol/events{/privacy}","received_events_url":"https://api.github.com/users/turol/received_events","type":"User","site_admin":false},"created_at":"2018-03-09T14:12:26Z","updated_at":"2018-03-09T14:12:26Z","author_association":"NONE","body":"Looks like that did it. Thanks!"}}
{"actor":{"display_login":"turol"}}