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
{{ message }}
Repository navigation
[SPIR-V] SIGSEGV when copying template types from constant buffers into local variables #7288
Description
Compiler crashes when attempting to copy a templated type from ConstantBuffer<>, into a local variable of the same type. This only happens in SPIR-V mode. A similar code works when copying field by field.
We have not implemented the "flat conversion" from the constant buffer to the type in the constant buffer. Here is the part of the AST that we are failing on:
Activity
s-perron commentedon May 14, 2025
We have not implemented the "flat conversion" from the constant buffer to the type in the constant buffer. Here is the part of the AST that we are failing on:
We fail when we hit this assert:
DirectXShaderCompiler/tools/clang/lib/SPIRV/SpirvEmitter.cpp
Line 15661 in f5214f1