pub struct ComputePipelineDescriptor {
pub module: JsValue,
pub entry_point: String,
}Expand description
A compute pipeline: one shader module and one entry point.
The compute counterpart of RenderPipelineDescriptor, and much
smaller because a compute pipeline has no vertex buffers, no
attachments, and no rasterization state.
Fields§
§module: JsValueThe GpuShaderModule compiled from WGSL source.
entry_point: StringThe @compute entry point’s name inside that module.
Implementations§
Source§impl ComputePipelineDescriptor
impl ComputePipelineDescriptor
pub fn get_module(&self) -> JsValue
pub fn get_entry_point(&self) -> String
Trait Implementations§
Source§impl Clone for ComputePipelineDescriptor
impl Clone for ComputePipelineDescriptor
Auto Trait Implementations§
impl Freeze for ComputePipelineDescriptor
impl RefUnwindSafe for ComputePipelineDescriptor
impl Send for ComputePipelineDescriptor
impl Sync for ComputePipelineDescriptor
impl Unpin for ComputePipelineDescriptor
impl UnsafeUnpin for ComputePipelineDescriptor
impl UnwindSafe for ComputePipelineDescriptor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more