pub struct PipelineLayout {
pub bindings: Option<Vec<DescriptorBinding>>,
pub push_constants: Option<Vec<PushConstantInfo>>,
pub static_samplers: Option<Vec<SamplerBinding>>,
}Expand description
PipelineLayout is required to create a pipeline it describes the layout of resources for access on the GPU.
Fields§
§bindings: Option<Vec<DescriptorBinding>>Vector of DescriptorBinding which are arrays of textures, samplers or structured buffers, etc
push_constants: Option<Vec<PushConstantInfo>>Small amounts of data that can be pushed into a command buffer and available as data in shaders
static_samplers: Option<Vec<SamplerBinding>>Static samplers that come along with the pipeline,
Trait Implementations§
Source§impl Clone for PipelineLayout
impl Clone for PipelineLayout
Source§fn clone(&self) -> PipelineLayout
fn clone(&self) -> PipelineLayout
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for PipelineLayout
impl Default for PipelineLayout
Source§fn default() -> PipelineLayout
fn default() -> PipelineLayout
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PipelineLayout
impl<'de> Deserialize<'de> for PipelineLayout
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PipelineLayout
impl RefUnwindSafe for PipelineLayout
impl Send for PipelineLayout
impl Sync for PipelineLayout
impl Unpin for PipelineLayout
impl UnsafeUnpin for PipelineLayout
impl UnwindSafe for PipelineLayout
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