{"action":"opened","issue":{"url":"https://api.github.com/repos/g-truc/gli/issues/104","repository_url":"https://api.github.com/repos/g-truc/gli","labels_url":"https://api.github.com/repos/g-truc/gli/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/g-truc/gli/issues/104/comments","events_url":"https://api.github.com/repos/g-truc/gli/issues/104/events","html_url":"https://github.com/g-truc/gli/issues/104","id":175173095,"number":104,"title":"GLI Formats and Vulkan","user":{"login":"Unarmed1000","id":8495495,"avatar_url":"https://avatars.githubusercontent.com/u/8495495?v=3","gravatar_id":"","url":"https://api.github.com/users/Unarmed1000","html_url":"https://github.com/Unarmed1000","followers_url":"https://api.github.com/users/Unarmed1000/followers","following_url":"https://api.github.com/users/Unarmed1000/following{/other_user}","gists_url":"https://api.github.com/users/Unarmed1000/gists{/gist_id}","starred_url":"https://api.github.com/users/Unarmed1000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Unarmed1000/subscriptions","organizations_url":"https://api.github.com/users/Unarmed1000/orgs","repos_url":"https://api.github.com/users/Unarmed1000/repos","events_url":"https://api.github.com/users/Unarmed1000/events{/privacy}","received_events_url":"https://api.github.com/users/Unarmed1000/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-06T06:54:38Z","updated_at":"2016-09-06T06:54:38Z","closed_at":null,"body":"Are the GLI formats supposed to be compatible with the vulkan formats?\r\nTake\r\n  gli::FORMAT_RGB9E5_UFLOAT_PACK32\r\n\r\nA obvious candidate in vulkan would be\r\n  VK_FORMAT_E5B9G9R9_UFLOAT_PACK32\r\n\r\nBut the byte ordering would not be the same since Vulkan is E5B9G9R9 vs RGB9E5 which I suppose is R9G9B9E5.\r\n\r\nBut most's formats seem to be compatible like\r\n FORMAT_RG4_UNORM_PACK8 == VK_FORMAT_R4G4_UNORM_PACK8\r\n\r\nHowever these do not appear to match anything in Vulkan and the Vulkan formats are not present in gli.\r\nJust listing the unorm variants here:\r\n- FORMAT_RGBA8_UNORM_PACK32  != VK_FORMAT_RGBA8_UNORM_PACK32\r\n- FORMAT_RGB10A2_UNORM_PACK32 != VK_FORMAT_A2R10G10B10_UNORM_PACK32\r\n- FORMAT_BGR10A2_UNORM_PACK32 != VK_FORMAT A2B10G10R10_UNORM_PACK32\r\n- FORMAT_RG11B10_UFLOAT_PACK32 != VK_FORMAT_B10G11R11_UFLOAT_PACK32\r\n- FORMAT_RGB9E5_UFLOAT_PACK32 != VK_FORMAT_E5B9G9R9_UFLOAT_PACK32\r\n\r\nIn general it would be nice if these were more explicit and commented, matching the compressed formats is non-trivial too.\r\n"}}
{"actor":{"display_login":"Unarmed1000"}}