From dd04716b852471ba75e4bf44ced0e2d481e99ab2 Mon Sep 17 00:00:00 2001 From: Kunal Mohan Date: Sat, 23 May 2020 22:04:09 +0530 Subject: Add GPUSampler to WebGPU implementation Add dom_struct and webidl for GPUSampler, implement GPUDevice.createSampler() method. --- components/script/script_thread.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'components/script/script_thread.rs') diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index c3e2694149f..294027582fa 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -2014,6 +2014,7 @@ impl ScriptThread { self.gpu_id_hub.lock().kill_bind_group_layout_id(id) }, WebGPUMsg::FreeCommandBuffer(id) => self.gpu_id_hub.lock().kill_command_buffer_id(id), + WebGPUMsg::FreeSampler(id) => self.gpu_id_hub.lock().kill_sampler_id(id), WebGPUMsg::FreeShaderModule(id) => self.gpu_id_hub.lock().kill_shader_module_id(id), _ => {}, } -- cgit v1.2.3