WGPUSType

Struct WGPUSType 

Source
#[repr(transparent)]
pub struct WGPUSType(pub c_int);

Tuple Fields§

§0: c_int

Implementations§

§

impl WGPUSType

pub const ShaderSourceSPIRV: Self = raw::WGPUSType_WGPUSType_ShaderSourceSPIRV

pub const ShaderSourceWGSL: Self = raw::WGPUSType_WGPUSType_ShaderSourceWGSL

pub const RenderPassMaxDrawCount: Self = raw::WGPUSType_WGPUSType_RenderPassMaxDrawCount

pub const SurfaceSourceMetalLayer: Self = raw::WGPUSType_WGPUSType_SurfaceSourceMetalLayer

pub const SurfaceSourceWindowsHWND: Self = raw::WGPUSType_WGPUSType_SurfaceSourceWindowsHWND

pub const SurfaceSourceXlibWindow: Self = raw::WGPUSType_WGPUSType_SurfaceSourceXlibWindow

pub const SurfaceSourceWaylandSurface: Self = raw::WGPUSType_WGPUSType_SurfaceSourceWaylandSurface

pub const SurfaceSourceAndroidNativeWindow: Self = raw::WGPUSType_WGPUSType_SurfaceSourceAndroidNativeWindow

pub const SurfaceSourceXCBWindow: Self = raw::WGPUSType_WGPUSType_SurfaceSourceXCBWindow

pub const SurfaceColorManagement: Self = raw::WGPUSType_WGPUSType_SurfaceColorManagement

pub const RequestAdapterWebXROptions: Self = raw::WGPUSType_WGPUSType_RequestAdapterWebXROptions

pub const AdapterPropertiesSubgroups: Self = raw::WGPUSType_WGPUSType_AdapterPropertiesSubgroups

pub const BindGroupLayoutEntryArraySize: Self = raw::WGPUSType_WGPUSType_BindGroupLayoutEntryArraySize

pub const TextureBindingViewDimensionDescriptor: Self = raw::WGPUSType_WGPUSType_TextureBindingViewDimensionDescriptor

pub const EmscriptenSurfaceSourceCanvasHTMLSelector: Self = raw::WGPUSType_WGPUSType_EmscriptenSurfaceSourceCanvasHTMLSelector

pub const SurfaceDescriptorFromWindowsCoreWindow: Self = raw::WGPUSType_WGPUSType_SurfaceDescriptorFromWindowsCoreWindow

pub const ExternalTextureBindingEntry: Self = raw::WGPUSType_WGPUSType_ExternalTextureBindingEntry

pub const ExternalTextureBindingLayout: Self = raw::WGPUSType_WGPUSType_ExternalTextureBindingLayout

pub const SurfaceDescriptorFromWindowsUWPSwapChainPanel: Self = raw::WGPUSType_WGPUSType_SurfaceDescriptorFromWindowsUWPSwapChainPanel

pub const DawnTextureInternalUsageDescriptor: Self = raw::WGPUSType_WGPUSType_DawnTextureInternalUsageDescriptor

pub const DawnEncoderInternalUsageDescriptor: Self = raw::WGPUSType_WGPUSType_DawnEncoderInternalUsageDescriptor

pub const DawnInstanceDescriptor: Self = raw::WGPUSType_WGPUSType_DawnInstanceDescriptor

pub const DawnCacheDeviceDescriptor: Self = raw::WGPUSType_WGPUSType_DawnCacheDeviceDescriptor

pub const DawnAdapterPropertiesPowerPreference: Self = raw::WGPUSType_WGPUSType_DawnAdapterPropertiesPowerPreference

pub const DawnBufferDescriptorErrorInfoFromWireClient: Self = raw::WGPUSType_WGPUSType_DawnBufferDescriptorErrorInfoFromWireClient

pub const DawnTogglesDescriptor: Self = raw::WGPUSType_WGPUSType_DawnTogglesDescriptor

pub const DawnShaderModuleSPIRVOptionsDescriptor: Self = raw::WGPUSType_WGPUSType_DawnShaderModuleSPIRVOptionsDescriptor

pub const RequestAdapterOptionsLUID: Self = raw::WGPUSType_WGPUSType_RequestAdapterOptionsLUID

pub const RequestAdapterOptionsGetGLProc: Self = raw::WGPUSType_WGPUSType_RequestAdapterOptionsGetGLProc

pub const RequestAdapterOptionsD3D11Device: Self = raw::WGPUSType_WGPUSType_RequestAdapterOptionsD3D11Device

