Struct thindx::d3d::ResourceType
source · [−]#[repr(transparent)]pub struct ResourceType(_);
Expand description
[docs.microsoft.com] D3DRESOURCETYPE
Specifies the type of a [Resource]
Implementations
sourceimpl ResourceType
impl ResourceType
sourcepub const fn from_unchecked(d3d: D3DRESOURCETYPE) -> Self
pub const fn from_unchecked(d3d: D3DRESOURCETYPE) -> Self
Convert from an underlying [winapi] D3D...
type.
This is probably safe… probably…
sourcepub const fn into_inner(self) -> D3DRESOURCETYPE
pub const fn into_inner(self) -> D3DRESOURCETYPE
Convert back into an underlying [winapi] D3D...
type.
sourceimpl ResourceType
impl ResourceType
sourcepub const Surface: ResourceType = ResourceType(D3DRTYPE_SURFACE)
pub const Surface: ResourceType = ResourceType(D3DRTYPE_SURFACE)
[Surface] resource.
sourcepub const Volume: ResourceType = ResourceType(D3DRTYPE_VOLUME)
pub const Volume: ResourceType = ResourceType(D3DRTYPE_VOLUME)
[Volume] resource.
sourcepub const Texture: ResourceType = ResourceType(D3DRTYPE_TEXTURE)
pub const Texture: ResourceType = ResourceType(D3DRTYPE_TEXTURE)
[Texture] resource.
sourcepub const VolumeTexture: ResourceType = ResourceType(D3DRTYPE_VOLUMETEXTURE)
pub const VolumeTexture: ResourceType = ResourceType(D3DRTYPE_VOLUMETEXTURE)
[VolumeTexture] resource.
sourcepub const CubeTexture: ResourceType = ResourceType(D3DRTYPE_CUBETEXTURE)
pub const CubeTexture: ResourceType = ResourceType(D3DRTYPE_CUBETEXTURE)
[CubeTexture] resource.
sourcepub const VertexBuffer: ResourceType = ResourceType(D3DRTYPE_VERTEXBUFFER)
pub const VertexBuffer: ResourceType = ResourceType(D3DRTYPE_VERTEXBUFFER)
[VertexBuffer] resource.
sourcepub const IndexBuffer: ResourceType = ResourceType(D3DRTYPE_INDEXBUFFER)
pub const IndexBuffer: ResourceType = ResourceType(D3DRTYPE_INDEXBUFFER)
[IndexBuffer] resource.
Trait Implementations
sourceimpl Clone for ResourceType
impl Clone for ResourceType
sourcefn clone(&self) -> ResourceType
fn clone(&self) -> ResourceType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ResourceType
impl Debug for ResourceType
sourceimpl From<ResourceType> for D3DRESOURCETYPE
impl From<ResourceType> for D3DRESOURCETYPE
sourcefn from(value: ResourceType) -> Self
fn from(value: ResourceType) -> Self
Converts to this type from the input type.
sourceimpl Hash for ResourceType
impl Hash for ResourceType
sourceimpl Ord for ResourceType
impl Ord for ResourceType
sourceimpl PartialEq<ResourceType> for ResourceType
impl PartialEq<ResourceType> for ResourceType
sourcefn eq(&self, other: &ResourceType) -> bool
fn eq(&self, other: &ResourceType) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ResourceType) -> bool
fn ne(&self, other: &ResourceType) -> bool
This method tests for !=
.
sourceimpl PartialOrd<ResourceType> for ResourceType
impl PartialOrd<ResourceType> for ResourceType
sourcefn partial_cmp(&self, other: &ResourceType) -> Option<Ordering>
fn partial_cmp(&self, other: &ResourceType) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl Zeroable for ResourceType
impl Zeroable for ResourceType
impl Copy for ResourceType
impl Eq for ResourceType
impl Pod for ResourceType
impl StructuralEq for ResourceType
impl StructuralPartialEq for ResourceType
Auto Trait Implementations
impl RefUnwindSafe for ResourceType
impl Send for ResourceType
impl Sync for ResourceType
impl Unpin for ResourceType
impl UnwindSafe for ResourceType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more