{"action":"opened","issue":{"url":"https://api.github.com/repos/mono/MonoGame/issues/4760","repository_url":"https://api.github.com/repos/mono/MonoGame","labels_url":"https://api.github.com/repos/mono/MonoGame/issues/4760/labels{/name}","comments_url":"https://api.github.com/repos/mono/MonoGame/issues/4760/comments","events_url":"https://api.github.com/repos/mono/MonoGame/issues/4760/events","html_url":"https://github.com/mono/MonoGame/issues/4760","id":147668458,"number":4760,"title":"PixelShader Custom Structure is not working.","user":{"login":"Praptobala","id":18415737,"avatar_url":"https://avatars.githubusercontent.com/u/18415737?v=3","gravatar_id":"","url":"https://api.github.com/users/Praptobala","html_url":"https://github.com/Praptobala","followers_url":"https://api.github.com/users/Praptobala/followers","following_url":"https://api.github.com/users/Praptobala/following{/other_user}","gists_url":"https://api.github.com/users/Praptobala/gists{/gist_id}","starred_url":"https://api.github.com/users/Praptobala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Praptobala/subscriptions","organizations_url":"https://api.github.com/users/Praptobala/orgs","repos_url":"https://api.github.com/users/Praptobala/repos","events_url":"https://api.github.com/users/Praptobala/events{/privacy}","received_events_url":"https://api.github.com/users/Praptobala/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-12T08:08:31Z","updated_at":"2016-04-12T08:08:31Z","closed_at":null,"body":"struct PixelShaderOutput\r\n{\r\n\tfloat4 color : COLOR0;\r\n\tfloat depth : DEPTH0;\r\n};\r\n\r\nPixelShaderOutput PixelShaderFunction(VertexShaderOutput input)\r\n{\r\n\tPixelShaderOutput pixOut;\r\n\r\n\tpixOut.depth = //Assign Depth value\r\n\tpixOut.color = //Assign Color value\r\n\r\n\treturn pixOut;\r\n}\r\n\r\nI need depth data per pixel for depth Rendering , currently I am porting my XNA project to Monogame.\r\nEverything was working fine with XNA4.0.\r\n\r\nBut Monogame gives compilation error for the above Pixel Shader function, but the same function working fine if I return only 'float4' from it. Please help in this regard.\r\n"}}