{"action":"created","issue":{"url":"https://api.github.com/repos/KhronosGroup/glslang/issues/463","repository_url":"https://api.github.com/repos/KhronosGroup/glslang","labels_url":"https://api.github.com/repos/KhronosGroup/glslang/issues/463/labels{/name}","comments_url":"https://api.github.com/repos/KhronosGroup/glslang/issues/463/comments","events_url":"https://api.github.com/repos/KhronosGroup/glslang/issues/463/events","html_url":"https://github.com/KhronosGroup/glslang/issues/463","id":171068941,"number":463,"title":"Mapping register/packoffset to what elements in TQualifier do?","user":{"login":"dankbaker","id":3113043,"avatar_url":"https://avatars.githubusercontent.com/u/3113043?v=3","gravatar_id":"","url":"https://api.github.com/users/dankbaker","html_url":"https://github.com/dankbaker","followers_url":"https://api.github.com/users/dankbaker/followers","following_url":"https://api.github.com/users/dankbaker/following{/other_user}","gists_url":"https://api.github.com/users/dankbaker/gists{/gist_id}","starred_url":"https://api.github.com/users/dankbaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dankbaker/subscriptions","organizations_url":"https://api.github.com/users/dankbaker/orgs","repos_url":"https://api.github.com/users/dankbaker/repos","events_url":"https://api.github.com/users/dankbaker/events{/privacy}","received_events_url":"https://api.github.com/users/dankbaker/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"},{"url":"https://api.github.com/repos/KhronosGroup/glslang/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-08-14T17:24:48Z","updated_at":"2016-08-16T17:44:11Z","closed_at":null,"body":"I'm trying to get the explicit bindings in HLSL to work correctly, but I don't understand all the fields in TQualifer. Layout and Set make sense, What happens when conflicting fields are declared? But specifically, these are my guesses, are they right?\r\n\r\n1. layoutAlign - is this the alignment in bytes of the current field? Does this need to be filled out?\r\n\r\n2. layoutlocation - is this a virtual register number assuming there are 4 component registers in the case of globals?\r\n\r\n3. layoutcomponent - the component used in conjunction with layoutlocation? if I have a 2d value starting at y would that be valid?\r\n\r\n4. layoutIndex -How is different then layoutlocation? Or is this used for objects where layoutlocation is used for numeric uniforms?\r\n\r\n5. layoutOffset - is this a master override for all of the others, an offset in bytes to the desired type? Obv only valid for uniform numerics, not objects.\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/KhronosGroup/glslang/issues/comments/240180343","html_url":"https://github.com/KhronosGroup/glslang/issues/463#issuecomment-240180343","issue_url":"https://api.github.com/repos/KhronosGroup/glslang/issues/463","id":240180343,"user":{"login":"johnkslang","id":5607714,"avatar_url":"https://avatars.githubusercontent.com/u/5607714?v=3","gravatar_id":"","url":"https://api.github.com/users/johnkslang","html_url":"https://github.com/johnkslang","followers_url":"https://api.github.com/users/johnkslang/followers","following_url":"https://api.github.com/users/johnkslang/following{/other_user}","gists_url":"https://api.github.com/users/johnkslang/gists{/gist_id}","starred_url":"https://api.github.com/users/johnkslang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnkslang/subscriptions","organizations_url":"https://api.github.com/users/johnkslang/orgs","repos_url":"https://api.github.com/users/johnkslang/repos","events_url":"https://api.github.com/users/johnkslang/events{/privacy}","received_events_url":"https://api.github.com/users/johnkslang/received_events","type":"User","site_admin":false},"created_at":"2016-08-16T17:44:11Z","updated_at":"2016-08-16T17:44:11Z","body":"> So, we just need some new syntax for explicit layouts (GLSL style is fine) and Oxide's good to go (we'll just #define register to do nothing).\r\n\r\nWe could set this up that if GLSL style `layout(set=,binding=,offset=,location=,component=)` sets something in a pre-decl, then an HLSL post-decl does not override it.  Key is to have a rule."}}
{"actor":{"display_login":"johnkslang"}}