//TEST(compute):COMPARE_COMPUTE: -shaderobj //TEST(compute):COMPARE_COMPUTE: -vk -shaderobj //TEST(compute):COMPARE_COMPUTE:-wgpu // Note: disabled on CPU target until we can fill // in a more correct/complete `String` and `getStringHash` // for that target. // //TEST_DISABLED(compute):COMPARE_COMPUTE: -cpu import string_literal_module; //TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name outputBuffer RWStructuredBuffer outputBuffer; [numthreads(4, 1, 1)] void computeMain( uint3 tid : SV_DispatchThreadID) { int value = doSomethingElse() + getStringHash("Hello \t\n\0x083 World"); outputBuffer[tid.x] = value; }