#include <MetalResources.h>
|
| | FMetalSurface (FMetalDevice &Device, FMetalTextureCreateDesc const &CreateDesc) |
| |
| virtual | ~FMetalSurface () |
| |
| void | Initialize (FRHICommandListBase &RHICmdList) |
| |
| MTL::Buffer * | AllocSurface (const FRHILockTextureArgs &Arguments, uint32 MipBytes, uint32 DestStride) |
| |
| void | UpdateSurfaceAndDestroySourceBuffer (FMetalRHICommandContext *Context, MTL::Buffer *SourceBuffer, uint32 MipIndex, uint32 ArrayIndex) |
| |
| FRHILockTextureResult | Lock (const FRHILockTextureArgs &Arguments, bool bSingleLayer) |
| |
| void | Unlock (const FRHILockTextureArgs &Arguments) |
| |
| FRHILockTextureResult | AsyncLock (FRHICommandListBase &RHICmdList, const FRHILockTextureArgs &Arguments) |
| |
| uint32 | GetMipSize (uint32 MipIndex, uint32 *Stride, bool bSingleLayer) |
| |
| uint32 | GetMemorySize () |
| |
| uint32 | GetNumFaces () |
| |
| MTLTexturePtr | GetDrawableTexture () |
| |
| void | ReleaseDrawableTexture () |
| |
| MTLTexturePtr | GetCurrentTexture () |
| |
| MTLTexturePtr | Reallocate (MTLTexturePtr Texture, MTL::TextureUsage UsageModifier) |
| |
| void | MakeAliasable (void) |
| |
| virtual void * | GetTextureBaseRHI () override final |
| |
| virtual void * | GetNativeResource () const override final |
| |
| 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) |
| |
| | ~FMetalViewableResource () |
| |
| bool | HasLinkedViews () const |
| |
| void | UpdateLinkedViews (FMetalRHICommandContext *Context) |
| |
◆ FMetalSurface() [1/2]
Constructor that will create Texture and Color/DepthBuffers as needed
◆ ~FMetalSurface()
| FMetalSurface::~FMetalSurface |
( |
| ) |
|
|
virtual |
◆ FMetalSurface() [2/2]
Constructor for derived classes
◆ AllocSurface()
- Returns
- A newly allocated buffer object large enough for the surface within the texture specified.
◆ AsyncLock()
Locks one of the texture's mip-maps.
- Parameters
-
| ArrayIndex | Index of the texture array/face in the form Index*6+Face |
- Returns
- A pointer to the specified texture data.
◆ GetCurrentTexture()
◆ GetDrawableTexture()
Gets the drawable texture if this is a back-buffer surface.
◆ GetMemorySize()
| uint32 FMetalSurface::GetMemorySize |
( |
| ) |
|
Returns how much memory is used by the surface
◆ GetMipSize()
Returns how much memory a single mip uses, and optionally returns the stride
◆ GetNativeResource()
| virtual void * FMetalSurface::GetNativeResource |
( |
| ) |
const |
|
inlinefinaloverridevirtual |
Returns access to the platform-specific native resource pointer. This is designed to be used to provide plugins with access to the underlying resource and should be used very carefully or not at all.
- Returns
- The pointer to the native resource or NULL if it not initialized or not supported for this resource type for some reason
Reimplemented from FRHITexture.
◆ GetNumFaces()
| uint32 FMetalSurface::GetNumFaces |
( |
| ) |
|
Returns the number of faces for the texture
◆ 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()
◆ Lock()
Locks one of the texture's mip-maps.
- Parameters
-
| ArrayIndex | Index of the texture array/face in the form Index*6+Face |
- Returns
- A pointer to the specified texture data.
◆ MakeAliasable()
| void FMetalSurface::MakeAliasable |
( |
void |
| ) |
|
◆ Reallocate()
◆ ReleaseDrawableTexture()
| void FMetalSurface::ReleaseDrawableTexture |
( |
| ) |
|
◆ Unlock()
Unlocks a previously locked mip-map.
- Parameters
-
| ArrayIndex | Index of the texture array/face in the form Index*6+Face |
◆ UpdateSurfaceAndDestroySourceBuffer()
Apply the data in Buffer to the surface specified. Will also handle destroying SourceBuffer appropriately.
◆ BackingBuffer
◆ Device
◆ FormatKey
| uint8 FMetalSurface::FormatKey |
◆ MSAAResolveTexture
◆ MSAATexture
◆ Texture
◆ TotalTextureSize
| uint64 FMetalSurface::TotalTextureSize |
|
protected |
◆ Viewport
The documentation for this class was generated from the following files: