diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-03-16 11:07:57 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-03-18 22:59:37 +0300 |
commit | daa26ac0f5e473eef2a05458cb6502691cd95589 (patch) | |
tree | 8136bcf38271fa29ca4495f96c7788f13bb7434f /source/blender/draw | |
parent | e5c2bfb341020e65021a63d30be754eff7d69087 (diff) |
Cleanup: DRW: Fix comments in DRW_gpu_wrapper
Diffstat (limited to 'source/blender/draw')
-rw-r--r-- | source/blender/draw/intern/DRW_gpu_wrapper.hh | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/source/blender/draw/intern/DRW_gpu_wrapper.hh b/source/blender/draw/intern/DRW_gpu_wrapper.hh index a69df8ac297..3ff22f61500 100644 --- a/source/blender/draw/intern/DRW_gpu_wrapper.hh +++ b/source/blender/draw/intern/DRW_gpu_wrapper.hh @@ -16,39 +16,39 @@ * * All types are not copyable and Buffers are not Movable. * - * `drw::UniformArrayBuffer<T, len>` + * `draw::UniformArrayBuffer<T, len>` * Uniform buffer object containing an array of T with len elements. * Data can be accessed using the [] operator. * - * `drw::UniformBuffer<T>` + * `draw::UniformBuffer<T>` * A uniform buffer object class inheriting from T. * Data can be accessed just like a normal T object. * - * `drw::StorageArrayBuffer<T, len>` + * `draw::StorageArrayBuffer<T, len>` * Storage buffer object containing an array of T with len elements. * The item count can be changed after creation using `resize()`. * However, this requires the invalidation of the whole buffer and * discarding all data inside it. * Data can be accessed using the [] operator. * - * `drw::StorageBuffer<T>` + * `draw::StorageBuffer<T>` * A storage buffer object class inheriting from T. * Data can be accessed just like a normal T object. * - * `drw::Texture` - * A simple wrapper to #GPUTexture. A #drw::Texture can be created without allocation. + * `draw::Texture` + * A simple wrapper to #GPUTexture. A #draw::Texture can be created without allocation. * The `ensure_[1d|2d|3d|cube][_array]()` method is here to make sure the underlying texture * will meet the requirements and create (or recreate) the #GPUTexture if needed. * - * `drw::TextureFromPool` + * `draw::TextureFromPool` * A GPUTexture from the viewport texture pool. This texture can be shared with other engines * and its content is undefined when acquiring it. - * A #drw::TextureFromPool is acquired for rendering using `acquire()` and released once the + * A #draw::TextureFromPool is acquired for rendering using `acquire()` and released once the * rendering is done using `release()`. The same texture can be acquired & released multiple * time in one draw loop. * The `sync()` method *MUST* be called once during the cache populate (aka: Sync) phase. * - * `drw::Framebuffer` + * `draw::Framebuffer` * Simple wrapper to #GPUFramebuffer that can be moved. * */ @@ -648,7 +648,7 @@ class Texture : NonCopyable { } /** - * Free the internal texture but not the #drw::Texture itself. + * Free the internal texture but not the #draw::Texture itself. */ void free() { @@ -744,7 +744,7 @@ class TextureFromPool : public Texture, NonMovable { public: TextureFromPool(const char *name = "gpu::Texture") : Texture(name){}; - /* Always use `release()` after rendering. */ + /* Always use `release()` after rendering and `sync()` in sync phase. */ void acquire(int2 extent, eGPUTextureFormat format, void *owner_) { if (this->tx_ == nullptr) { |