Struct asi_vulkan::Gpu [−][src]
pub struct Gpu(_);
The Vulkan context.
Methods
impl Gpu
[src]
impl Gpu
pub fn new(
window: Option<(&str, &Video)>,
rgb: Vec3
) -> Result<(Gpu, Window), String>
[src]
pub fn new(
window: Option<(&str, &Video)>,
rgb: Vec3
) -> Result<(Gpu, Window), String>
Create the GPU context, and optionally a window to render to.
pub fn color(&self, rgb: Vec3)
[src]
pub fn color(&self, rgb: Vec3)
Set the clear color.
pub fn sampled(&self) -> bool
[src]
pub fn sampled(&self) -> bool
Whether or not images are sampled.
pub fn ar(&self) -> f32
[src]
pub fn ar(&self) -> f32
Aspect ratio