Commit e0f172e8 authored by Laszlo Agocs's avatar Laszlo Agocs

Clarify ownership rules in qrhi.h

parent 12111880
......@@ -64,9 +64,9 @@ struct QRhiResourceUpdateBatchPrivate;
//
// Graphics resource ownership rules:
// 1. new*() does not create underlying graphics resources. build() does.
// 2. release() schedules graphics resources for destruction. The C++ object is reusable immediately via build(), or can be destroyed.
// 3. build() on an already built object calls release() implicitly. Except swapchains. (buildOrResize - special semantics)
// 4. newCompatible*() implicitly "builds". (no build() for QRhiRenderPassDescriptor)
// 2. Except: new*Descriptor() implicitly "builds". (no build() for QRhiRenderPassDescriptor f.ex.)
// 3. release() schedules graphics resources for destruction. The C++ object is reusable immediately via build(), or can be destroyed.
// 4. build() on an already built object calls release() implicitly. Except swapchains. (buildOrResize - special semantics)
// 5. Ownership of resources imported via QRhi*InitParams is not taken.
//
// Other:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment