engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
FMetalSurface类 参考

Texture/RT wrapper. 更多...

#include <MetalResources.h>

Public 成员函数

id< MTLBuffer > AllocSurface (uint32 MipIndex, uint32 ArrayIndex, EResourceLockMode LockMode, uint32 &DestStride, bool SingleLayer=false)
 
void * AsyncLock (class FRHICommandListImmediate &RHICmdList, uint32 MipIndex, uint32 ArrayIndex, EResourceLockMode LockMode, uint32 &DestStride, bool bNeedsDefaultRHIFlush)
 Locks one of the texture's mip-maps. 更多...
 
void AsyncUnlock (id< MTLBuffer > SourceData, uint32 MipIndex, uint32 ArrayIndex)
 Unlocks a previously locked mip-map. 更多...
 
 FMetalSurface (ERHIResourceType ResourceType, EPixelFormat Format, uint32 SizeX, uint32 SizeY, uint32 SizeZ, uint32 NumSamples, bool bArray, uint32 ArraySize, uint32 NumMips, ETextureCreateFlags Flags, FResourceBulkDataInterface *BulkData)
 Constructor that will create Texture and Color/DepthBuffers as needed
 
FMetalTexture GetDrawableTexture ()
 Gets the drawable texture if this is a back-buffer surface.
 
uint32 GetMemorySize ()
 Returns how much memory is used by the surface
 
uint32 GetMipSize (uint32 MipIndex, uint32 *Stride, bool bSingleLayer)
 Returns how much memory a single mip uses, and optionally returns the stride
 
uint32 GetNumFaces ()
 Returns the number of faces for the texture
 
void * Lock (uint32 MipIndex, uint32 ArrayIndex, EResourceLockMode LockMode, uint32 &DestStride, bool SingleLayer=false)
 Locks one of the texture's mip-maps. 更多...
 
void PrepareTextureView ()
 Prepare for texture-view support - need only call this once on the source texture which is to be viewed.
 
void Unlock (uint32 MipIndex, uint32 ArrayIndex, bool bTryAsync)
 Unlocks a previously locked mip-map. 更多...
 
void UpdateSurfaceAndDestroySourceBuffer (id< MTLBuffer > SourceBuffer, uint32 MipIndex, uint32 ArrayIndex)
 Apply the data in Buffer to the surface specified. 更多...
 
 ~FMetalSurface ()
 Destructor
 

详细描述

Texture/RT wrapper.

成员函数说明

◆ AllocSurface()

id< MTLBuffer > FMetalSurface::AllocSurface ( uint32  MipIndex,
uint32  ArrayIndex,
EResourceLockMode  LockMode,
uint32 &  DestStride,
bool  SingleLayer = false 
)
返回
A newly allocated buffer object large enough for the surface within the texture specified.

◆ AsyncLock()

void * FMetalSurface::AsyncLock ( class FRHICommandListImmediate &  RHICmdList,
uint32  MipIndex,
uint32  ArrayIndex,
EResourceLockMode  LockMode,
uint32 &  DestStride,
bool  bNeedsDefaultRHIFlush 
)

Locks one of the texture's mip-maps.

参数
ArrayIndexIndex of the texture array/face in the form Index*6+Face
返回
A pointer to the specified texture data.

◆ AsyncUnlock()

void FMetalSurface::AsyncUnlock ( id< MTLBuffer >  SourceData,
uint32  MipIndex,
uint32  ArrayIndex 
)

Unlocks a previously locked mip-map.

参数
ArrayIndexIndex of the texture array/face in the form Index*6+Face

◆ Lock()

void * FMetalSurface::Lock ( uint32  MipIndex,
uint32  ArrayIndex,
EResourceLockMode  LockMode,
uint32 &  DestStride,
bool  SingleLayer = false 
)

Locks one of the texture's mip-maps.

参数
ArrayIndexIndex of the texture array/face in the form Index*6+Face
返回
A pointer to the specified texture data.

◆ Unlock()

void FMetalSurface::Unlock ( uint32  MipIndex,
uint32  ArrayIndex,
bool  bTryAsync 
)

Unlocks a previously locked mip-map.

参数
ArrayIndexIndex of the texture array/face in the form Index*6+Face

◆ UpdateSurfaceAndDestroySourceBuffer()

void FMetalSurface::UpdateSurfaceAndDestroySourceBuffer ( id< MTLBuffer >  SourceBuffer,
uint32  MipIndex,
uint32  ArrayIndex 
)

Apply the data in Buffer to the surface specified.

Will also handle destroying SourceBuffer appropriately.


该类的文档由以下文件生成: