fn write_ray_flags_contains_flags( writer: &mut Writer, block: &mut Block, id: Word, flag: u32, ) -> Word
helper function to check if a particular flag is set in a u32.