EmptyStructInBuffer.hlsl 235 B

12345678910111213
  1. // RUN: %dxc -E main -T ps_6_0 %s | FileCheck %s
  2. // CHECK: object's templated type must have at least one element
  3. struct Empty {};
  4. Buffer<Empty> eb;
  5. [ numthreads( 64, 2, 2 ) ]
  6. void main( uint GI : SV_GroupIndex)
  7. {
  8. eb[GI];
  9. }