Struct asi_vulkan::Sprite [−][src]
pub struct Sprite { pub uniform_memory: Buffer, pub pipeline: u64, pub pipeline_layout: u64, // some fields omitted }
A render-able instance.
Fields
uniform_memory: Buffer
pipeline: u64
pipeline_layout: u64
Methods
impl Sprite
[src]
impl Sprite
pub unsafe fn new<T>(
vulkan: &Gpu,
pipeline: &Style,
buffer_data: T,
camera_memory: &Memory<TransformUniform>,
effect_memory: Option<&Memory<FogUniform>>,
texture: Option<Image>,
tex_count: bool
) -> Self where
T: Clone,
[src]
pub unsafe fn new<T>(
vulkan: &Gpu,
pipeline: &Style,
buffer_data: T,
camera_memory: &Memory<TransformUniform>,
effect_memory: Option<&Memory<FogUniform>>,
texture: Option<Image>,
tex_count: bool
) -> Self where
T: Clone,
Create a new sprite.
pub fn handles(&self) -> (u64, u64)
[src]
pub fn handles(&self) -> (u64, u64)