Issue |
139954
|
Summary |
[DirectX] StructuredBuffers with 16 bit types are failing validation
|
Labels |
new issue
|
Assignees |
|
Reporter |
spall
|
Command: clang-dxc -enable-16bit-types -T cs_6_5 -Fo x.o DebugTest.hlsl
```
File Edit Options Buffers Tools Help
RWStructuredBuffer<half> Out : register(u1);
[numthreads(1,1,4)]
void main() {
Out[0] = (half)3.14159;
}
```
Fails validation with the error
```
error: structured buffer element size must be a multiple of 4 bytes (actual size 2 bytes). 'U0: StructuredBuffer (u1)'
Validation failed.
```
Working in dxc: https://godbolt.org/z/enrafEjvq
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs