Repository navigation
[spirv] Support globals structs of Textures/Samplers - #2994
Ehsan (ehsannas) merged 7 commits into
Conversation
Jaebaek Seo (jaebaek)
left a comment
There was a problem hiding this comment.
Thank you for fixing the issue. It looks mostly good and I have a few questions for minor issues.
There was a problem hiding this comment.
Can we remove this while statement based on the comment in the line 1225 isResourceType does remove arrayness for the field if needed.?
There was a problem hiding this comment.
ah, yes. Done.
There was a problem hiding this comment.
I do not clearly remember how we handled spirv1.3 or above but I want to doublecheck it will be ok to set it as only Uniform storage class, not StorageBuffer.
There was a problem hiding this comment.
this function (getStorageClassForExternVar) is basically the exact logic taken out of createExternVar here:
DirectXShaderCompiler/tools/clang/lib/SPIRV/DeclResultIdMapper.cpp
Lines 671 to 701 in dd27189
There was a problem hiding this comment.
This PR contains multiple commits. Reading each commit separately might make reviewing it easier. Thanks
fd4e090 to
d82057c
Compare
d82057c to
54c562f
Compare
|
Rebased against latest |
Jaebaek Seo (jaebaek)
left a comment
There was a problem hiding this comment.
Checked each commit. LGTM. Thanks!
Fixes #2695