pub enum RenderMode {
Points = 1,
Lines = 2,
LineLoop = 3,
LineStrip = 4,
Triangles = 5,
TriangleStrip = 6,
TriangleFan = 7,
}Expand description
The type of primitives to render.
§Rendering
Vulkan: Corresponds to vk::PrimitiveTopology
https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkPrimitiveTopology.html
Variants§
Points = 1
Corresponds to GL_POINTS or vk::PrimitiveTopology::POINT_LIST.
Lines = 2
Corresponds to GL_LINES or vk::PrimitiveTopology::LINE_LIST.
LineLoop = 3
Corresponds to [GL_LINE_LOOP] or [vk::PrimitiveTopology::LINE_LIST].
LineStrip = 4
Corresponds to GL_LINE_STRIP or vk::PrimitiveTopology::LINE_STRIP.
Triangles = 5
Corresponds to GL_TRIANGLES or vk::PrimitiveTopology::TRIANGLE_LIST.
TriangleStrip = 6
Corresponds to GL_TRIANGLE_STRIPor vk::PrimitiveTopology::TRIANGLE_STRIP.
TriangleFan = 7
Corresponds to GL_TRIANGLE_FAN or vk::PrimitiveTopology::TRIANGLE_FAN.
Trait Implementations§
Source§impl Clone for RenderMode
impl Clone for RenderMode
Source§fn clone(&self) -> RenderMode
fn clone(&self) -> RenderMode
Returns a duplicate 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 moreSource§impl Debug for RenderMode
impl Debug for RenderMode
Source§impl PartialEq for RenderMode
impl PartialEq for RenderMode
impl Copy for RenderMode
impl Eq for RenderMode
impl StructuralPartialEq for RenderMode
Auto Trait Implementations§
impl Freeze for RenderMode
impl RefUnwindSafe for RenderMode
impl Send for RenderMode
impl Sync for RenderMode
impl Unpin for RenderMode
impl UnwindSafe for RenderMode
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