Add docs to the build method
This commit is contained in:
parent
bd2f990100
commit
90538a05c0
1 changed files with 3 additions and 0 deletions
|
@ -1695,6 +1695,9 @@ pub fn derive_setters(
|
||||||
|
|
||||||
#next_function
|
#next_function
|
||||||
|
|
||||||
|
/// Calling build will **discard** all the lifetime information. Only call this if
|
||||||
|
/// necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,
|
||||||
|
/// so references to builders can be passed directly to Vulkan functions.
|
||||||
pub fn build(self) -> #name {
|
pub fn build(self) -> #name {
|
||||||
self.inner
|
self.inner
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue