Exposes Metal-specific functionality of a texture object. More...
#include <TextureMtl.h>
Public Member Functions | |
| virtual id< MTLResource > DILIGENT_CALL_TYPE | GetMtlResource () const =0 |
| virtual id< MTLHeap > DILIGENT_CALL_TYPE | GetMtlHeap () const =0 |
| Returns a pointer to the Metal heap where the texture is allocated. | |
Public Member Functions inherited from Diligent::ITexture | |
| virtual const TextureDesc &DILIGENT_CALL_TYPE | GetDesc () const override=0 |
| Returns the texture description used to create the object. | |
| virtual void DILIGENT_CALL_TYPE | CreateView (const TextureViewDesc &ViewDesc, ITextureView **ppView)=0 |
| Creates a new texture view. | |
| virtual ITextureView *DILIGENT_CALL_TYPE | GetDefaultView (TEXTURE_VIEW_TYPE ViewType)=0 |
| Returns the pointer to the default view. | |
| virtual Uint64 DILIGENT_CALL_TYPE | GetNativeHandle ()=0 |
| Returns native texture handle specific to the underlying graphics API. | |
| virtual void DILIGENT_CALL_TYPE | SetState (RESOURCE_STATE State)=0 |
| Sets the usage state for all texture subresources. | |
| virtual RESOURCE_STATE DILIGENT_CALL_TYPE | GetState () const =0 |
| Returns the internal texture state. | |
| virtual const SparseTextureProperties &DILIGENT_CALL_TYPE | GetSparseProperties () const =0 |
| Returns the sparse texture properties, see Diligent::SparseTextureProperties. | |
Public Member Functions inherited from Diligent::IDeviceObject | |
| virtual Int32 DILIGENT_CALL_TYPE | GetUniqueID () const =0 |
| Returns unique identifier assigned to an object. | |
| virtual void DILIGENT_CALL_TYPE | SetUserData (IObject *pUserData)=0 |
| Stores a pointer to the user-provided data object. | |
| virtual IObject *DILIGENT_CALL_TYPE | GetUserData () const =0 |
| Returns a pointer to the user data object previously set with SetUserData() method. | |
Public Member Functions inherited from Diligent.IObject | |
| virtual void DILIGENT_CALL_TYPE | QueryInterface (const INTERFACE_ID &IID, IObject **ppInterface)=0 |
| Queries the specific interface. | |
| template<typename DerivedType, typename = typename std::enable_if<std::is_base_of<IObject, DerivedType>::value>::type> | |
| void | QueryInterface (const INTERFACE_ID &IID, DerivedType **ppInterface) |
| virtual ReferenceCounterValueType DILIGENT_CALL_TYPE | AddRef ()=0 |
| Increments the number of strong references by 1. | |
| virtual ReferenceCounterValueType DILIGENT_CALL_TYPE | Release ()=0 |
| virtual IReferenceCounters *DILIGENT_CALL_TYPE | GetReferenceCounters () const =0 |
Exposes Metal-specific functionality of a texture object.
|
pure virtual |
Returns a pointer to a Metal resource. For a staging texture, this will be a pointer to a MTLStorageModeShared buffer (MTLBuffer). For all other texture types, this will be a pointer to Metal texture object (MTLTexture).