pub const DawnRenderPassColorAttachmentRenderToSingleSampled: Self = raw::WGPUSType_WGPUSType_DawnRenderPassColorAttachmentRenderToSingleSampled

pub const RenderPassPixelLocalStorage: Self = raw::WGPUSType_WGPUSType_RenderPassPixelLocalStorage

pub const PipelineLayoutPixelLocalStorage: Self = raw::WGPUSType_WGPUSType_PipelineLayoutPixelLocalStorage

pub const BufferHostMappedPointer: Self = raw::WGPUSType_WGPUSType_BufferHostMappedPointer

pub const AdapterPropertiesMemoryHeaps: Self = raw::WGPUSType_WGPUSType_AdapterPropertiesMemoryHeaps

pub const AdapterPropertiesD3D: Self = raw::WGPUSType_WGPUSType_AdapterPropertiesD3D

pub const AdapterPropertiesVk: Self = raw::WGPUSType_WGPUSType_AdapterPropertiesVk

pub const DawnWireWGSLControl: Self = raw::WGPUSType_WGPUSType_DawnWireWGSLControl

pub const DawnWGSLBlocklist: Self = raw::WGPUSType_WGPUSType_DawnWGSLBlocklist

pub const DawnDrmFormatCapabilities: Self = raw::WGPUSType_WGPUSType_DawnDrmFormatCapabilities

pub const ShaderModuleCompilationOptions: Self = raw::WGPUSType_WGPUSType_ShaderModuleCompilationOptions

pub const ColorTargetStateExpandResolveTextureDawn: Self = raw::WGPUSType_WGPUSType_ColorTargetStateExpandResolveTextureDawn

pub const RenderPassDescriptorExpandResolveRect: Self = raw::WGPUSType_WGPUSType_RenderPassDescriptorExpandResolveRect

pub const SharedTextureMemoryVkDedicatedAllocationDescriptor: Self = raw::WGPUSType_WGPUSType_SharedTextureMemoryVkDedicatedAllocationDescriptor

pub const SharedTextureMemoryAHardwareBufferDescriptor: Self = raw::WGPUSType_WGPUSType_SharedTextureMemoryAHardwareBufferDescriptor

pub const SharedTextureMemoryDmaBufDescriptor: Self = raw::WGPUSType_WGPUSType_SharedTextureMemoryDmaBufDescriptor

pub const SharedTextureMemoryOpaqueFDDescriptor: Self = raw::WGPUSType_WGPUSType_SharedTextureMemoryOpaqueFDDescriptor

pub const SharedTextureMemoryZirconHandleDescriptor: Self = raw::WGPUSType_WGPUSType_SharedTextureMemoryZirconHandleDescriptor

pub const SharedTextureMemoryDXGISharedHandleDescriptor: Self = raw::WGPUSType_WGPUSType_SharedTextureMemoryDXGISharedHandleDescriptor

pub const SharedTextureMemoryD3D11Texture2DDescriptor: Self = raw::WGPUSType_WGPUSType_SharedTextureMemoryD3D11Texture2DDescriptor

pub const SharedTextureMemoryIOSurfaceDescriptor: Self = raw::WGPUSType_WGPUSType_SharedTextureMemoryIOSurfaceDescriptor

pub const SharedTextureMemoryEGLImageDescriptor: Self = raw::WGPUSType_WGPUSType_SharedTextureMemoryEGLImageDescriptor

pub const SharedTextureMemoryInitializedBeginState: Self = raw::WGPUSType_WGPUSType_SharedTextureMemoryInitializedBeginState

pub const SharedTextureMemoryInitializedEndState: Self = raw::WGPUSType_WGPUSType_SharedTextureMemoryInitializedEndState

pub const SharedTextureMemoryVkImageLayoutBeginState: Self = raw::WGPUSType_WGPUSType_SharedTextureMemoryVkImageLayoutBeginState

pub const SharedTextureMemoryVkImageLayoutEndState: Self = raw::WGPUSType_WGPUSType_SharedTextureMemoryVkImageLayoutEndState

pub const SharedTextureMemoryD3DSwapchainBeginState: Self = raw::WGPUSType_WGPUSType_SharedTextureMemoryD3DSwapchainBeginState

pub const SharedFenceVkSemaphoreOpaqueFDDescriptor: Self = raw::WGPUSType_WGPUSType_SharedFenceVkSemaphoreOpaqueFDDescriptor

