2
0

BigStructInBuffer.hlsl 383 B

1234567891011121314151617181920
  1. // RUN: %dxc -E main -T ps_6_0 %s | FileCheck %s
  2. // CHECK: elements of typed buffers and textures must fit in four 32-bit quantities
  3. struct Foo {
  4. float2 a;
  5. float b;
  6. float c;
  7. float d[2];
  8. };
  9. Buffer<Foo> inputs : register(t1);
  10. RWBuffer< int > g_Intensities : register(u1);
  11. [ numthreads( 64, 2, 2 ) ]
  12. void main( uint GI : SV_GroupIndex)
  13. {
  14. g_Intensities = inputs[GI].d[0];
  15. }