This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use ocl::ProQue; | |
| pub fn main() -> ocl::Result<()> { | |
| let kernel_src = r#" | |
| float uniform (__global unsigned int* seed) | |
| { | |
| *seed = ((*seed) * 16807 ) % 2147483647; | |
| return (float)(*seed) * 4.6566129e-10; | |
| } |
OlderNewer