Open chaoticbob opened 2 weeks ago
NOTE: This applies to other types besides float as well.
On my first attempt, HLSL seems fine but SPIR-V validation errors it out.
error: line 32: Illegal number of components (1) for TypeVector
%v1float = OpTypeVector %float 1
I will see how to avoid it.
HLSL has 1-dimensional matrix types that DXC accepts. Metal does not have them.
I think for on ramping it might be just to have them in case someone uses them.
I don't know if they have specific load/store ordering dependencies. But the DXC has SPIR-V opcodes: https://github.com/microsoft/DirectXShaderCompiler/blob/main/tools/clang/test/CodeGenSPIRV/binary-op.arith-assign.matrix.hlsl