Struct wgpu_core::pipeline::ShaderModule
source · pub struct ShaderModule {
pub(crate) raw: ManuallyDrop<Box<dyn DynShaderModule>>,
pub(crate) device: Arc<Device>,
pub(crate) interface: Option<Interface>,
pub(crate) label: String,
}
Fields§
§raw: ManuallyDrop<Box<dyn DynShaderModule>>
§device: Arc<Device>
§interface: Option<Interface>
§label: String
The label
from the descriptor used to create the resource.
Implementations§
source§impl ShaderModule
impl ShaderModule
pub(crate) fn raw(&self) -> &dyn DynShaderModule
pub(crate) fn finalize_entry_point_name( &self, stage_bit: ShaderStages, entry_point: Option<&str>, ) -> Result<String, StageError>
Trait Implementations§
source§impl Debug for ShaderModule
impl Debug for ShaderModule
source§impl Drop for ShaderModule
impl Drop for ShaderModule
source§impl Labeled for ShaderModule
impl Labeled for ShaderModule
source§fn label(&self) -> &str
fn label(&self) -> &str
Returns a string identifying this resource for logging and errors. Read more
fn error_ident(&self) -> ResourceErrorIdent
source§impl ParentDevice for ShaderModule
impl ParentDevice for ShaderModule
source§impl ResourceType for ShaderModule
impl ResourceType for ShaderModule
source§impl StorageItem for ShaderModule
impl StorageItem for ShaderModule
type Marker = ShaderModule
Auto Trait Implementations§
impl Freeze for ShaderModule
impl !RefUnwindSafe for ShaderModule
impl Send for ShaderModule
impl Sync for ShaderModule
impl Unpin for ShaderModule
impl !UnwindSafe for ShaderModule
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