| 
    Berserk
    
   | 
 
GL texture resource implementation. More...
#include <GLTexture.hpp>


Public Member Functions | |
| BRK_API | GLTexture (const RHITextureDesc &desc) | 
| BRK_API | ~GLTexture () override | 
| BRK_API void | Initialize () | 
| BRK_API void | Initialize2d () | 
| BRK_API void | Initialize2dArray () | 
| BRK_API void | InitializeCube () | 
| BRK_API void | UpdateTexture2D (uint32 mipLevel, const Rect2u ®ion, const Ref< Data > &memory) | 
| BRK_API void | UpdateTexture2DArray (uint32 arrayIndex, uint32 mipLevel, const Rect2u ®ion, const Ref< Data > &memory) | 
| BRK_API void | UpdateTextureCube (RHITextureCubemapFace face, uint32 mipLevel, const Rect2u ®ion, const Ref< Data > &memory) | 
| BRK_API void | GenerateMipMaps () | 
| BRK_API void | Bind (uint32 location, uint32 slot) const | 
| BRK_API GLenum | GetTextureTarget () const | 
| GLuint | GetHandle () const | 
  Public Member Functions inherited from RHITexture | |
| BRK_API | ~RHITexture () override=default | 
| const StringName & | GetName () const | 
| uint32 | GetWidth () const | 
| uint32 | GetHeight () const | 
| uint32 | GetDepth () const | 
| uint32 | GetMipsCount () const | 
| uint32 | GetArraySlices () const | 
| RHITextureType | GetTextureType () const | 
| RHITextureFormat | GetTextureFormat () const | 
| Mask< RHITextureUsage > | GetTextureUsage () const | 
| bool | UsageShaderSampling () const | 
| bool | UsageColorAttachment () const | 
| bool | UsageDepthStencilAttachment () const | 
| const RHITextureDesc & | GetDesc () const | 
  Public Member Functions inherited from RHIResource | |
| BRK_API | ~RHIResource () override=default | 
  Public Member Functions inherited from RefCnt | |
| virtual | ~RefCnt () | 
| bool | IsUnique () const | 
| std::int32_t | GetRefs () const | 
| std::int32_t | AddRef () const | 
| std::int32_t | RelRef () const | 
Additional Inherited Members | |
  Protected Member Functions inherited from RHIResource | |
| void | Destroy () const override | 
  Protected Attributes inherited from RHITexture | |
| RHITextureDesc | mDesc | 
GL texture resource implementation.
      
  | 
  explicit | 
      
  | 
  override | 
| void GLTexture::GenerateMipMaps | ( | ) | 
      
  | 
  inline | 
| GLenum GLTexture::GetTextureTarget | ( | ) | const | 
| void GLTexture::Initialize | ( | ) | 
| void GLTexture::Initialize2d | ( | ) | 
| void GLTexture::Initialize2dArray | ( | ) | 
| void GLTexture::InitializeCube | ( | ) | 
| void GLTexture::UpdateTexture2D | ( | uint32 | mipLevel, | 
| const Rect2u & | region, | ||
| const Ref< Data > & | memory | ||
| ) | 
| void GLTexture::UpdateTexture2DArray | ( | uint32 | arrayIndex, | 
| uint32 | mipLevel, | ||
| const Rect2u & | region, | ||
| const Ref< Data > & | memory | ||
| ) | 
| void GLTexture::UpdateTextureCube | ( | RHITextureCubemapFace | face, | 
| uint32 | mipLevel, | ||
| const Rect2u & | region, | ||
| const Ref< Data > & | memory | ||
| ) |