3#include <Core/ResourceManager/Resource.h>
4#include <Core/ResourceManager/ResourceTypeLoader.h>
5#include <Foundation/IO/MemoryStream.h>
6#include <RendererCore/RenderContext/Implementation/RenderContextStructs.h>
7#include <RendererCore/RendererCoreDLL.h>
8#include <RendererFoundation/Descriptors/Descriptors.h>
9#include <RendererFoundation/RendererFoundationDLL.h>
10#include <Texture/Image/Image.h>
47 PL_ALWAYS_INLINE plGALResourceFormat::Enum GetFormat()
const {
return m_Format; }
48 PL_ALWAYS_INLINE plUInt32 GetWidthAndHeight()
const {
return m_uiWidthAndHeight; }
50 const plGALTextureHandle& GetGALTexture()
const {
return m_hGALTexture[m_uiLoadedTextures - 1]; }
58 plUInt8 m_uiLoadedTextures;
60 plUInt32 m_uiMemoryGPU[2];
62 plGALResourceFormat::Enum m_Format;
63 plUInt32 m_uiWidthAndHeight;
This class encapsulates an array and it's size. It is recommended to use this class instead of plain ...
Definition ArrayPtr.h:37
Definition RendererFoundationDLL.h:481
Definition RendererFoundationDLL.h:411
The base class for all resources.
Definition Resource.h:10
virtual plResourceLoadDesc UnloadData(Unload WhatToUnload)=0
Requests the resource to unload another quality level. If bFullUnload is true, the resource should un...
virtual plResourceLoadDesc UpdateContent(plStreamReader *pStream)=0
Called whenever more data for the resource is available. The resource must read the stream to update ...
virtual void UpdateMemoryUsage(MemoryUsage &out_NewMemoryUsage)=0
This function must be overridden by all resource types.
Interface for binary in (read) streams.
Definition Stream.h:22
Definition TextureCubeResource.h:39
Definition Descriptors.h:118
Definition Descriptors.h:177
Describes in which loading state a resource currently is, and how many different quality levels there...
Definition Declarations.h:102
Use this descriptor in calls to plResourceManager::CreateResource<plTextureCubeResource> to create te...
Definition TextureCubeResource.h:16
plArrayPtr< plGALSystemMemoryDescription > m_InitialContent
Definition TextureCubeResource.h:35
plUInt8 m_uiQualityLevelsDiscardable
How many quality levels can be discarded and reloaded. For created textures this can currently only b...
Definition TextureCubeResource.h:28
plGALTextureCreationDescription m_DescGAL
Describes the texture format, etc.
Definition TextureCubeResource.h:24
plUInt8 m_uiQualityLevelsLoadable
How many additional quality levels can be loaded (typically from file).
Definition TextureCubeResource.h:31