The shade blow generates the following error message:
(0): error 99999: Slang compilation aborted due to an exception of class Slang::InternalError: unimplemented: Unhandled global inst in spirv-emit:
[nameHint(%1)]
let %Data : %SDatax5Fstd140_ = load(%2)
In the context of the shader, it sems like the cause is having static in the declaration of Data. If I remove static, the shader compiles. It seems like DXC is just treating SData as a const reference whereas Slang is treating it differently due to the static. Is this even valid syntax for Slang?
Only use case that jumps to mind for this is aliasing cbuffer and possibly ConstantBuffer members for readability. It doesn't seem llike it would provide any optimization benefit.
The shade blow generates the following error message:
CMD
In the context of the shader, it sems like the cause is having
static
in the declaration ofData
. If I removestatic
, the shader compiles. It seems like DXC is just treatingSData
as aconst
reference whereas Slang is treating it differently due to the static. Is this even valid syntax for Slang?Only use case that jumps to mind for this is aliasing
cbuffer
and possiblyConstantBuffer
members for readability. It doesn't seem llike it would provide any optimization benefit.Shader