{"action":"closed","issue":{"url":"https://api.github.com/repos/KhronosGroup/glslang/issues/412","repository_url":"https://api.github.com/repos/KhronosGroup/glslang","labels_url":"https://api.github.com/repos/KhronosGroup/glslang/issues/412/labels{/name}","comments_url":"https://api.github.com/repos/KhronosGroup/glslang/issues/412/comments","events_url":"https://api.github.com/repos/KhronosGroup/glslang/issues/412/events","html_url":"https://github.com/KhronosGroup/glslang/issues/412","id":167531255,"number":412,"title":"HLSL: structure cast with zero","user":{"login":"xen2","id":527565,"avatar_url":"https://avatars.githubusercontent.com/u/527565?v=3","gravatar_id":"","url":"https://api.github.com/users/xen2","html_url":"https://github.com/xen2","followers_url":"https://api.github.com/users/xen2/followers","following_url":"https://api.github.com/users/xen2/following{/other_user}","gists_url":"https://api.github.com/users/xen2/gists{/gist_id}","starred_url":"https://api.github.com/users/xen2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xen2/subscriptions","organizations_url":"https://api.github.com/users/xen2/orgs","repos_url":"https://api.github.com/users/xen2/repos","events_url":"https://api.github.com/users/xen2/events{/privacy}","received_events_url":"https://api.github.com/users/xen2/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/KhronosGroup/glslang/labels/HLSL","name":"HLSL","color":"0e8a16"},{"url":"https://api.github.com/repos/KhronosGroup/glslang/labels/Missing%20Functionality","name":"Missing Functionality","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-26T06:34:29Z","updated_at":"2016-09-03T04:31:47Z","closed_at":"2016-09-03T04:31:47Z","body":"I have been following development of HLSL and are happy to see that since cbuffer have been added, our HLSL can mostly be converter to SPIR-V as is, good work!\r\n\r\nThere is still one small thing that fails (that we could easily workaround on our side, but still letting you know because it is valid HLSL):\r\n\r\n```\r\nstruct PS_OUTPUT \r\n{\r\n    float4 ColorTarget_id1 : SV_Target0;\r\n};\r\nvoid myfunc()\r\n{\r\n    PS_OUTPUT __output__ = (PS_OUTPUT)0;\r\n}\r\n```\r\n\r\nworks with FXC compiler, but fails with glslang:\r\n\r\n```\r\nERROR: 0:572: 'constructor' : not enough data provided for construction\r\nERROR: 0:572: '=' :  cannot convert from 'const float' to 'temp structure{temp 4-component vector of float ColorTarget_id1}'\r\n```"}}
{"actor":{"display_login":"johnkslang"}}