|
| 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
|
| |