You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
469 B
25 lines
469 B
|
|
StructuredBuffer<uint4> sbuf : register(t10);
|
|
|
|
uint4 get(in StructuredBuffer<uint4> sb, uint bufferOffset)
|
|
{
|
|
return sb[bufferOffset];
|
|
}
|
|
|
|
void set(in RWStructuredBuffer<uint4> sb, uint bufferOffset, uint4 data)
|
|
{
|
|
sb[bufferOffset] = data;
|
|
}
|
|
|
|
RWStructuredBuffer<uint4> sbuf2;
|
|
|
|
// Not shared, because of type difference.
|
|
StructuredBuffer<uint3> sbuf3 : register(t12);
|
|
|
|
float4 main(uint pos : FOO) : SV_Target0
|
|
{
|
|
set(sbuf2, 2, get(sbuf, 3));
|
|
|
|
return 0;
|
|
}
|