Struct ggez::graphics::pipe::Init [−]
pub struct Init<'a> { pub vbuf: <VertexBuffer<Vertex> as DataLink<'a>>::Init, pub tex: <TextureSampler<[f32; 4]> as DataLink<'a>>::Init, pub globals: <ConstantBuffer<Globals> as DataLink<'a>>::Init, pub rect_instance_properties: <InstanceBuffer<InstanceProperties> as DataLink<'a>>::Init, pub out: <RawRenderTarget as DataLink<'a>>::Init, }
Fields
vbuf: <VertexBuffer<Vertex> as DataLink<'a>>::Init
tex: <TextureSampler<[f32; 4]> as DataLink<'a>>::Init
globals: <ConstantBuffer<Globals> as DataLink<'a>>::Init
rect_instance_properties: <InstanceBuffer<InstanceProperties> as DataLink<'a>>::Init
out: <RawRenderTarget as DataLink<'a>>::Init
Trait Implementations
impl<'a> Clone for Init<'a>
impl<'a> Clone for Init<'a>
fn clone(&self) -> Init<'a>
fn clone(&self) -> Init<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'a> Debug for Init<'a>
impl<'a> Debug for Init<'a>
impl<'a> PartialEq for Init<'a>
impl<'a> PartialEq for Init<'a>
fn eq(&self, other: &Init<'a>) -> bool
fn eq(&self, other: &Init<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Init<'a>) -> bool
fn ne(&self, other: &Init<'a>) -> bool
This method tests for !=
.
impl<'a> PipelineInit for Init<'a>
impl<'a> PipelineInit for Init<'a>
type Meta = Meta
The associated "meta" struct.
fn link_to<'s>(
&self,
desc: &mut Descriptor,
info: &'s ProgramInfo
) -> Result<Self::Meta, InitError<&'s str>>
fn link_to<'s>(
&self,
desc: &mut Descriptor,
info: &'s ProgramInfo
) -> Result<Self::Meta, InitError<&'s str>>
Attempt to map a PSO descriptor to a give shader program, represented by ProgramInfo
. Returns an instance of the "meta" struct upon successful mapping. Read more