Revision: 06.08.2023, https://compute.toys/view/407
fn sdSphere(p: vec3f, r: f32) -> f32 {
return length(p) - r;
}| /* | |
| * premptive_scheduler.c | |
| * | |
| * Created on: Apr 26, 2020 | |
| * Author: Sudeep Chandrasekaran | |
| */ | |
| #include <stdint.h> | |
| #include <stdbool.h> | |
| #include "premptive_scheduler.h" |
Revision: 06.08.2023, https://compute.toys/view/407
fn sdSphere(p: vec3f, r: f32) -> f32 {
return length(p) - r;
}| const INDEX: u8 = 0x0; | |
| const RUN_8: u8 = 0x40; | |
| const RUN_16: u8 = 0x60; | |
| const DIFF_8: u8 = 0x80; | |
| const DIFF_16: u8 = 0xc0; | |
| const DIFF_24: u8 = 0xe0; | |
| const COLOR: u8 = 0xf0; | |
| const MASK_2: u8 = 0xc0; | |
| const MASK_3: u8 = 0xe0; |