pub struct OwnedGfxVertexBuffer {
pub resource_id: GfxResourceID,
}Fields§
§resource_id: GfxResourceIDImplementations§
Source§impl OwnedGfxVertexBuffer
impl OwnedGfxVertexBuffer
Sourcepub fn new(fmt: VertexFormat, max_vertices: c_int) -> Option<Self>
pub fn new(fmt: VertexFormat, max_vertices: c_int) -> Option<Self>
Returns None if the GPU rejects the buffer — typically because the
graphics context is currently lost (mid-device-reset on Windows D3D9).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OwnedGfxVertexBuffer
impl RefUnwindSafe for OwnedGfxVertexBuffer
impl !Send for OwnedGfxVertexBuffer
impl !Sync for OwnedGfxVertexBuffer
impl Unpin for OwnedGfxVertexBuffer
impl UnsafeUnpin for OwnedGfxVertexBuffer
impl UnwindSafe for OwnedGfxVertexBuffer
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