You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add OpEntryPoint to the list of instructions processed by the
DescriptorScalarReplacement pass. This is necessary for SPIR-V 1.4 and
above where global variables must be included in the interface.
Fixesmicrosoft/DirectXShaderCompiler#5962
Add OpEntryPoint to the list of instructions processed by the
DescriptorScalarReplacement pass. This is necessary for SPIR-V 1.4 and
above where global variables must be included in the interface.
Fixesmicrosoft/DirectXShaderCompiler#5962
sudonatalie
added a commit
to sudonatalie/DirectXShaderCompiler
that referenced
this issue
Feb 1, 2024
Description
I've made a "functor" for accessing my scratch groupshared memory in templated algorithms:
I can "fix" this in two ways:
artihmeticAccessor
asstatic
dummy
member toScratchProxy
structI think this has something to do with the fact that all non-static globals map to a hidden UBO/ConstantBuffer, and this struct's sizeof() is 0
Would be nice for this case to either:
$Globals
Steps to Reproduce
Compile this repro: https://godbolt.org/z/987efPv1b
with:
-HV 202x -T cs_6_7 -fspv-target-env=vulkan1.3 -enable-16bit-types -fvk-use-scalar-layout -Wno-c++11-extensions -O0 -spirv
The
-fvk-use-scalar-layout
doesn't matter, fails either way.Obviously it passes without
-spirv
and emits DXIL.Actual Behavior
Fails compilation with
Environment
The text was updated successfully, but these errors were encountered: