Repository navigation
Add GLSL_EXT_type_deduction - #344
LBV2012-26 wants to merge 2 commits into
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
|
Just out of curiosity, was this spec generated by an AI agent? Who was raising the issues in the "issues" section and who provided the answers? |
Not all of it. Let me briefly explain the process I followed in writing it to avoid any misunderstandings. For the code-reading section of glslang, I used AI to help me understand the code architecture and suggest modifications, but I wrote the actual code changes myself. Afterward, I drafted an outline myself, but since it was all in spoken language, I used GPT to refine most of the phrasing. During this process, I didn’t have the AI generate the entire piece in one go; I generally only had it revise one paragraph at a time. |
|
Thanks for answering. I would recommend leaning a bit less on the AI and a bit more on communication with people. In the end, the spec is meant for both shader authors and compiler developers to be able to read and agree on the meaning of. |
As you know, when GLSL initialize a struct, you can use |
|
FWIW, I would find this handy, e.g. to write |
Hi, I noticed you add two labels on the PR in glslang repo. I'd like to know what the main purpose of those tag are. Thanks for your response. |
This commit implement a type deduction feature in GLSL.
I select "auto" because lots of graphics programmer using C++ language, and GLSL is based on C not Rust/Swift/C#.
I’m really not very good at writing long articles, so I used AI assistance to draft this one.
This is my first attempt; I’d really appreciate it if you could point out any mistakes or specific details that could be discussed.
glslang implementation at KhronosGroup/glslang#4473