[SPIRV] Do not create counter for RWStructuredBuffer by default
Defer creating counter for RWSBuffer until Inc/DecrementCounter method is invoked.
Fixes #4569
:white_check_mark: Build DirectXShaderCompiler 1.0.1905 completed (commit https://github.com/microsoft/DirectXShaderCompiler/commit/403dcebf62 by @greg-lunarg)
@Keenuts Can you please review?
Thanks for fixing that! Shouldn't we also try to fix spirv-opt DCE issue while we have a repro? Maybe the bug causing counters not to be cleaned is also impacting other things?
OK. I will create a SPIRV-Tools issue at your request.
:white_check_mark: Build DirectXShaderCompiler 1.0.1915 completed (commit https://github.com/microsoft/DirectXShaderCompiler/commit/c2e776f604 by @greg-lunarg)
@Keenuts I believe I have addressed all your current issues. Please review.
Thanks for approval. I do not have merge permission on this repo, so I you could please merge, that would be appreciated.