Skip to content

Commit

Permalink
Minor changes to pipeline layout
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaka committed Apr 11, 2016
1 parent 7cc5def commit 6cef1ee
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
13 changes: 12 additions & 1 deletion vulkano/src/descriptor/pipeline_layout/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@
// notice may not be copied, modified, or distributed except
// according to those terms.

//! Describes the layout of descriptors and push constants used by a pipeline.
//!
//! This module contains all the structs and traits related to describing the layout of
//! descriptors and push constants used by the shaders of a graphics or compute pipeline.
//!
//! The layout itself only **describes** the descriptors and push constants, and does not contain
//! the content of the push constants or the actual list of resources that are going to be available
//! through the descriptors. Push constants are set when you submit a draw command, and the list
//! of resources is set by creating *descriptor set* objects and passing these sets when you
//! submit a draw command.

pub use self::empty::EmptyPipeline;
pub use self::sys::UnsafePipelineLayout;
pub use self::sys::UnsafePipelineLayoutCreationError;
Expand All @@ -17,7 +28,7 @@ pub use self::traits::PipelineLayoutSetsCompatible;
pub use self::traits::PipelineLayoutPushConstantsCompatible;

pub mod custom_pipeline_macro;
pub mod empty;

mod empty;
mod sys;
mod traits;
3 changes: 3 additions & 0 deletions vulkano/src/descriptor/pipeline_layout/sys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ use descriptor::descriptor_set::UnsafeDescriptorSetLayout;
use device::Device;

/// Low-level struct that represents the layout of the resources available to your shaders.
///
/// Despite its name, this type is technically not unsafe. However it serves the same purpose
/// in the API as other types whose names start with `Unsafe`.
pub struct UnsafePipelineLayout {
device: Arc<Device>,
layout: vk::PipelineLayout,
Expand Down

0 comments on commit 6cef1ee

Please sign in to comment.