pub const SharedFenceVkSemaphoreOpaqueFDExportInfo: Self = raw::WGPUSType_WGPUSType_SharedFenceVkSemaphoreOpaqueFDExportInfo

pub const SharedFenceSyncFDDescriptor: Self = raw::WGPUSType_WGPUSType_SharedFenceSyncFDDescriptor

pub const SharedFenceSyncFDExportInfo: Self = raw::WGPUSType_WGPUSType_SharedFenceSyncFDExportInfo

pub const SharedFenceVkSemaphoreZirconHandleDescriptor: Self = raw::WGPUSType_WGPUSType_SharedFenceVkSemaphoreZirconHandleDescriptor

pub const SharedFenceVkSemaphoreZirconHandleExportInfo: Self = raw::WGPUSType_WGPUSType_SharedFenceVkSemaphoreZirconHandleExportInfo

pub const SharedFenceDXGISharedHandleDescriptor: Self = raw::WGPUSType_WGPUSType_SharedFenceDXGISharedHandleDescriptor

pub const SharedFenceDXGISharedHandleExportInfo: Self = raw::WGPUSType_WGPUSType_SharedFenceDXGISharedHandleExportInfo

pub const SharedFenceMTLSharedEventDescriptor: Self = raw::WGPUSType_WGPUSType_SharedFenceMTLSharedEventDescriptor

pub const SharedFenceMTLSharedEventExportInfo: Self = raw::WGPUSType_WGPUSType_SharedFenceMTLSharedEventExportInfo

pub const SharedBufferMemoryD3D12ResourceDescriptor: Self = raw::WGPUSType_WGPUSType_SharedBufferMemoryD3D12ResourceDescriptor

pub const StaticSamplerBindingLayout: Self = raw::WGPUSType_WGPUSType_StaticSamplerBindingLayout

pub const YCbCrVkDescriptor: Self = raw::WGPUSType_WGPUSType_YCbCrVkDescriptor

pub const SharedTextureMemoryAHardwareBufferProperties: Self = raw::WGPUSType_WGPUSType_SharedTextureMemoryAHardwareBufferProperties

pub const AHardwareBufferProperties: Self = raw::WGPUSType_WGPUSType_AHardwareBufferProperties

pub const DawnTexelCopyBufferRowAlignmentLimits: Self = raw::WGPUSType_WGPUSType_DawnTexelCopyBufferRowAlignmentLimits

pub const AdapterPropertiesSubgroupMatrixConfigs: Self = raw::WGPUSType_WGPUSType_AdapterPropertiesSubgroupMatrixConfigs

pub const SharedFenceEGLSyncDescriptor: Self = raw::WGPUSType_WGPUSType_SharedFenceEGLSyncDescriptor

pub const SharedFenceEGLSyncExportInfo: Self = raw::WGPUSType_WGPUSType_SharedFenceEGLSyncExportInfo

pub const DawnInjectedInvalidSType: Self = raw::WGPUSType_WGPUSType_DawnInjectedInvalidSType

pub const DawnCompilationMessageUtf16: Self = raw::WGPUSType_WGPUSType_DawnCompilationMessageUtf16

pub const DawnFakeBufferOOMForTesting: Self = raw::WGPUSType_WGPUSType_DawnFakeBufferOOMForTesting

pub const SurfaceDescriptorFromWindowsWinUISwapChainPanel: Self = raw::WGPUSType_WGPUSType_SurfaceDescriptorFromWindowsWinUISwapChainPanel

pub const DawnDeviceAllocatorControl: Self = raw::WGPUSType_WGPUSType_DawnDeviceAllocatorControl

pub const DawnHostMappedPointerLimits: Self = raw::WGPUSType_WGPUSType_DawnHostMappedPointerLimits

pub const RenderPassDescriptorResolveRect: Self = raw::WGPUSType_WGPUSType_RenderPassDescriptorResolveRect

Trait Implementations§

Source§

impl Clone for WGPUSType

Source§

fn clone(&self) -> WGPUSType

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for WGPUSType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
§

impl Default for WGPUSType

§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Hash for WGPUSType

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for WGPUSType

Source§

fn cmp(&self, other: &WGPUSType) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for WGPUSType

Source§

fn eq(&self, other: &WGPUSType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for WGPUSType

Source§

fn partial_cmp(&self, other: &WGPUSType) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Copy for WGPUSType

Source§

impl Eq for WGPUSType

Source§

impl StructuralPartialEq for WGPUSType

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.