Struct core_compute::compute_config
source · pub struct compute_config {
pub _wgpu_instance: Instance,
pub _wgpu_adapter: Adapter,
pub _wgpu_queue: Queue,
pub _wgpu_device: Device,
pub _entry_point: String,
}Expand description
when you use compute! macro to start your computing , the default compute_config will be generated . but for customizing it you can create your own compute_config and pass it directly to compute_ext! macro as its first arg . _entry_point is set to main by default change that to use another function for entry point of your kernel program
Fields§
§_wgpu_instance: Instanceyour custom wgpu instance
_wgpu_adapter: Adapteryour custom wgpu adapter
_wgpu_queue: Queueyour custom wgpu queue
_wgpu_device: Deviceyour custom wgpu device
_entry_point: Stringby default it will be set to main function in your wgsl kernel code
Trait Implementations§
source§impl Debug for compute_config
impl Debug for compute_config
Auto Trait Implementations§
impl Freeze for compute_config
impl !RefUnwindSafe for compute_config
impl Send for compute_config
impl Sync for compute_config
impl Unpin for compute_config
impl !UnwindSafe for compute_config
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