aboutsummaryrefslogtreecommitdiff
path: root/stockton-skeleton/src/builders
diff options
context:
space:
mode:
Diffstat (limited to 'stockton-skeleton/src/builders')
-rw-r--r--stockton-skeleton/src/builders/pipeline.rs1
-rw-r--r--stockton-skeleton/src/builders/shader.rs4
2 files changed, 4 insertions, 1 deletions
diff --git a/stockton-skeleton/src/builders/pipeline.rs b/stockton-skeleton/src/builders/pipeline.rs
index 82673a2..af8d430 100644
--- a/stockton-skeleton/src/builders/pipeline.rs
+++ b/stockton-skeleton/src/builders/pipeline.rs
@@ -97,6 +97,7 @@ pub struct PipelineSpec {
#[builder(setter(strip_option), default)]
shader_tesselation: Option<(ShaderDesc, ShaderDesc)>,
+ #[builder(default = "vec![]")]
push_constants: Vec<(ShaderStageFlags, Range<u32>)>,
#[builder(default = "false")]
diff --git a/stockton-skeleton/src/builders/shader.rs b/stockton-skeleton/src/builders/shader.rs
index fde185d..be48951 100644
--- a/stockton-skeleton/src/builders/shader.rs
+++ b/stockton-skeleton/src/builders/shader.rs
@@ -1,8 +1,10 @@
use crate::types::*;
+pub use shaderc::ShaderKind;
+
use anyhow::{Context, Result};
use hal::pso::Specialization;
-use shaderc::{Compiler, ShaderKind};
+use shaderc::Compiler;
#[derive(Debug, Clone)]
pub struct ShaderDesc {