pub struct Layout { /* private fields */ }
Expand description
Used to specify input and output shader data
Implementations§
Source§impl Layout
impl Layout
Sourcepub fn create_graphics_pipeline<V: AttributeDescriptor>(
&self,
render_target: &RenderTarget,
shaders: &[Shader],
) -> GraphicsResult<Pipeline<V>>
pub fn create_graphics_pipeline<V: AttributeDescriptor>( &self, render_target: &RenderTarget, shaders: &[Shader], ) -> GraphicsResult<Pipeline<V>>
Creates graphics pipeline
Sourcepub fn create_compute_pipeline(
&self,
shader: &Shader,
) -> GraphicsResult<Pipeline<ComputeDescriptor>>
pub fn create_compute_pipeline( &self, shader: &Shader, ) -> GraphicsResult<Pipeline<ComputeDescriptor>>
Creates compute pipeline
Sourcepub fn register_samplers(
&self,
samplers: &[Arc<GpuSamplerSet>],
) -> GraphicsResult<()>
pub fn register_samplers( &self, samplers: &[Arc<GpuSamplerSet>], ) -> GraphicsResult<()>
Registers samplers in layout for reusing them
Sourcepub fn add_buffer<T>(
&self,
binding: u32,
buffer: &Buffer<T>,
) -> GraphicsResult<()>
pub fn add_buffer<T>( &self, binding: u32, buffer: &Buffer<T>, ) -> GraphicsResult<()>
Adds buffer
Auto Trait Implementations§
impl Freeze for Layout
impl !RefUnwindSafe for Layout
impl Send for Layout
impl Sync for Layout
impl Unpin for Layout
impl !UnwindSafe for Layout
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