// RUN: %dxc -E main -T ps_6_0 %s | FileCheck %s class C { float4 f; }; struct S { float4 f; }; // CHECK: error: 'int' cannot be used as a type parameter where a struct is required ConstantBuffer B1; // CHECK: error: 'float2' cannot be used as a type parameter where a struct is required TextureBuffer B2; // CHECK: error: 'float3x4' cannot be used as a type parameter where a struct is required ConstantBuffer B3; TextureBuffer B4; // CHECK-NOT: const S ConstantBuffer B5; TextureBuffer B6[6]; float4 main(int a : A) : SV_Target { return B4.f; }