8 lines
145 B
WebGPU Shading Language
8 lines
145 B
WebGPU Shading Language
|
[[stage(compute)]]
|
||
|
fn main() {
|
||
|
var i : i32 = 123;
|
||
|
let p : ptr<function, i32> = &i;
|
||
|
*p = 123; // constant
|
||
|
*p = 100 + 20 + 3; // dynamic
|
||
|
}
|