12 lines
165 B
HLSL
12 lines
165 B
HLSL
|
ByteAddressBuffer data : register(t1, space0);
|
||
|
|
||
|
int foo() {
|
||
|
return asint(data.Load((4u * uint(0))));
|
||
|
}
|
||
|
|
||
|
[numthreads(16, 16, 1)]
|
||
|
void main() {
|
||
|
foo();
|
||
|
return;
|
||
|
}
|