WIP: HLSL: add Append/ConsumeBuffer support
This commit is contained in:
parent
8e26feb8f2
commit
12bc9aa9ce
6 changed files with 361 additions and 63 deletions
11
Test/hlsl.structbuffer.append.frag
Normal file
11
Test/hlsl.structbuffer.append.frag
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
AppendStructuredBuffer<float4> sbuf_a;
|
||||
ConsumeStructuredBuffer<float4> sbuf_c;
|
||||
|
||||
AppendStructuredBuffer<float4> sbuf_unused;
|
||||
|
||||
float4 main(uint pos : FOO) : SV_Target0
|
||||
{
|
||||
sbuf_a.Append(float4(1,2,3,4));
|
||||
|
||||
return sbuf_c.Consume();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue