File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
crates/cargo-gpu-build/src Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 11//! This module provides a `rust-gpu` shader crate builder
22//! usable inside of build scripts or as a part of CLI.
33
4- use std:: { io, process:: Stdio } ;
4+ use std:: { io, path :: Path , process:: Stdio } ;
55
66use crate :: {
77 lockfile:: { LockfileMismatchError , LockfileMismatchHandler } ,
8+ metadata:: { RustGpuMetadata , RustGpuMetadataSource } ,
89 spirv_builder:: { CompileResult , SpirvBuilder , SpirvBuilderError } ,
910 spirv_cache:: {
1011 backend:: {
@@ -88,6 +89,15 @@ pub struct CargoGpuMetadata {
8889 pub install : CargoGpuInstallMetadata ,
8990}
9091
92+ impl RustGpuMetadata for CargoGpuMetadata {
93+ #[ inline]
94+ fn patch < P > ( & mut self , _shader_crate : P , _source : RustGpuMetadataSource < ' _ > )
95+ where
96+ P : AsRef < Path > ,
97+ {
98+ }
99+ }
100+
91101/// Parameters for [`CargoGpuBuilder::new()`].
92102#[ derive( Debug , Clone ) ]
93103#[ non_exhaustive]
You can’t perform that action at this time.
0 commit comments