Fix vulkano_shaders with push constants descs

This commit is contained in:
Pierre Krieger 2016-11-10 11:21:51 +01:00
parent bfe6f6f7cb
commit c5c14e5a4d
2 changed files with 3 additions and 1 deletions

View File

@ -118,7 +118,7 @@ pub fn write_descriptor_sets(doc: &parse::Spirv) -> String {
0 // FIXME:
}}
fn push_constants_range(&self, num: usize) -> Option<(usize, usize, ShaderStages)> {{
fn push_constants_range(&self, num: usize) -> Option<PipelineLayoutDescPcRange> {{
None
}}
}}

View File

@ -103,6 +103,8 @@ pub fn reflect<R>(name: &str, mut spirv: R) -> Result<String, Error>
use vulkano::descriptor::pipeline_layout::PipelineLayoutDesc;
#[allow(unused_imports)]
use vulkano::descriptor::pipeline_layout::PipelineLayoutDescNames;
#[allow(unused_imports)]
use vulkano::descriptor::pipeline_layout::PipelineLayoutDescPcRange;
"#);
{