Struct three_d::core::Texture2D [−][src]
A 2D texture, basically an image that is transferred to the GPU. For a texture that can be rendered into, see ColorTargetTexture2D.
Implementations
impl Texture2D
[src]
pub fn new_with_u8(
context: &Context,
cpu_texture: &CPUTexture<u8>
) -> Result<Texture2D, Error>
[src]
context: &Context,
cpu_texture: &CPUTexture<u8>
) -> Result<Texture2D, Error>
pub fn new_with_f32(
context: &Context,
cpu_texture: &CPUTexture<f32>
) -> Result<Texture2D, Error>
[src]
context: &Context,
cpu_texture: &CPUTexture<f32>
) -> Result<Texture2D, Error>
pub fn fill_with_u8(&mut self, data: &[u8]) -> Result<(), Error>
[src]
pub fn fill_with_f32(&mut self, data: &[f32]) -> Result<(), Error>
[src]
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Texture2D
impl !Send for Texture2D
impl !Sync for Texture2D
impl Unpin for Texture2D
impl UnwindSafe for Texture2D
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,