Struct script::dom::gpushadermodule::GPUShaderModule
source · #[repr(C)]pub struct GPUShaderModule {
reflector_: Reflector,
label: DomRefCell<Option<USVString>>,
shader_module: WebGPUShaderModule,
}
Fields§
§reflector_: Reflector
§label: DomRefCell<Option<USVString>>
§shader_module: WebGPUShaderModule
Implementations§
source§impl GPUShaderModule
impl GPUShaderModule
fn __assert_parent_type(&self)
source§impl GPUShaderModule
impl GPUShaderModule
fn new_inherited(
shader_module: WebGPUShaderModule,
label: Option<USVString>
) -> Self
pub fn new(
global: &GlobalScope,
shader_module: WebGPUShaderModule,
label: Option<USVString>
) -> Root<Dom<Self>>
source§impl GPUShaderModule
impl GPUShaderModule
pub fn id(&self) -> WebGPUShaderModule
Trait Implementations§
source§impl DomObject for GPUShaderModule
impl DomObject for GPUShaderModule
source§impl DomObjectWrap for GPUShaderModule
impl DomObjectWrap for GPUShaderModule
source§const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Box<Self>) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::GPUShaderModuleBinding::GPUShaderModuleBinding::Wrap as for<'a> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::boxed::Box<dom::gpushadermodule::GPUShaderModule>) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::gpushadermodule::GPUShaderModule>>}
const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Box<Self>) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::GPUShaderModuleBinding::GPUShaderModuleBinding::Wrap as for<'a> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::boxed::Box<dom::gpushadermodule::GPUShaderModule>) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::gpushadermodule::GPUShaderModule>>}
Function pointer to the general wrap function type
source§impl HasParent for GPUShaderModule
impl HasParent for GPUShaderModule
source§impl IDLInterface for GPUShaderModule
impl IDLInterface for GPUShaderModule
source§impl JSTraceable for GPUShaderModule
impl JSTraceable for GPUShaderModule
source§impl MallocSizeOf for GPUShaderModule
impl MallocSizeOf for GPUShaderModule
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
source§impl MutDomObject for GPUShaderModule
impl MutDomObject for GPUShaderModule
source§unsafe fn init_reflector(&self, obj: *mut JSObject)
unsafe fn init_reflector(&self, obj: *mut JSObject)
Initializes the Reflector
source§impl PartialEq<GPUShaderModule> for GPUShaderModule
impl PartialEq<GPUShaderModule> for GPUShaderModule
source§fn eq(&self, other: &GPUShaderModule) -> bool
fn eq(&self, other: &GPUShaderModule) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ToJSValConvertible for GPUShaderModule
impl ToJSValConvertible for GPUShaderModule
Auto Trait Implementations§
impl !RefUnwindSafe for GPUShaderModule
impl !Send for GPUShaderModule
impl !Sync for GPUShaderModule
impl Unpin for GPUShaderModule
impl !UnwindSafe for GPUShaderModule
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> MaybeBoxed<Box<T, Global>> for T
impl<T> MaybeBoxed<Box<T, Global>> for T
source§fn maybe_boxed(self) -> Box<T, Global>
fn maybe_boxed(self) -> Box<T, Global>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert