//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK): // Test: Array of nested struct containing ParameterBlock - should error struct Inner { ParameterBlock pb; } struct NestedStruct { Inner nested; float value; } RWStructuredBuffer outputBuffer; [numthreads(4, 1, 1)] void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID) { // Force usage of the array to prevent optimization outputBuffer[dispatchThreadID.x] = arrayOfNestedStruct[dispatchThreadID.x % 2].nested.pb; } //CHECK: ([[# @LINE+1]]): error 30027 uniform NestedStruct arrayOfNestedStruct[2];