(&self, cpu_buffer: &mut Vec<u8>)
| 119 | } |
| 120 | |
| 121 | pub fn copy_texture_to_vec(&self, cpu_buffer: &mut Vec<u8>) { |
| 122 | cpu_buffer.clear(); |
| 123 | cpu_buffer.reserve((self.config.width * self.config.height * 4) as usize); |
| 124 | self.copy_texture_to_buffer(&mut *cpu_buffer); |
| 125 | } |
| 126 | |
| 127 | pub fn copy_texture_to_buffer(&self, cpu_buffer: &mut [u8]) { |
| 128 | let mut encoder = self |
nothing calls this directly
no test coverage detected