pub(crate) type GPUObjectDescriptorBase = GPUObjectDescriptorBase;
Aliased Type§
struct GPUObjectDescriptorBase {
pub(crate) label: USVString,
}
Fields§
§label: USVString
Implementations
Source§impl GPUObjectDescriptorBase
impl GPUObjectDescriptorBase
pub(crate) fn empty() -> Self
pub(crate) fn new( cx: SafeJSContext, val: HandleValue<'_>, ) -> Result<ConversionResult<GPUObjectDescriptorBase>, ()>
Source§impl GPUObjectDescriptorBase
impl GPUObjectDescriptorBase
pub(crate) unsafe fn to_jsobject( &self, cx: *mut JSContext, obj: MutableHandleObject<'_>, )
Trait Implementations
Source§impl Default for GPUObjectDescriptorBase
impl Default for GPUObjectDescriptorBase
Source§impl FromJSValConvertible for GPUObjectDescriptorBase
impl FromJSValConvertible for GPUObjectDescriptorBase
Source§unsafe fn from_jsval(
cx: *mut JSContext,
value: HandleValue<'_>,
_option: (),
) -> Result<ConversionResult<GPUObjectDescriptorBase>, ()>
unsafe fn from_jsval( cx: *mut JSContext, value: HandleValue<'_>, _option: (), ) -> Result<ConversionResult<GPUObjectDescriptorBase>, ()>
Convert
val
to type Self
.
Optional configuration of type T
can be passed as the option
argument.
If it returns Err(())
, a JSAPI exception is pending.
If it returns Ok(Failure(reason))
, there is no pending JSAPI exception.Source§impl MallocSizeOf for GPUObjectDescriptorBase
impl MallocSizeOf for GPUObjectDescriptorBase
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.