Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
INF-0004 Specify diagnostics for resource binding, specifically on re…
…source types and binding prefixes. (#230) * first draft * solidify binding prefixes for all resource kinds * actually apply the changes * add more motivation, make sure non-intangible is used * apply design meeting details * try and clean up table * try fix table 1 * try fix table 2 * try fix second table * incorporate design feedback into doc, change proposal number * escape paren * surround paren statement with quotes * remove unnecesasry quotes * remove extraneous quotes * add missing node names * try and add some new lines * use > and < instead of <> * make sure diagnostics are consistent throughout the whole doc * remove quote * add c or i deprecated case * add closing brace * re-label nodes * address feedback from Damyan * fix tables * don't use non-intangible, simplify UDT examples * remove non-intangible phrasing, try and simplify diagram * remove sampler srv register type sharing * apply all feedback except for not using intangible * fix parse error * modifications in handling default_globals * add disable clause * Update proposals/infra/INF-0004-register-types-and-diagnostics.md Co-authored-by: Tex Riddell <[email protected]> * Update proposals/infra/INF-0004-register-types-and-diagnostics.md Co-authored-by: Tex Riddell <[email protected]> * Update proposals/infra/INF-0004-register-types-and-diagnostics.md Co-authored-by: Tex Riddell <[email protected]> * Update proposals/infra/INF-0004-register-types-and-diagnostics.md Co-authored-by: Tex Riddell <[email protected]> * remove flowcharts, add 2 new default error warnings into description, reformat a table * add case where udt doesn't have basic type * remove flowchart paragraph * remove <br>s, rename diagnostic * do some rewording * make a diagnostic table, adjust diagnostic text slightly * apply a Josh iteration, integrate more of Tex's comments * fix tables, adjust diagnostic names and give examples in the table, fix some spelling * apply damyan notes but don't change text yet * add some pseudocode, add err_hlsl_register_annotation_on_member * redefine default_globals, modify pseudo code by changing control flow a bit and adding conflicting_register_annots * fix some wording here and there * make missing udt resource warnings not default to errors * move err_hlsl_conflicting_register_annotations description up higher * add template expansion note, and overlapping registers is out of scope * add a behavioral differences paragraph, and clarify the plans for register allocation validation. * add Farzon, and use clang instead of clang-dxc * add update to membder annotation error behavior * improve wording, adjust diagnostic msg to use lower case * update spec with emerging implementation details * Update proposals/infra/INF-0004-register-types-and-diagnostics.md Co-authored-by: Damyan Pepper <[email protected]> * provide more helpful errors when invalid register types are given * adjust example for err_hlsl_unsupported_register_type_and_resource_type, and basic type with invalid reg type * shorten motivation, expand out UDT initial within diagnostic names * Update proposals/infra/INF-0004-register-types-and-diagnostics.md Co-authored-by: Justin Bogner <[email protected]> * rename some diagnostic messages and names * remove detailed design, generalize intro / motivation, add general and less detailed proposed solution * expound on the scope of diagnostics that may be emitted * add register table, and context table, and remove some redundant info --------- Co-authored-by: Tex Riddell <[email protected]> Co-authored-by: Damyan Pepper <[email protected]> Co-authored-by: Justin Bogner <[email protected]>
- Loading branch information