Struct godot::classes::rendering_device::TextureUsageBits
pub struct TextureUsageBits { /* private fields */ }
Implementations§
§impl TextureUsageBits
impl TextureUsageBits
pub const SAMPLING_BIT: TextureUsageBits = _
pub const SAMPLING_BIT: TextureUsageBits = _
Godot enumerator name: TEXTURE_USAGE_SAMPLING_BIT
pub const COLOR_ATTACHMENT_BIT: TextureUsageBits = _
pub const COLOR_ATTACHMENT_BIT: TextureUsageBits = _
Godot enumerator name: TEXTURE_USAGE_COLOR_ATTACHMENT_BIT
pub const DEPTH_STENCIL_ATTACHMENT_BIT: TextureUsageBits = _
pub const DEPTH_STENCIL_ATTACHMENT_BIT: TextureUsageBits = _
Godot enumerator name: TEXTURE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT
pub const STORAGE_BIT: TextureUsageBits = _
pub const STORAGE_BIT: TextureUsageBits = _
Godot enumerator name: TEXTURE_USAGE_STORAGE_BIT
pub const STORAGE_ATOMIC_BIT: TextureUsageBits = _
pub const STORAGE_ATOMIC_BIT: TextureUsageBits = _
Godot enumerator name: TEXTURE_USAGE_STORAGE_ATOMIC_BIT
pub const CPU_READ_BIT: TextureUsageBits = _
pub const CPU_READ_BIT: TextureUsageBits = _
Godot enumerator name: TEXTURE_USAGE_CPU_READ_BIT
pub const CAN_UPDATE_BIT: TextureUsageBits = _
pub const CAN_UPDATE_BIT: TextureUsageBits = _
Godot enumerator name: TEXTURE_USAGE_CAN_UPDATE_BIT
pub const CAN_COPY_FROM_BIT: TextureUsageBits = _
pub const CAN_COPY_FROM_BIT: TextureUsageBits = _
Godot enumerator name: TEXTURE_USAGE_CAN_COPY_FROM_BIT
pub const CAN_COPY_TO_BIT: TextureUsageBits = _
pub const CAN_COPY_TO_BIT: TextureUsageBits = _
Godot enumerator name: TEXTURE_USAGE_CAN_COPY_TO_BIT
pub const INPUT_ATTACHMENT_BIT: TextureUsageBits = _
pub const INPUT_ATTACHMENT_BIT: TextureUsageBits = _
Godot enumerator name: TEXTURE_USAGE_INPUT_ATTACHMENT_BIT
Trait Implementations§
§impl BitOr for TextureUsageBits
impl BitOr for TextureUsageBits
§type Output = TextureUsageBits
type Output = TextureUsageBits
The resulting type after applying the
|
operator.§fn bitor(self, rhs: TextureUsageBits) -> <TextureUsageBits as BitOr>::Output
fn bitor(self, rhs: TextureUsageBits) -> <TextureUsageBits as BitOr>::Output
Performs the
|
operation. Read more§impl Clone for TextureUsageBits
impl Clone for TextureUsageBits
§fn clone(&self) -> TextureUsageBits
fn clone(&self) -> TextureUsageBits
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for TextureUsageBits
impl Debug for TextureUsageBits
§impl Default for TextureUsageBits
impl Default for TextureUsageBits
§fn default() -> TextureUsageBits
fn default() -> TextureUsageBits
Returns the “default value” for a type. Read more
§impl EngineBitfield for TextureUsageBits
impl EngineBitfield for TextureUsageBits
§impl FromGodot for TextureUsageBits
impl FromGodot for TextureUsageBits
§fn try_from_godot(
via: <TextureUsageBits as GodotConvert>::Via,
) -> Result<TextureUsageBits, ConvertError>
fn try_from_godot( via: <TextureUsageBits as GodotConvert>::Via, ) -> Result<TextureUsageBits, ConvertError>
Converts the Godot representation to this type, returning
Err
on failure.§fn from_godot(via: Self::Via) -> Self
fn from_godot(via: Self::Via) -> Self
⚠️ Converts the Godot representation to this type. Read more
§fn try_from_variant(variant: &Variant) -> Result<Self, ConvertError>
fn try_from_variant(variant: &Variant) -> Result<Self, ConvertError>
Performs the conversion from a
Variant
, returning Err
on failure.§fn from_variant(variant: &Variant) -> Self
fn from_variant(variant: &Variant) -> Self
§impl GodotConvert for TextureUsageBits
impl GodotConvert for TextureUsageBits
§impl Hash for TextureUsageBits
impl Hash for TextureUsageBits
§impl PartialEq for TextureUsageBits
impl PartialEq for TextureUsageBits
§fn eq(&self, other: &TextureUsageBits) -> bool
fn eq(&self, other: &TextureUsageBits) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl ToGodot for TextureUsageBits
impl ToGodot for TextureUsageBits
§fn to_godot(&self) -> <TextureUsageBits as GodotConvert>::Via
fn to_godot(&self) -> <TextureUsageBits as GodotConvert>::Via
Converts this type to the Godot type by reference, usually by cloning.
§fn into_godot(self) -> Self::Via
fn into_godot(self) -> Self::Via
Converts this type to the Godot type. Read more
§fn to_variant(&self) -> Variant
fn to_variant(&self) -> Variant
Converts this type to a Variant.
impl Copy for TextureUsageBits
impl Eq for TextureUsageBits
impl StructuralPartialEq for TextureUsageBits
Auto Trait Implementations§
impl Freeze for TextureUsageBits
impl RefUnwindSafe for TextureUsageBits
impl Send for TextureUsageBits
impl Sync for TextureUsageBits
impl Unpin for TextureUsageBits
impl UnwindSafe for TextureUsageBits
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)