#include <OpenGLResources.h>
|
| UE_API | FOpenGLTexture (FOpenGLTextureCreateDesc const &CreateDesc) |
| |
| UE_API | FOpenGLTexture (FOpenGLTextureCreateDesc const &CreateDesc, GLuint Resource) |
| |
| UE_API | FOpenGLTexture (FOpenGLTexture &Texture, const FString &Name, EAliasConstructorParam) |
| |
| virtual UE_API | ~FOpenGLTexture () |
| |
| UE_API void | Initialize (FRHICommandListBase &RHICmdList) |
| |
| UE_API void | AliasResources (FOpenGLTexture &Texture) |
| |
| GLuint | GetResource () |
| |
| GLuint & | GetResourceRef () |
| |
| GLuint | GetRawResourceName () const |
| |
| const GLuint & | GetRawResourceNameRef () const |
| |
| void | SetResource (GLuint InResource) |
| |
| bool | IsEvicted () const |
| |
| virtual void * | GetTextureBaseRHI () override final |
| |
| UE_API void * | Lock (uint32 MipIndex, uint32 ArrayIndex, EResourceLockMode LockMode, uint32 &DestStride) |
| |
| UE_API uint32 | GetLockSize (uint32 MipIndex, EResourceLockMode LockMode, uint32 &DestStride) |
| |
| UE_API void | Unlock (uint32 MipIndex, uint32 ArrayIndex) |
| |
| virtual void * | GetNativeResource () const override |
| |
| bool | GetAllocatedStorageForMip (uint32 MipIndex, uint32 FaceIndex) const |
| |
| void | SetAllocatedStorageForMip (uint32 MipIndex, uint32 FaceIndex) |
| |
| void | SetAllocatedStorage (bool bInAllocatedStorage) |
| |
| UE_API void | CloneViaCopyImage (FOpenGLTexture *Src, uint32 InNumMips, int32 SrcOffset, int32 DstOffset) |
| |
| UE_API void | Resolve (uint32 MipIndex, uint32 ArrayIndex) |
| |
| UE_API void | RestoreEvictedGLResource (bool bAttemptToRetainMips) |
| |
| UE_API bool | CanBeEvicted () |
| |
| UE_API void | TryEvictGLResource () |
| |
| UE_API void | RemoveEvictionData () |
| |
| uint32 | GetEffectiveSizeZ () const |
| |
| virtual const FRHITextureDesc & | GetDesc () const |
| |
| virtual class FRHITextureReference * | GetTextureReference () |
| |
| virtual FRHIDescriptorHandle | GetDefaultBindlessHandle () const |
| |
| virtual void * | GetNativeShaderResourceView () const |
| |
| virtual void | GetWriteMaskProperties (void *&OutData, uint32 &OutSize) |
| |
| FIntVector | GetSizeXYZ () const |
| |
| FIntVector | GetMipDimensions (uint8 MipIndex) const |
| |
| bool | IsMultisampled () const |
| |
| bool | HasClearValue () const |
| |
| FLinearColor | GetClearColor () const |
| |
| void | GetDepthStencilClearValue (float &OutDepth, uint32 &OutStencil) const |
| |
| float | GetDepthClearValue () const |
| |
| uint32 | GetStencilClearValue () const |
| |
| void | SetLastRenderTime (float InLastRenderTime) |
| |
| double | GetLastRenderTime () const |
| |
| RHI_API void | SetName (FName InName) |
| |
| FRHITexture * | GetTexture2D () |
| |
| FRHITexture * | GetTexture2DArray () |
| |
| FRHITexture * | GetTexture3D () |
| |
| FRHITexture * | GetTextureCube () |
| |
| uint32 | GetSizeX () const |
| |
| uint32 | GetSizeY () const |
| |
| FIntPoint | GetSizeXY () const |
| |
| uint32 | GetSizeZ () const |
| |
| uint32 | GetNumMips () const |
| |
| EPixelFormat | GetFormat () const |
| |
| ETextureCreateFlags | GetFlags () const |
| |
| uint32 | GetNumSamples () const |
| |
| const FClearValueBinding | GetClearBinding () const |
| |
| uint32 | GetSize () const |
| |
| ERHIAccess | GetTrackedAccess_Unsafe () const |
| |
| FName | GetName () const |
| |
| RHI_API | FRHIResource (ERHIResourceType InResourceType) |
| |
| uint32 | AddRef () const |
| |
| uint32 | Release () const |
| |
| uint32 | GetRefCount () const |
| |
| bool | IsValid () const |
| |
| void | DisableLifetimeExtension () |
| |
| ERHIResourceType | GetType () const |
| |
| FName | GetOwnerName () const |
| |
| void | SetOwnerName (FName InOwnerName) |
| |
| | ~FOpenGLViewableResource () |
| |
| bool | HasLinkedViews () const |
| |
| void | UpdateLinkedViews () |
| |
◆ EAliasConstructorParam
◆ FOpenGLTexture() [1/3]
◆ FOpenGLTexture() [2/3]
◆ FOpenGLTexture() [3/3]
◆ ~FOpenGLTexture()
| FOpenGLTexture::~FOpenGLTexture |
( |
| ) |
|
|
virtual |
◆ AliasResources()
◆ CanBeEvicted()
| bool FOpenGLTexture::CanBeEvicted |
( |
| ) |
|
◆ CloneViaCopyImage()
Clone texture from a source using CopyImageSubData
◆ GetAllocatedStorageForMip()
| bool FOpenGLTexture::GetAllocatedStorageForMip |
( |
uint32 |
MipIndex, |
|
|
uint32 |
FaceIndex |
|
) |
| const |
|
inline |
Accessors to mark whether or not we have allocated storage for each mip/face. For non-cubemaps FaceIndex should always be zero.
◆ GetEffectiveSizeZ()
| uint32 FOpenGLTexture::GetEffectiveSizeZ |
( |
| ) |
const |
|
inline |
◆ GetLockSize()
Returns the size of the memory block that is returned from Lock, threadsafe
◆ GetNativeResource()
| virtual void * FOpenGLTexture::GetNativeResource |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetRawResourceName()
| GLuint FOpenGLTexture::GetRawResourceName |
( |
| ) |
const |
|
inline |
◆ GetRawResourceNameRef()
| const GLuint & FOpenGLTexture::GetRawResourceNameRef |
( |
| ) |
const |
|
inline |
◆ GetResource()
| GLuint FOpenGLTexture::GetResource |
( |
| ) |
|
|
inline |
◆ GetResourceRef()
| GLuint & FOpenGLTexture::GetResourceRef |
( |
| ) |
|
|
inline |
◆ GetTextureBaseRHI()
|
|
inlinefinaloverridevirtual |
Returns access to the platform-specific RHI texture baseclass. This is designed to provide the RHI with fast access to its base classes in the face of multiple inheritance.
- Returns
- The pointer to the platform-specific RHI texture baseclass or NULL if it not initialized or not supported for this RHI
Reimplemented from FRHITexture.
◆ Initialize()
◆ IsEvicted()
| bool FOpenGLTexture::IsEvicted |
( |
| ) |
const |
|
inline |
◆ Lock()
Locks one of the texture's mip-maps.
- Returns
- A pointer to the specified texture data.
◆ RemoveEvictionData()
| void FOpenGLTexture::RemoveEvictionData |
( |
| ) |
|
◆ Resolve()
Resolved the specified face for a read Lock, for non-renderable, CPU readable surfaces this eliminates the readback inside Lock itself.
◆ RestoreEvictedGLResource()
| void FOpenGLTexture::RestoreEvictedGLResource |
( |
bool |
bAttemptToRetainMips | ) |
|
◆ SetAllocatedStorage()
| void FOpenGLTexture::SetAllocatedStorage |
( |
bool |
bInAllocatedStorage | ) |
|
|
inline |
◆ SetAllocatedStorageForMip()
| void FOpenGLTexture::SetAllocatedStorageForMip |
( |
uint32 |
MipIndex, |
|
|
uint32 |
FaceIndex |
|
) |
| |
|
inline |
◆ SetResource()
| void FOpenGLTexture::SetResource |
( |
GLuint |
InResource | ) |
|
|
inline |
◆ TryEvictGLResource()
| void FOpenGLTexture::TryEvictGLResource |
( |
| ) |
|
◆ Unlock()
Unlocks a previously locked mip-map.
◆ Attachment
| GLenum const FOpenGLTexture::Attachment = 0 |
The OpenGL attachment point. This should always be GL_COLOR_ATTACHMENT0 in case of color buffer, but the actual texture may be attached on other color attachments.
◆ bAlias
| uint8 const FOpenGLTexture::bAlias |
◆ bArrayTexture
| uint8 const FOpenGLTexture::bArrayTexture |
◆ bCanCreateAsEvicted
| uint8 const FOpenGLTexture::bCanCreateAsEvicted |
◆ bCubemap
| uint8 const FOpenGLTexture::bCubemap |
◆ bDepthStencil
| uint8 const FOpenGLTexture::bDepthStencil |
◆ bInStencilTextureMode
| bool FOpenGLTexture::bInStencilTextureMode = false |
◆ bIsPowerOfTwo
| uint8 const FOpenGLTexture::bIsPowerOfTwo |
◆ bMultisampleRenderbuffer
| uint8 const FOpenGLTexture::bMultisampleRenderbuffer |
◆ bStreamable
| uint8 const FOpenGLTexture::bStreamable |
◆ EvictionParamsPtr
◆ MemorySize
| uint32 const FOpenGLTexture::MemorySize |
◆ PixelBuffers
◆ SamplerState
◆ Target
| GLenum const FOpenGLTexture::Target = 0 |
The OpenGL texture target.
The documentation for this class was generated from the following files: