• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2// float4 Fn1(ConsumeStructuredBuffer<float4> arg_c)
3// {
4//     return arg_c.Consume();
5// }
6
7float4 Fn2(AppendStructuredBuffer<float4> arg_a, ConsumeStructuredBuffer<float4> arg_c)
8{
9    arg_a.Append(float4(1,2,3,4));
10    return arg_c.Consume();
11}
12
13AppendStructuredBuffer<float4>  sbuf_a;
14ConsumeStructuredBuffer<float4> sbuf_c;
15
16AppendStructuredBuffer<float4>  sbuf_unused;
17
18float4 main(uint pos : FOO) : SV_Target0
19{
20    // Fn1(sbuf_c);
21
22    return Fn2(sbuf_a, sbuf_c);
23}
24