diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-08-04 13:34:20 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-08-05 15:45:09 +0300 |
commit | 1ae767be9f69c04c22fc62dcf0b261140605640a (patch) | |
tree | d454b507465fb9922758ed0dc65b7661b94b27f5 /source/blender/draw/intern/DRW_gpu_wrapper.hh | |
parent | 65561a0573418351936e994d72e207dff38369d2 (diff) |
Cleanup: DRW: Remove void function argument
Diffstat (limited to 'source/blender/draw/intern/DRW_gpu_wrapper.hh')
-rw-r--r-- | source/blender/draw/intern/DRW_gpu_wrapper.hh | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/source/blender/draw/intern/DRW_gpu_wrapper.hh b/source/blender/draw/intern/DRW_gpu_wrapper.hh index ed00d24ce2a..639a1ed4aa1 100644 --- a/source/blender/draw/intern/DRW_gpu_wrapper.hh +++ b/source/blender/draw/intern/DRW_gpu_wrapper.hh @@ -602,17 +602,17 @@ class Texture : NonCopyable { /** * Returns true if the texture has been allocated or acquired from the pool. */ - bool is_valid(void) const + bool is_valid() const { return tx_ != nullptr; } - int width(void) const + int width() const { return GPU_texture_width(tx_); } - int height(void) const + int height() const { return GPU_texture_height(tx_); } @@ -622,27 +622,27 @@ class Texture : NonCopyable { return GPU_texture_width(tx_) * GPU_texture_height(tx_); } - bool depth(void) const + bool depth() const { return GPU_texture_depth(tx_); } - bool is_stencil(void) const + bool is_stencil() const { return GPU_texture_stencil(tx_); } - bool is_integer(void) const + bool is_integer() const { return GPU_texture_integer(tx_); } - bool is_cube(void) const + bool is_cube() const { return GPU_texture_cube(tx_); } - bool is_array(void) const + bool is_array() const { return GPU_texture_array(tx_); } @@ -796,7 +796,7 @@ class TextureFromPool : public Texture, NonMovable { DST.vmempool->texture_pool, UNPACK2(extent), format); } - void release(void) + void release() { /* Allows multiple release. */ if (this->tx_ == nullptr) { |