pub fn clear_texture(&self, res: &PipeResource, pattern: &[u32], bx: &pipe_box) {
unsafe {
- self.pipe.as_ref().clear_texture.unwrap()(
+ let clear_texture = self
+ .pipe
+ .as_ref()
+ .clear_texture
+ .unwrap_or(u_default_clear_texture);
+ clear_texture(
self.pipe.as_ptr(),
res.pipe(),
0,
& has_required_feature!(context, buffer_subdata)
& has_required_feature!(context, buffer_unmap)
& has_required_feature!(context, clear_buffer)
- & has_required_feature!(context, clear_texture)
& has_required_feature!(context, create_compute_state)
& has_required_feature!(context, delete_compute_state)
& has_required_feature!(context, delete_sampler_state)