summaryrefslogtreecommitdiff
path: root/tests/ir/string-literal-hash-reflection.slang
blob: 85d6ac3e4dc3f6b8c69cfe59e3d51474edcd27a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//TEST:REFLECTION:-stage compute -entry computeMain -target hlsl

import string_literal_module;

//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out
RWStructuredBuffer<int> outputBuffer;

[numthreads(4, 1, 1)]
void computeMain(
    uint tid   : SV_DispatchThreadIndex)
{
    int value = doSomethingElse() + getStringHash("Hello \t\n\0x083 World");   
    outputBuffer[tid] = value;
}