File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -217,7 +217,14 @@ impl Layer {
217217 ptr as * mut _
218218 }
219219
220- /// Whether `raw-window-metal` created a new [`CAMetalLayer`] for you.
220+ /// If `raw-window-metal` created a new [`CAMetalLayer`] for you, this returns `false`.
221+ ///
222+ /// This may be useful if you want to override some part of `raw-window-metal`'s behaviour, and
223+ /// need to do so based on whether it ended up creating a layer or not.
224+ ///
225+ /// You should try to avoid this, and instead:
226+ /// - Modify `CALayer` properties on the layer that you created this from.
227+ /// - Modify `CAMetalLayer` properties on the layer returned from `as_ptr`.
221228 #[ inline]
222229 pub fn pre_existing ( & self ) -> bool {
223230 self . pre_existing
You can’t perform that action at this time.
0 commit comments