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 1
1
//! This module provides a `rust-gpu` shader crate builder
2
2
//! usable inside of build scripts or as a part of CLI.
3
3
4
- use std:: { io, process:: Stdio } ;
4
+ use std:: { io, path :: Path , process:: Stdio } ;
5
5
6
6
use crate :: {
7
7
lockfile:: { LockfileMismatchError , LockfileMismatchHandler } ,
8
+ metadata:: { RustGpuMetadata , RustGpuMetadataSource } ,
8
9
spirv_builder:: { CompileResult , SpirvBuilder , SpirvBuilderError } ,
9
10
spirv_cache:: {
10
11
backend:: {
@@ -88,6 +89,15 @@ pub struct CargoGpuMetadata {
88
89
pub install : CargoGpuInstallMetadata ,
89
90
}
90
91
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
+
91
101
/// Parameters for [`CargoGpuBuilder::new()`].
92
102
#[ derive( Debug , Clone ) ]
93
103
#[ non_exhaustive]
You can’t perform that action at this time.
0 commit comments