slangc in.hlsl -o out.spv -emit-spirv-directly -target spirv -enable-effect-annotations -entry main -stage fragment it will produce invalid spirv because Vulkan requires Uniform can't have a runtime array if inside a Block
if ran with dxc it will give an error
in.hlsl:8:5: error: definition of variable with array type needs an explicit size or an initializer
T2 _z0[];
Taking the hlsl
slangc in.hlsl -o out.spv -emit-spirv-directly -target spirv -enable-effect-annotations -entry main -stage fragment
it will produce invalid spirv because Vulkan requiresUniform
can't have a runtime array if inside aBlock
if ran with
dxc
it will give an error