{"action":"created","issue":{"url":"https://api.github.com/repos/mellinoe/veldrid/issues/83","repository_url":"https://api.github.com/repos/mellinoe/veldrid","labels_url":"https://api.github.com/repos/mellinoe/veldrid/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/mellinoe/veldrid/issues/83/comments","events_url":"https://api.github.com/repos/mellinoe/veldrid/issues/83/events","html_url":"https://github.com/mellinoe/veldrid/issues/83","id":326728979,"number":83,"title":"[Android/Vulkan] Unable to use CopyTexture with cubemaps","user":{"login":"SomeAnon42","id":6377116,"avatar_url":"https://avatars2.githubusercontent.com/u/6377116?v=4","gravatar_id":"","url":"https://api.github.com/users/SomeAnon42","html_url":"https://github.com/SomeAnon42","followers_url":"https://api.github.com/users/SomeAnon42/followers","following_url":"https://api.github.com/users/SomeAnon42/following{/other_user}","gists_url":"https://api.github.com/users/SomeAnon42/gists{/gist_id}","starred_url":"https://api.github.com/users/SomeAnon42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SomeAnon42/subscriptions","organizations_url":"https://api.github.com/users/SomeAnon42/orgs","repos_url":"https://api.github.com/users/SomeAnon42/repos","events_url":"https://api.github.com/users/SomeAnon42/events{/privacy}","received_events_url":"https://api.github.com/users/SomeAnon42/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-05-26T10:46:48Z","updated_at":"2018-05-27T08:35:18Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"This code crashes when running on Android/Vulkan:\r\n```csharp\r\nvar cubemap = factory.CreateTexture(TextureDescription.Texture2D(\r\n        texSize, texSize, 1, 1, PixelFormat.R8_G8_B8_A8_UNorm, TextureUsage.Cubemap));\r\nvar sampled = factory.CreateTexture(TextureDescription.Texture2D(\r\n        texSize, texSize, 1, 1, PixelFormat.B8_G8_R8_A8_UNorm, TextureUsage.Sampled));\r\n\r\nvar cl = factory.CreateCommandList();\r\ncl.Begin();\r\ncl.CopyTexture(sampled, 0, 0, 0, 0, 0, cubemap, 0, 0, 0, 0, 0, texSize, texSize, 1, 1);\r\ncl.End();\r\n\r\ndevice.SubmitCommands(cl);\r\ndevice.WaitForIdle();\r\n```\r\n\r\nOnly tested it on a Xiaomi Redmi 4X (Android 7.1).\r\nYou can find a small repro project [here](https://github.com/SomeAnon42/veldrid-samples/tree/android-cubemaps).\r\n\r\n![image](https://user-images.githubusercontent.com/6377116/40575281-ccb7b82e-60ea-11e8-857b-2342055a9e5b.png)"},"comment":{"url":"https://api.github.com/repos/mellinoe/veldrid/issues/comments/392314989","html_url":"https://github.com/mellinoe/veldrid/issues/83#issuecomment-392314989","issue_url":"https://api.github.com/repos/mellinoe/veldrid/issues/83","id":392314989,"user":{"login":"mellinoe","id":8918977,"avatar_url":"https://avatars1.githubusercontent.com/u/8918977?v=4","gravatar_id":"","url":"https://api.github.com/users/mellinoe","html_url":"https://github.com/mellinoe","followers_url":"https://api.github.com/users/mellinoe/followers","following_url":"https://api.github.com/users/mellinoe/following{/other_user}","gists_url":"https://api.github.com/users/mellinoe/gists{/gist_id}","starred_url":"https://api.github.com/users/mellinoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mellinoe/subscriptions","organizations_url":"https://api.github.com/users/mellinoe/orgs","repos_url":"https://api.github.com/users/mellinoe/repos","events_url":"https://api.github.com/users/mellinoe/events{/privacy}","received_events_url":"https://api.github.com/users/mellinoe/received_events","type":"User","site_admin":false},"created_at":"2018-05-27T08:35:18Z","updated_at":"2018-05-27T08:35:18Z","author_association":"OWNER","body":"I did a bit of investigating. It crashes in Release mode for me, but not otherwise. It doesn't seem to matter what kind of Texture or what the format is. I tried RGBA8_UNorm, and non-cubemap, and it still failed. Since it works in Debug mode, I wonder if there's some optimization that's corrupting something? I'll give try to give this a closer look tomorrow."}}
{"actor":{"display_login":"mellinoe"}}