Fixed using unchecked_uniform_buffer

This commit is contained in:
Pierre Krieger 2016-03-28 11:42:06 +02:00
parent a91aca5520
commit cc3b1d672b

View File

@ -65,9 +65,9 @@ pub fn write_descriptor_sets(doc: &parse::Spirv) -> String {
Some((
"::vulkano::descriptor_set::DescriptorType::UniformBuffer",
vec![tp_buffer.to_owned()],
format!("{}: 'static + ::vulkano::buffer::Buffer", tp_buffer),
format!("{}: 'static + ::vulkano::buffer::TypedBuffer", tp_buffer),
format!("&'a ::std::sync::Arc<{}>", tp_buffer),
"unsafe { ::vulkano::descriptor_set::DescriptorBind::unchecked_uniform_buffer(data, 0 .. data.size()) }"
"::vulkano::descriptor_set::DescriptorBind::uniform_buffer(data)"
))
},
&parse::Instruction::TypeImage { result_id, sampled_type_id, ref dim, arrayed, ms,