18 lines
300 B
HLSL
18 lines
300 B
HLSL
struct S {
|
|
float4 a;
|
|
int b;
|
|
};
|
|
|
|
ByteAddressBuffer sb : register(t0, space0);
|
|
|
|
S sb_load(uint offset) {
|
|
const S tint_symbol = {asfloat(sb.Load4((offset + 0u))), asint(sb.Load((offset + 16u)))};
|
|
return tint_symbol;
|
|
}
|
|
|
|
[numthreads(1, 1, 1)]
|
|
void main() {
|
|
const S x = sb_load(32u);
|
|
return;
|
|
}
|