fix up the builder so that this works as a nix expression
This commit is contained in:
@@ -13,7 +13,7 @@ fn main() -> Result<(), Box<dyn Error>> {
|
||||
println!("get_shader: constructing builder");
|
||||
let builder = SpirvBuilder::new(crate_path, "spirv-unknown-vulkan1.1")
|
||||
//let builder = SpirvBuilder::new(crate_path, "spirv-unknown-spv1.3")
|
||||
.print_metadata(MetadataPrintout::None)
|
||||
.print_metadata(MetadataPrintout::Full)
|
||||
.capability(Capability::Int8)
|
||||
// .capability(Capability::PhysicalStorageBufferAddresses)
|
||||
// .capability(Capability::Addresses)
|
||||
@@ -24,6 +24,6 @@ fn main() -> Result<(), Box<dyn Error>> {
|
||||
let initial_result = builder.build()?;
|
||||
|
||||
let module_path = initial_result.module.unwrap_single();
|
||||
println!("get_shader: built: {:?}", module_path);
|
||||
println!("get_shader: built:\n{}", module_path.display());
|
||||
Ok(())
|
||||
}
|
||||
|
Reference in New Issue
Block a user